Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 53
6 members and 47 guests
bea9qgchcomberc, cliaw9cckhereto, garere3denstc3t, mariacolmanyne3, medaricalddw93g, parttarcts
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Themes

Reply
 
LinkBack Thread Tools Display Modes
'Lock' a theme
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Oct 2004
'Lock' a theme - 10-06-2004, 04:07 PM

I want to place a theme for Halloween, but i want all my users to use it. I want to lock that as the default theme (i dont want to remove the other them from the server as i will be using it back after halloween is over... any of you guys know?

~cookie
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 330
Join Date: Sep 2004
Location: Notts, UK
10-06-2004, 04:24 PM

I've never needed to do this before. The only way i can think to do it is in the fourm configuration -

Override user style
[Replaces users style with the default]
Set that to yes see if it works.


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Oct 2004
10-06-2004, 04:35 PM

Ya i tried that and it doesnt work.. plus it allows my users to go in their menu and change it back. i guess this would be a module request or something...
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Moderator
 
dar63's Avatar
 
Status: Offline
Posts: 473
Join Date: Oct 2002
Location: UK
10-06-2004, 04:45 PM

You could temporarily remove

Code:
if ($thmcount > 1) {
	$menuimg = menuimg("themes.gif");
	echo "<td width=\"10%\"><font class=\"content\">"
	    ."<center><a href=\"modules.php?name=Your_Account&amp;op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a>
"
	    ."<a href=\"modules.php?name=Your_Account&amp;op=chgtheme\">"._SELECTTHETHEME."</a>"
	    ."</center></form></font></td>";
    }
from modules/your account/navbar.php
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Oct 2004
10-06-2004, 04:48 PM

hummm that could definalty work.. but im still stuck with problem #1 If i install a new theme... i want all users to use it by default. the way phpnuke 7.5 works, the users that are currently registered, will still have the 'old default' style and not the new one. (unless THEY change it.)
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Moderator
 
dar63's Avatar
 
Status: Offline
Posts: 473
Join Date: Oct 2002
Location: UK
10-06-2004, 04:52 PM

Just set all their themes back to default with

Code:
UPDATE nuke_users SET theme = "" ;
via phpmyadmin
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Oct 2004
10-06-2004, 06:34 PM

actually, i think i can modify it just a little

if ($thmcount > 1) {
$menuimg = menuimg("themes.gif");

this means if there are more then 1 theme display the pic. all i could modify is add/change a number.. IE

if ($thmcount > 5) {
$menuimg = menuimg("themes.gif");

so if i ahve more then 5 themes.. then display the icon.

other then that, im not fond on going into my sql and changing something, so i will make sure that it works. right...

the code: UPDATE nuke_users SET theme = "" ;

do i put anything in between the "" ??
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Moderator
 
dar63's Avatar
 
Status: Offline
Posts: 473
Join Date: Oct 2002
Location: UK
10-06-2004, 06:40 PM

Quote:
do i put anything in between the "" ??
That would just wipe everyones selection out defaulting them to default, if you wish to be sure they get new theme place the theme name in there.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 8
Join Date: Oct 2004
10-06-2004, 07:28 PM

Guys, this was really simple. I simply changed 1 thing and everything worked...

I changed

if ($thmcount > 1) {
$menuimg = menuimg("themes.gif");


to

if ($thmcount > 5) {
$menuimg = menuimg("themes.gif");

as soon as i set that to my default them (in eht admin panel) my own default them changed. so im guessing everyone elses did too.. ot at least i hope

thx fopr all your help
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloads Lock ultimitetinafan Site design 5 02-05-2006 12:53 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31