|
|
 |
|
 |
 |
 |
Main Menu |
 |
|
 |
Quick Links |
 |
|
 |
Other Options |
 |
|
 |
Information |
 |
|
 |
NukeForums |
 |
|
 |
Top10 Links |
 |
|
 |
Site Visitors |
 |
Membership:
Latest: Vanquistador
Today: 1
Yesterday: 1
Overall: 15103
Visitation:
Guests: 515
Members: 0
Total: 515
 You are Anonymous user. You can register for free by clicking here |
|
|
|
|
 |
Sponsor Links |
 |
|
|
 |
Controlling User Theme Selection |
 |
tonyzink
writes "Scenario: You've spent a week or two (...or month or two!) installing and configuring PHP-Nuke for a new website, and you've even spent several hours creating a custom site theme and logo. However, your registered users can change site themes from the "Your Account" control panel! How do you prevent them from throwing away your work and selecting one of the default themes... with default logos? There are options...
Option 1: Remove all theme folders and files other than those which you wish to use (located in the "themes" folder). For example, if you've customized the "ExtraLite" theme and want your users to use only this theme, then delete all other theme folders, such as "Kaput", "Slash", and so on. When the user attempts to select another theme, then there will only be the single "ExtraLite" theme available.
There are drawbacks to using this method of theme control. For instance, if you would like to have the use of these additional themes in the future, then you will need to re-upload them to your server. Also, it might seem odd to the user that there appears to be a theme choice, but there is only a singe "choice" available in the list.
Option 2: Remove the "Select Theme" option from the user control panel. This requires a small bit of code modification, but the benefit is that there is no need to remove unwanted themes, and the user has no contradictory situation as described above (please select from our single-theme list). So... how is this accomplished?
There is a file which displays the contents of the user control panel; this file can be easily modified with any plain text editor to remove the "Select Theme" option from the control panel. The file is named "index.php", and is located in the "/modules/Your_Account/" folder. Simply download the file (if you don't already have it on your system locally) and open it with a text editor.
One of the first routines in this file is used to display the navigation icons in the user control panel; this code displays the "Select Theme" icon and link. To remove this option from the user control panel, simply remove the unnecessary code and save.
After the modified code has been saved and uploaded to the original location on the server, the "Select Theme" option should not appear in the user control panel. Website visitors will now have no choice but to enjoy the site theme and logo which you worked so hard on!
A slightly more detailed version of this story is located at www.nukemethods.com."
|
|
|
|
|
Posted on Tuesday, April 30, 2002 @ 6:36 AM CDT by Tom |
|
|
|
 |
Multi-Site Search
|
 |
 |
Sponsor Links
|
 |
|
| |
 |
Related Links |
 |
|
 |
Article Rating |
 |
Average Score: 5 Votes: 3

|
|
|
|
|
 |
Options |
 |
|
|
|
 |
|
:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::
| |