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
mercman
Regular
Regular



Joined: Nov 29, 2006
Posts: 64
Location: TN, USA

PostPosted: Wed Dec 06, 2006 6:01 pm Reply with quote

Hi all!
I'm sure this must have asked before, but...

I am relatively new to PHP-Nuke and have a new site up (www.merc-man.net/nuke); 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! Very Happy ) with the Solaris theme for both the main site and forums.

Thanks!
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Dec 06, 2006 6:15 pm Reply with quote

The most simple and effective way is to simply remove the themes you do not want from the themes/ folder
 
View user's profile Send private message Send e-mail
mercman







PostPosted: Wed Dec 06, 2006 6:18 pm Reply with quote

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







PostPosted: Wed Dec 06, 2006 6:25 pm Reply with quote

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







PostPosted: Wed Dec 06, 2006 6:29 pm Reply with quote

Sweet! Thank you Guardian!

One more question, anything "bad" known to happen if I delete the default forum theme (subSilver)?
 
Guardian2003







PostPosted: Wed Dec 06, 2006 6:42 pm Reply with quote

Yes, you'll break it Smile
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 Smile
 
mercman







PostPosted: Wed Dec 06, 2006 7:10 pm Reply with quote

Very Happy 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!
Wave
Thanks again!

-Merc
 
Guardian2003







PostPosted: Wed Dec 06, 2006 7:19 pm Reply with quote

Glad to be of service Smile
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Dec 06, 2006 8:18 pm Reply with quote

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)

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
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 ©