Welcome to Geeklog, Anonymous Saturday, August 31 2024 @ 11:32 pm EDT
Geeklog Forums
Static Pages Plugin--PHP checkbox not appearing
Hello. I am running the current version of GL (1.3.8-1) and the new Static Pages Plugin. Both of these were done as upgrades from previous versions. For some reason, when I go to create a new Static Page, the checkbox that allows you to evaluate PHP code is not appearing. It never has really. I was wondering if any of you have seen this problem or could suggest a fix. Thanks a ton!
![Rolling Eyes Rolling Eyes](https://www.geeklog.net/forum/image_set/pixel.gif)
11
13
Quote
Status: offline
exaurdon
Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
It appears that the user which you are using does not have staticpages.php rights. I\'m not quite sure what would have caused this, except it probably had something to do with your upgrade from a previous version. The staticpages plugin hides the php checkbox if your user does not have this right (which is a seperate right from teh saticpages.edit right.
BIG WARNING - Make sure thatanyone who has this right is someone you would trust with a root login to your site, because they can do all sorts of nasty stuff by writing any php code they want.
To give this right:
Create (or edit) a \'static pages php\' group. Check the staticpages.edit staticpages.php and staticpages.delete checkboxes, and save the group. Then, just add your user to the \'static pages php\' group, and you should have access.
Exaurdon~
10
12
Quote
OK. I guess that is where the problem resides then. There is no staticpages.PHP right at all. On a different GL site where I did a fresh install, it is there and the php functionality in the static pages plugin works like a charm.
Any ideas where this right is, or what I would have to do to create it?
8
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Something may have gone wrong during the upgrade. Check that the version number of the static pages plugin (listed under "Plugins" from the Admins block) is really 1.3.
To add the staticpages.PHP feature manually, you would have to execute this MySQL request:
(replacing
Text Formatted Code
INSERT INTO gl_features (ft_name, ft_descr) VALUES ('staticpages.PHP','Ability to use PHP in static pages');gl_features
with the actual name of your features table, if necessary)
You should then be able to add that feature to the Static Page Admin group, which should enable all Static Page Admins to create pages with PHP in them.
bye, Dirk
10
10
Quote
All times are EDT. The time is now 11:32 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content