Ravens PHP Scripts FAQ (Frequently Asked Questions)





Question Question
·  How do I create a new theme?
·  How do I change the default language?
·  How do I change the default theme?
·  How can I keep users from changing the theme and/or language?
·  How do I get rid of these Undefined Variable messages?
·  When I goto save an entry, I just get a blank page. Why?
·  How do I remove the Cannot Add Header Information error message?
·  The Preview screen is dropping values.

Do you have a question which isn't answered here? Click Here to add it.

Answer Answer
Print this Answer
?  How do I create a new theme?

The Theme Builder is one way. You construct your theme "live" and then save it. Then, tweak it manually if you want/need to. Alternatively you can copy the default.thm.php file to your_new_theme.thm.php file and modify it according to your needs.

[ Back to Top ]

Answer Answer
Print this Answer
?  How do I change the default language?

Modify this setting $language = "english.lang.php"; to one of the languages in the languages folder.

[ Back to Top ]

Answer Answer
Print this Answer
?  How do I change the default theme?

Modify this setting $theme = "clouds.thm.php"; to one of the themes in the themes folder.

[ Back to Top ]

Answer Answer
Print this Answer
?  How can I keep users from changing the theme and/or language?

These settings control whether or not the user can see (and change) them. Just set them to FALSE to restrict them.
  • $use_languages = true;
  • $use_themes = true;

[ Back to Top ]

Answer Answer
Print this Answer
?  How do I get rid of these Undefined Variable messages?

This is a result of the error_reporting level setting in your php.ini file. Please see this forum post for more explanation.

[ Back to Top ]

Answer Answer
Print this Answer
?  When I goto save an entry, I just get a blank page. Why?

This is my fault! In nuke versions prior to 5.1.0, I had hard coded the name of the prefix to the tables as 'nuke'. In addtogb.php, updategb.php, and view_private.php, I had hard coded the nuke_users table as nuke_users instead of $prefix."_users".

[ Back to Top ]

Answer Answer
Print this Answer
?  How do I remove the Cannot Add Header Information error message?

Please see How do I remove the Cannot Add Header Information error message? in the phpNuke FAQ. The answer is the same.

[ Back to Top ]

Answer Answer
Print this Answer
?  The Preview screen is dropping values.

This seems to be a register_globals issue. If you are running your PHP with register_globals Off then the quick fix is to use a .htaccess file in your kisgb folder. In the .htaccess file, add this line
PHP_FLAG register_globals On
That should fix it. Some windows editors will not allow you to name a file that starts with a '.' as in .htaccess. If that is your case, then name the file htaccess.txt. Then, after you ftp it to your production site, rename it to .htaccess.

[ Back to Top ]



 
FAQ ©

Site Info

Last SeenLast Seen
  • neralex
  • vashd1
Server TrafficServer Traffic
  • Total: 510,702,587
  • Today: 108,719
Server InfoServer Info
  • Apr 09, 2025
  • 06:01 pm CDT