| Author |
Message |
nimda
Nuke Cadet


Joined: Jul 07, 2003
Posts: 6
|
Posted:
Wed Aug 06, 2003 9:29 pm |
  |
I want to delete ALL other themes except the custom theme I am using so users will not have theme options. Is this what I should do?
OR
Can I disable the user selectable theme choices in the user options?
Whats the best way to go about this? |
|
|
   |
 |
Audioslaved
Elite Nuker


Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
|
Posted:
Wed Aug 06, 2003 9:41 pm |
  |
I would disable the user choice options first. Then set your default theme to the one you want to keep. After that, I think you should be safe in deleting the other themes from your site. If you are using 6.0, you may need to set this in your forum as well. 6.5, you should be set with just your admin preferences. Any other takers on this? |
_________________ GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/
The Audioslave Fan Forum
http://www.audioslaved.com |
|
     |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Wed Aug 06, 2003 9:58 pm |
  |
All sounds correct Audioslaved, regarding the users he can set everyone's theme to the new default with:
UPDATE nuke_users set user_theme = 'Theme_Name_Here'; |
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
dezina
Support Mod


Joined: Jun 09, 2003
Posts: 1713
Location: England
|
Posted:
Wed Aug 06, 2003 11:29 pm |
  |
Easy way.. Create a new folder, name it something like themes_keep... move all themes not required into new folder, keeping your main default theme in folder, themes... done!! |
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums. |
|
    |
 |
implodeme
Nuke Soldier


Joined: Apr 23, 2003
Posts: 13
|
Posted:
Thu Aug 07, 2003 4:48 pm |
  |
| chatserv wrote: |
All sounds correct Audioslaved, regarding the users he can set everyone's theme to the new default with:
UPDATE nuke_users set user_theme = 'Theme_Name_Here'; |
Is there a way that I can do this in .php file
like create a file called setnewtheme.php
and then edit the code to change the theme for all users?
I have a Fixtheme.php similar to this, but it is for the current user.
USING NUKE 6.8 |
_________________ ~Implosion at it's best! |
|
        |
 |
nimda
Nuke Cadet


Joined: Jul 07, 2003
Posts: 6
|
Posted:
Fri Aug 08, 2003 12:05 am |
  |
Thanks Guys, much appreciated! |
|
|
   |
 |
implodeme
Nuke Soldier


Joined: Apr 23, 2003
Posts: 13
|
Posted:
Fri Aug 08, 2003 12:20 am |
  |
Settheme.php TESTED WITH NUKE 6.8 ONLY!!!
This will make everyone have the same, NEW theme, so you can delete all the old themes. (If they have a theme set that is no longer available, then they will get a blank page)
SetTheme.php
| Code: |
<?php
#####################################################
#####################################################
require("config.php");
$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
$def_theme = "fiblack3d";
mysql_connect($host, $username, $password);
@mysql_select_db($database);
# Change the value of $def_theme to a theme available on your site that works
# Just upload this file to nuke's main dir (where config.php is) and point your browser to
####
# Original Creation
# http://your_nuke_url/fixtheme.php
# chatserv@nukeresources.com
####
# Updated to force New Theme to all users
# Kit Cargile
# implodeme@hotmail.com
# http://your_nuke_url/settheme.php
################### BEGIN THE FIX ###################
mysql_query("update ".$prefix."_users set theme='$def_theme'");
mysql_query("update ".$prefix."_config set Default_Theme='$def_theme'");
echo "Go back to your <a href=\"index.php\">website</a>.";
?> |
Hope this helps someone. |
_________________ ~Implosion at it's best! |
|
        |
 |
|
|