I am associated with a site that pays on pageviews for your uploaded images. We are creating a simple module for PHPNuke community. We would appreciate if someone can help with it.
What are the config variables for theme background color and user_id in PHPNuke in a module?
The module's code looks something like this:
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$nukeid = intval($cookie[0]);
if(!empty($cookie[1]))
{
$query = "SELECT * FROM nuke_users WHERE user_id='".$nukeid ."'";
..... you get the point
}
There's no variable for the theme colour as far as I know, it's a CSS style tag. The entire point of keeping appearance in CSS is so that site code can't rely on it, which is the only way a theme system can work.
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12403
Posted:
Tue Nov 07, 2006 7:27 am
Themes do define several variables that can be used
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum