Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
neophite
Regular
Regular


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

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

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

_________________
Warmest Regards,
Bob Miedema
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

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

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
neophite
PostPosted: Sat Sep 13, 2003 8:40 pm Reply with quote

Raven,

You are something else Wink

I will implement the changes and thank you so much for your tremendious help. Exclamation Exclamation Exclamation Exclamation
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©