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, 36 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Is it okay to delete unwanted themes? [ ]
 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
nimda
Nuke Cadet
Nuke Cadet


Joined: Jul 07, 2003
Posts: 6


PostPosted: Wed Aug 06, 2003 9:29 pm Reply with quoteBack to top

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?
Find all posts by nimdaView user's profileSend private message
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Wed Aug 06, 2003 9:41 pm Reply with quoteBack to top

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
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Wed Aug 06, 2003 9:58 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Wed Aug 06, 2003 11:29 pm Reply with quoteBack to top

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!!

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
implodeme
Nuke Soldier
Nuke Soldier


Joined: Apr 23, 2003
Posts: 13


PostPosted: Thu Aug 07, 2003 4:48 pm Reply with quoteBack to top

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!
Find all posts by implodemeView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
nimda
Nuke Cadet
Nuke Cadet


Joined: Jul 07, 2003
Posts: 6


PostPosted: Fri Aug 08, 2003 12:05 am Reply with quoteBack to top

Thanks Guys, much appreciated!
Find all posts by nimdaView user's profileSend private message
implodeme
Nuke Soldier
Nuke Soldier


Joined: Apr 23, 2003
Posts: 13


PostPosted: Fri Aug 08, 2003 12:20 am Reply with quoteBack to top

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!
Find all posts by implodemeView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
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.323 Seconds - 312 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::