Author |
Message |
mercman
Regular


Joined: Nov 29, 2006
Posts: 64
Location: TN, USA
|
Posted:
Wed Dec 06, 2006 6:01 pm |
|
Hi all!
I'm sure this must have asked before, but...
I am relatively new to PHP-Nuke and have a new site up ( Only registered users can see links on this board! Get registered or login!); I want to remove the selection of alternate themes from my users in both the main site and the forums (I want them to use only the site/forum default).
I would also like to be able to remove the button and underlaying link from the users "home" page.
Is this possible?
If it matters, I am running Raven's 76 v2.02.02 distro (sweet package Raven! Thank you! ) with the Solaris theme for both the main site and forums.
Thanks! |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Wed Dec 06, 2006 6:15 pm |
|
The most simple and effective way is to simply remove the themes you do not want from the themes/ folder |
|
|
|
 |
mercman

|
Posted:
Wed Dec 06, 2006 6:18 pm |
|
Guardian,
Thank you for the quick reply!
Would doing this not make the users "white page" if they try to change the theme?
Also, what about removing the Themes button in the users Home page? Can this be done?
-Merc |
|
|
|
 |
Guardian2003

|
Posted:
Wed Dec 06, 2006 6:25 pm |
|
No, the users theme should 'default' to whatever is set in your admin preferences.
You can remove the Themes button if you want, it is in nav.php but there really isnt any point if you remove the other themes as there is nothing for them to select. |
|
|
|
 |
mercman

|
Posted:
Wed Dec 06, 2006 6:29 pm |
|
Sweet! Thank you Guardian!
One more question, anything "bad" known to happen if I delete the default forum theme (subSilver)? |
|
|
|
 |
Guardian2003

|
Posted:
Wed Dec 06, 2006 6:42 pm |
|
Yes, you'll break it
If your forum theme (actually its a template) actually *really* lives in modules/Forums/templates/
I think you can override the user setting for this anyway in forum config so even if a user selects a diferent forum 'template' it will still default to whatever you have set it to.
If your forum theme lives in themes/yourtheme/forums/ and remove the subSilver forum 'template' you will at best have no forum admin area - so beware  |
|
|
|
 |
mercman

|
Posted:
Wed Dec 06, 2006 7:10 pm |
|
Ok!
I've deleted all the templates from the Themes folder and guess what??
After logging on as a user, I no longer have a Themes button in my Home page!
This is too cool!
My forum template is in modules/forums/templates.
And yes, even though the user sees subSilver as a template choice in his/her forum profile, selecting it does nothing.
Guardian, you're awesome dude!
Thanks again!
-Merc |
|
|
|
 |
Guardian2003

|
Posted:
Wed Dec 06, 2006 7:19 pm |
|
Glad to be of service  |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Wed Dec 06, 2006 8:18 pm |
|
Easier to disable the code in modules/Your_Account/navbar.php if you just want to take off the button (but leave the functionality.. say for admin testing) |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
|