» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 57
0 members and 57 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on 'Lock' a theme within the Nuke 7.x - Themes forums, part of the PHP-Nuke 7.x category; I want to place a theme for Halloween, but i want all my users to use it. I want to ...


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2004, 05:07 PM
Junior Member
 
Join Date: Oct 2004
Posts: 8
'Lock' a theme
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
  #2 (permalink)  
Old 10-06-2004, 05:24 PM
Moderator
 
Join Date: Sep 2004
Location: Notts, UK
Posts: 330
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
  #3 (permalink)  
Old 10-06-2004, 05:35 PM
Junior Member
 
Join Date: Oct 2004
Posts: 8
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
  #4 (permalink)  
Old 10-06-2004, 05:45 PM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
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
__________________
http://phpnuke-uk.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-06-2004, 05:48 PM
Junior Member
 
Join Date: Oct 2004
Posts: 8
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
  #6 (permalink)  
Old 10-06-2004, 05:52 PM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
Just set all their themes back to default with

Code:
UPDATE nuke_users SET theme = "" ;
via phpmyadmin
__________________
http://phpnuke-uk.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-06-2004, 07:34 PM
Junior Member
 
Join Date: Oct 2004
Posts: 8
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
  #8 (permalink)  
Old 10-06-2004, 07:40 PM
dar63's Avatar
Moderator
 
Join Date: Oct 2002
Location: UK
Posts: 473
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.
__________________
http://phpnuke-uk.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-06-2004, 08:28 PM
Junior Member
 
Join Date: Oct 2004
Posts: 8
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 01:53 PM


All times are GMT -5. The time now is 07:30 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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