Posts: 84
Threads: 17
Joined: Mar 2010
2010-11-02, 20:12:42
(This post was last modified: 2010-11-05, 21:02:29 by apelsinas.)
Installation Notes:
Copy the folder "ARGuestbook_Files" in the getsimple root folder
Copy the ARGuestbook.php in the plugin folder
Updates v 0.9.3:
- Now the comments are loaded immediately without refresh the page
- Added warnings for the inspection of nick, text and spam code
- Solved the problem of sessions
- Corrected some words on the interface
Updates v 0.9.4:
- fixed the problem of paths
- now on the file of comments will save also the ip of the user
- when the page haven't comments will be specified
Posts: 1,928
Threads: 88
Joined: Apr 2010
Notice: A session had already been started - ignoring session_start() in /home/cp068800/public_html/neowebtime.ru/0/plugins/ARGuestbook-ENG.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/cp068800/public_html/neowebtime.ru/0/plugins/ARGuestbook-ENG.php:10) in /home/cp068800/public_html/neowebtime.ru/0/admin/inc/cookie_functions.php on line 26
Posts: 84
Threads: 17
Joined: Mar 2010
2010-11-03, 08:01:28
(This post was last modified: 2010-11-03, 08:05:24 by apelsinas.)
Oleg06 Wrote:Notice: A session had already been started - ignoring session_start() in /home/cp068800/public_html/neowebtime.ru/0/plugins/ARGuestbook-ENG.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/cp068800/public_html/neowebtime.ru/0/plugins/ARGuestbook-ENG.php:10) in /home/cp068800/public_html/neowebtime.ru/0/admin/inc/cookie_functions.php on line 26 Perhaps you're using another plugin that uses a session,For curiosity when the notice is appeared?
Posts: 1,928
Threads: 88
Joined: Apr 2010
as soon as I copied your plugin
Posts: 84
Threads: 17
Joined: Mar 2010
2010-11-03, 20:01:55
(This post was last modified: 2010-11-03, 20:09:19 by apelsinas.)
Oleg06 Wrote:as soon as I copied your plugin the header session_start() is on ARGuestbook-ENG.php and your cookie_functions.php because probably we have different version of getsimple,in fact on my cookie_functions.php there isn't session_start() header
P.S: There is a need that someone else try the plugin to verify the existence of the problem
Posts: 972
Threads: 27
Joined: Aug 2009
The warning about cookie_functions.php has nothing to do with the notice about sessions.
All plugins should check whether there is an active session before starting one. As plugin developer you don’t know what other plugins are used so you can’t assume you have to start the session yourself. That’s the only logical fix.
Code: if (session_id()=='') session_start();
Posts: 407
Threads: 22
Joined: Aug 2010
2010-11-04, 04:59:47
(This post was last modified: 2010-11-04, 05:01:08 by tariq123.)
Alessio_roma Wrote:Oleg06 Wrote:as soon as I copied your plugin the header session_start() is on ARGuestbook-ENG.php and your cookie_functions.php because probably we have different version of getsimple,in fact on my cookie_functions.php there isn't session_start() header
P.S: There is a need that someone else try the plugin to verify the existence of the problem
Hi there. He runs Dominion jCart I know as he test for me thus that will 10/1 be my sessions, also the gallery plugin uses sessions.
I do check in my code like this
Code: if(!isset($_SESSION)){
session_start();
}
You can also do this before template is processed to insure it is available for all functions like this via the hook
Code: add_action('index-pretemplate','ARguestbook_start_template');
function ARguestbook_start_template(){
if(!isset($_SESSION)){
session_start();
}
}
that way you are insured that you are going to do in the template anywhere the session will be available.
hope it helps
have fun
Stopped developing on GS Plugins. Anybody welcome to take the projects over. Thanks for all the support all.
Posts: 84
Threads: 17
Joined: Mar 2010
i have uploaded a new version,please tell me how the plugin works,thanks
Posts: 1,928
Threads: 88
Joined: Apr 2010
how to connect a plug-in?
Posts: 84
Threads: 17
Joined: Mar 2010
Sorry but i don't understand what do you mean,if you mean the link for download,it is in the first post
Posts: 1,928
Threads: 88
Joined: Apr 2010
what code should I insert the page to see your guestbook
Posts: 84
Threads: 17
Joined: Mar 2010
enough to have the function get_page_content (); on the template and the guestbook will appear after the content of the page
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-11-05, 17:23:23
(This post was last modified: 2010-11-05, 19:26:09 by jhondavis.)
I'm sorry, I understood everything
http://neowebtime.ru/00/
Posts: 84
Threads: 17
Joined: Mar 2010
i'm sorry,but also now i don't understand what do you mean,for see the guestbook you must put the folder ARGuestbook_Files in the root of getsimple that is the root of your site,after you put the ARGuestbook-ENG.php in the plugin folder you must check that in your template page there is <?php get_page_content(); ?> in the body,now the guestbook is visible.
p.s: what is <? get_breadcrumbs ();?> ?
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-11-05, 19:28:02
(This post was last modified: 2010-11-05, 19:31:35 by jhondavis.)
I'm sorry, I understood everything
http://neowebtime.ru/00/
but why is it needed on each page?
shows the errors and messages are not sent
Code: http://localhost/getsimple/ARGuestbook_Files/salva_commenti.php?nick=Your+nickname&commenti=Write+here+the+text&code=
Posts: 84
Threads: 17
Joined: Mar 2010
2010-11-05, 19:53:10
(This post was last modified: 2010-11-05, 19:55:14 by apelsinas.)
Ah ok,now i understood
in the next release i will improve this thing,however those errors are caused from a wrong installation of the plugin or probably from wrong destination of the form in ARGuestbook-ENG.php
Can you do me a favor? You can try to modify it by removing / getsimple / from the target path of the form and destination of the variable $ _SESSION ['pageurl'] in Inizializza function, and then tell me if it works?Thanks
However, it is strange because on my site works fine but the files of getsimple folder are located in the Site root,that is the getsimple folder doesn't exist
EDIT: I have been anticipated by you
Posts: 84
Threads: 17
Joined: Mar 2010
Is there a function that return the site url?or a variable?(in the docs there is only an echo function)
Posts: 84
Threads: 17
Joined: Mar 2010
i have fixed the problem and i've upload 0.9.4 version
Posts: 1,204
Threads: 30
Joined: Jun 2010
Alessio_roma Wrote:Is there a function that return the site url?or a variable?(in the docs there is only an echo function) You can try to use php variable: $_SERVER['REQUEST_URI'];
or variables used in GS like: $SITEURL, $TEMPLATE, but you'd have to concatenate them with strings to create paths.
Addons: blue business theme, Online Visitors, Notepad
Posts: 1,928
Threads: 88
Joined: Apr 2010
2010-11-06, 01:14:50
(This post was last modified: 2010-11-06, 01:17:07 by jhondavis.)
yes, worked
I removed
Code: http://localhost/getsimple/
http://neowebtime.ru/00/ARGuestbook_File...p?id=index
Posts: 1,204
Threads: 30
Joined: Jun 2010
Oleg06 Wrote:yes, worked
I removed
Code: http://localhost/getsimple/
http://neowebtime.ru/00/ARGuestbook_File...p?id=index
problems with encoding ?
Quote:Warning: file(/home/cp068800/public_html/neowebtime.ru/00/ARGuestbook_Files/Commenti/Oops! Page not found!.txt) [function.file]: failed to open stream: ��� ������ ����� ��� �������� in /home/cp068800/public_html/neowebtime.ru/00/plugins/ARGuestbook-ENG.php on line 95
Warning: Invalid argument supplied for foreach() in /home/cp068800/public_html/neowebtime.ru/00/plugins/ARGuestbook-ENG.php on line 96
Addons: blue business theme, Online Visitors, Notepad
Posts: 1,928
Threads: 88
Joined: Apr 2010
I fixed the encoding
there was already a plug-in comments, but there was no captcha, it can be turned on or off
http://get-simple.info/forum/post/7418/#p7418
http://sex-after-18.com/igry/detective-rpg
Posts: 1,204
Threads: 30
Joined: Jun 2010
Is there any comments management for this guestbook ?
Especially approvals.
Addons: blue business theme, Online Visitors, Notepad
Posts: 84
Threads: 17
Joined: Mar 2010
yojoe Wrote:Alessio_roma Wrote:Is there a function that return the site url?or a variable?(in the docs there is only an echo function) You can try to use php variable: $_SERVER['REQUEST_URI'];
or variables used in GS like: $SITEURL, $TEMPLATE, but you'd have to concatenate them with strings to create paths. Oleg06 Wrote:yes, worked
I removed
Code: http://localhost/getsimple/
http://neowebtime.ru/00/ARGuestbook_File...p?id=index thank you but you came late, I had already fixed in version 0.9.4, I found the $ SITEURL reading the file functions.php
yojoe Wrote:Is there any comments management for this guestbook ?
Especially approvals. probably in the next version
|