Posts: 31
Threads: 13
Joined: Apr 2011
I'm trying to implement "Edit this page" link on each page of my GetSimple site. Since I don't want the visitors to see the same link while surfing, I thought of adding a conditional tag like "if(LOGGED IN )".
Please let me know if there's any function available who can do this task?
Using GetSimple 3.0
Posts: 2,094
Threads: 54
Joined: Jan 2011
nvinanda Wrote:I'm trying to implement "Edit this page" link on each page of my GetSimple site. Since I don't want the visitors to see the same link while surfing, I thought of adding a conditional tag like "if(LOGGED IN )".
Please let me know if there's any function available who can do this task?
There is already a plugin for this
here.
You need to switch on site wide cookies (in gsconfig.php) for such a functionality, however, the site wide cookies are broken in GetSimple 3.0 - see workaround in
I18N CustomFields plugin.
Posts: 2,928
Threads: 195
Joined: Feb 2011
nvinanda Wrote:I'm trying to implement "Edit this page" link on each page of my GetSimple site. Since I don't want the visitors to see the same link while surfing, I thought of adding a conditional tag like "if(LOGGED IN )".
Please let me know if there's any function available who can do this task?
The Plugin-Description says:
Quote:Allows you to edit pages from website if already logged in to admin console. Save you the time to go to admin->pages tab. Can directly go from the page to edit screen
so what is the problem? Is this not working? Did you test with being logged out?
well:
I checked with GS 3
I uploaded the plugin
it is activated
I am logged in
I open the website in another browser tab but I cannot see any hint "Edit this page" there or in the source code
So I think that this plugin is even more discrete than you want to have it ... it does not do anything ... at least following my checks
Posts: 1,848
Threads: 86
Joined: Aug 2009
FYI: i've turned the sitewide cookie ON in 3.1 by default
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 2,094
Threads: 54
Joined: Jan 2011
Connie Wrote:I open the website in another browser tab but I cannot see any hint "Edit this page" there or in the source code
So I think that this plugin is even more discrete than you want to have it ... it does not do anything ... at least following my checks
See above: you need site wide cookies and those are broken in GetSimple 3.0.
Posts: 2,928
Threads: 195
Joined: Feb 2011
mvlcek Wrote:See above: you need site wide cookies and those are broken in GetSimple 3.0.
yes, you are right, I checked whether the constante is defined in the config-file, and it was, but I forgot whether it is functionable in 3.0 or not ...
Posts: 31
Threads: 13
Joined: Apr 2011
Thanks.
I don't want to use an plugin due to some reasons. Would it be possible to get the result using functions.php and template.php in the theme folder?
I read
here that it's possible using an browser javascript too, please let me know the javascript to use.
Using GetSimple 3.0
Posts: 31
Threads: 13
Joined: Apr 2011
Finally I developed a small javascript to do the task.
Here it is
http://shortbutuseful.com/24/javascript-...rrent-url/
Remember: Use the second script and change "administrator" to"admin".
Using GetSimple 3.0