PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
neophite
Regular
Regular


Joined: Sep 13, 2003
Posts: 56
Location: Virginia

PostPosted: Sat Sep 13, 2003 8:21 pm Reply with quote Back to top

I would like to establish a default theme and NOT offer my site user the ability to change to another theme..is this possible, without deleting all the other themes from my site?

I just don't know where to start to disable this user function Evil or Very Mad
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Sep 13, 2003 8:35 pm Reply with quote Back to top

Here would be one way. In Your_Account/navbar.php, find this code on or about line 71
Code:
 
    if ($thmcount > 1) {
   $menuimg = menuimg("themes.gif");
   echo "<td width=\"10%\"><font class=\"content\">"
       ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
       ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
       ."</center></form></font></td>";
    }

change it to
Code:
 
    if ($thmcount > 1) {
   $menuimg = menuimg("themes.gif");
/***
   echo "<td width=\"10%\"><font class=\"content\">"
       ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
       ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
       ."</center></form></font></td>";
***/
    }


Then, as a safety measure to keep the white hat hackers from slipping by Wink also modify Your_Account/index.php. Find this code towards the bottom
Code:
 
    case "chgtheme":
   chgtheme();
   break;


and change it to
Code:
 
    case "chgtheme":
//   chgtheme();
   break;



Another less elegant, but simpler way, is to just change this line
if ($thmcount > 1)
to
if ($thmcount > 1000)

Since you will never have 1000 themes, the logic never executes.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
neophite
Regular
Regular


Joined: Sep 13, 2003
Posts: 56
Location: Virginia

PostPosted: Sat Sep 13, 2003 8:40 pm Reply with quote Back to top

Raven,

You are something else Wink

I will implement the changes and thank you so much for your tremendious help. Exclamation Exclamation Exclamation Exclamation
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum