Premium Membership
Subscription graphics design php html youtube
Gold Subscription with Silver access
graphics design php html youtube
Live Support
Contact us by live help [photoshop, website design, tutorials]
Not available on weekends
Learn how to update all user theme with one script


If you ever have the need to change the theme for all your users then this script will help you.

Steps :
Create a php file and name it updatetheme.php and place it inside your nuke root folder (where config.php and mainfile.php are located). Place the following codes inside that file.

<?

require_once("mainfile.php");
global 
$user_prefix$db;

$result $db->sql_query("UPDATE ".$user_prefix."_users SET theme='YOURTHEMENAME' WHERE user_id !='1'");

if(!
$result){
echo 
'User themes not updated';
}else{
echo 
'User themes updated successfully';
}
      
?>

Change the YOURTHEMENAME to the actual name of the theme you want everyone to use. Run that file in your browser http://www.yoursite.com/updatetheme.php .

That's it! Enjoy and please Back Up as usual before making any major changes.



Advertisement





New Subscribers



Subscriber

CubanoSiempre

Platinum Subscribers

#1
Subscriber

chefjustinh

Silver Subscribers

#2
Subscriber

ballistique

Silver Subscribers

#3
Subscriber

xplan

Silver Subscribers

#4
Subscriber

kenno

Ultimate Subscriber

#5




Our Sponsors



PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.
Advertise with Western Studios.net
Free e Cards of holidays, cute animals, nature and more


Downloads



Latest in downloads

Most downloaded


Jobs





Community

Western Studios is an award winning website creating website disign and professional php scripts.

Associated Sites

Marketplace Themes, scripts, icons and images

Themes site PHP Nuke themes preview site.