| Author |
Message |
HBAndrew
Nuke Cadet


Joined: May 28, 2003
Posts: 5
|
Posted:
Wed May 28, 2003 7:03 pm |
  |
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 |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed May 28, 2003 7:05 pm |
  |
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 |
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Wed May 28, 2003 11:24 pm |
  |
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 |
|
|
   |
 |
sagetyrtle
Sergeant


Joined: May 04, 2003
Posts: 111
|
Posted:
Sat May 31, 2003 11:35 am |
  |
(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. |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sat May 31, 2003 12:29 pm |
  |
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 |
|
|
   |
 |
Mindl3ss
Sergeant


Joined: May 10, 2003
Posts: 148
Location: Karachi, Pakistan
|
Posted:
Sun Jun 29, 2003 1:07 am |
  |
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. |
|
       |
 |
Mighty_Y
Sergeant


Joined: Feb 27, 2003
Posts: 94
|
Posted:
Sun Jun 29, 2003 1:24 am |
  |
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 |
|
|
    |
 |
Mindl3ss
Sergeant


Joined: May 10, 2003
Posts: 148
Location: Karachi, Pakistan
|
Posted:
Mon Jun 30, 2003 5:00 am |
  |
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. |
|
       |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Mon Jun 30, 2003 5:16 am |
  |
| 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 |
|
    |
 |
Stylee
Sergeant


Joined: Jun 22, 2003
Posts: 140
Location: USA
|
Posted:
Wed Jul 02, 2003 5:14 am |
  |
| 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? |
|
|
     |
 |
Mindl3ss
Sergeant


Joined: May 10, 2003
Posts: 148
Location: Karachi, Pakistan
|
Posted:
Tue Jul 08, 2003 8:28 am |
  |
| 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
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. |
|
       |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Tue Jul 08, 2003 8:31 am |
  |
|
    |
 |
Mindl3ss
Sergeant


Joined: May 10, 2003
Posts: 148
Location: Karachi, Pakistan
|
Posted:
Wed Jul 09, 2003 1:59 am |
  |
/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. |
|
       |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Jul 09, 2003 3:56 am |
  |
|
    |
 |
|
|