You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 62 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Force users to use a certain theme [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
HBAndrew
Nuke Cadet
Nuke Cadet


Joined: May 28, 2003
Posts: 5


PostPosted: Wed May 28, 2003 7:03 pm Reply with quoteBack to top

Is there a way to not allow users to choose their own theme, say i choose theme subBlack3D in prefrences, is there a option to override users selection for themes like in postnuke, so whatever theme they choose in their account options it will always stay on that 1 theme

thx
Find all posts by HBAndrewView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed May 28, 2003 7:05 pm Reply with quoteBack to top

The simplest and most assured way is to only have 1 theme loaded in your themes folder. Set it as your default and they have no choice.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed May 28, 2003 11:24 pm Reply with quoteBack to top

the other way is to use the Your_Account tweak which enables you to disable the Theme selection icon in the Your_Account panel. (this happens when you only have 1 theme anyway)

AI
Find all posts by ArtificialIntelView user's profileSend private message
sagetyrtle
Sergeant
Sergeant


Joined: May 04, 2003
Posts: 111


PostPosted: Sat May 31, 2003 11:35 am Reply with quoteBack to top

(I'm a beginner so be aware of that before you use my fix - I don't know if it has other ramifications!)

I don't have telnet access (yet) so I wasn't able to use the tweak, but I deleted this:

Code:
    if ($thmcount > 1) {
   $menuimg = menuimg("themes.gif");
   echo "<td width=\"10%\"><font class=\"content\">"
       ."<center><a href=\"modules.php?name=Your_Account&op=chgtheme\"><img src=\"$menuimg\" border=\"0\" alt=\""._SELECTTHETHEME."\" title=\""._SELECTTHETHEME."\"></a><br>"
       ."<a href=\"modules.php?name=Your_Account&op=chgtheme\">"._SELECTTHETHEME."</a>"
       ."</center></form></font></td>";
    }


from modules/Your_Account/navbar.php and it seems to have worked; now users don't have the option to go to the Themes page.
Find all posts by sagetyrtleView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat May 31, 2003 12:29 pm Reply with quoteBack to top

as ZX and chatserv have posted before, if you change $thmcount > 1 to $thmcount > 1000 it does the same thing (providing you've got less than 1000 themes)

AI
Find all posts by ArtificialIntelView user's profileSend private message
Mindl3ss
Sergeant
Sergeant


Joined: May 10, 2003
Posts: 148

Location: Karachi, Pakistan

PostPosted: Sun Jun 29, 2003 1:07 am Reply with quoteBack to top

what if i know some users has already choosen some other theme? and i dont know who are those some users.. ?? is there a way to change ALL users selected theme to site default theme?

_________________
Normal people ... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet.
Find all posts by Mindl3ssView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Mighty_Y
Sergeant
Sergeant


Joined: Feb 27, 2003
Posts: 94


PostPosted: Sun Jun 29, 2003 1:24 am Reply with quoteBack to top

Put this in a file:
Code:
<?php

#####################################################
#####################################################

require("config.php");

$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
$def_theme = "DeepBlue";
mysql_connect($host, $username, $password);
@mysql_select_db($database);

####################### BEGIN THE INSTALL #######################################

mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");

?>

change the value of $def_theme to the themename you want to be the default, upload the file to the place where your config.php is and run it.
That should do the trick
Find all posts by Mighty_YView user's profileSend private messageVisit poster's website
Mindl3ss
Sergeant
Sergeant


Joined: May 10, 2003
Posts: 148

Location: Karachi, Pakistan

PostPosted: Mon Jun 30, 2003 5:00 am Reply with quoteBack to top

yes but this wont effect the users who have already selected any theme for instance if i have selected the "sunset" theme here on nukecops, and ZX changed the default theme to the current site theme, then at my side it will open the site with "sunset" theme cause i have told it to do so in the prefrences, if you have to remove all the other selected themes from the user prefrences,then you will have to do it one by one through phpmyadmin type utilities.

_________________
Normal people ... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet.
Find all posts by Mindl3ssView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 30, 2003 5:16 am Reply with quoteBack to top

Raven wrote:
The simplest and most assured way is to only have 1 theme loaded in your themes folder. Set it as your default and they have no choice.

This is really the only way if users have already replaced their selection. Of course you have already set the default theme accordingly. In addition to the above, do this too. Use phpMyAdmin and issue these sql statements
Code:
UPDATE nuke_users set theme='SOMETHEME'
Of course substitute your theme for SOMETHEME. Also this sql
Code:
UPDATE nuke_users set user_theme=0

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Stylee
Sergeant
Sergeant


Joined: Jun 22, 2003
Posts: 140

Location: USA

PostPosted: Wed Jul 02, 2003 5:14 am Reply with quoteBack to top

ArtificialIntel wrote:
the other way is to use the Your_Account tweak which enables you to disable the Theme selection icon in the Your_Account panel. (this happens when you only have 1 theme anyway)

AI


Where is the Your_Account tweak?
Find all posts by StyleeView user's profileSend private messageSend e-mailVisit poster's website
Mindl3ss
Sergeant
Sergeant


Joined: May 10, 2003
Posts: 148

Location: Karachi, Pakistan

PostPosted: Tue Jul 08, 2003 8:28 am Reply with quoteBack to top

Raven wrote:
Raven wrote:
The simplest and most assured way is to only have 1 theme loaded in your themes folder. Set it as your default and they have no choice.

This is really the only way if users have already replaced their selection. Of course you have already set the default theme accordingly. In addition to the above, do this too. Use phpMyAdmin and issue these sql statements
Code:
UPDATE nuke_users set theme='SOMETHEME'
Of course substitute your theme for SOMETHEME. Also this sql
Code:
UPDATE nuke_users set user_theme=0

Thanks Raven it worked Smile
bye

_________________
Normal people ... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet.
Find all posts by Mindl3ssView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Tue Jul 08, 2003 8:31 am Reply with quoteBack to top

You're welcome!

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Mindl3ss
Sergeant
Sergeant


Joined: May 10, 2003
Posts: 148

Location: Karachi, Pakistan

PostPosted: Wed Jul 09, 2003 1:59 am Reply with quoteBack to top

/me innocently asks "Where?" hehehe

_________________
Normal people ... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet.
Find all posts by Mindl3ssView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Jul 09, 2003 3:56 am Reply with quoteBack to top

Laughing My house.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.386 Seconds - 300 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::