Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - How To Set One Theme For All Users Script
How To Set One Theme For All Users Script

11 Replies / 2461 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » How To's

View previous topic :: View next topic


James2
Reputation: 131.9 Add RepSubtract Rep
votes: 2
Local time: 4:11 AM

iran.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 15 Feb 2009
Posts: 36
Points: 337 

Post How To Set One Theme For All Users Script Posted: Thu Apr 10, 2008 6:50 am

Hi there,

I had asked this question once before, but no one answered.

How can I set a specific theme for all my users.
for example I had 5 themes and each user had chosen on of theme,
now I want to use just one theme and remove the rest,
but if I do so, the users who have chosen other ones, can't see the site.
how can I fix this?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Guardian
Reputation: 531.7 Add RepSubtract Rep
votes: 1
Local time: 10:11 AM

slovakia.gif



0.04 posts per day
Medals: 0
Respected Member
Respected Member
Joined: Dec 09, 2006
Last Visit: 05 Feb 2012
Posts: 71
Points: 4558 

Post How to set on theme for all? Posted: Thu Apr 10, 2008 9:09 am

You can set the default theme in nuke admin-> Preferences

If existing users have already set their own preferred theme, this 'user preference' will override the theme set in the nuke admin preferences.

If you only want to use one theme site-wide, remove all your other themes and nuke will automatically switch each users preferred theme to the site default - it does a little routine to see if the 'user preferred' theme exists, if not, it switches to use the site default.

If you want to have several themes available but only want you users to be able to use the one in the nuke admin preferences you will need to do the following;
Using a database administration tool like phpmyadmin, you will have to go into the nuke users table and manually set each user theme to force the default theme. If you need help with this shout up as there is a little routine that can do that for you.
Remove the link in navbar.php (Your Account module) which will stop user being able to select their own theme by virue of the fact they will no longer have a 'theme' buton to press..
 

 
View user's profileSend private messageVisit poster's website Reply with quote

James2
Reputation: 131.9 Add RepSubtract Rep
votes: 2
Local time: 4:11 AM

iran.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 15 Feb 2009
Posts: 36
Points: 337 

Post Re: How to set on theme for all? Posted: Thu Apr 10, 2008 11:36 am

thanks Guardian,
but I know there is a script for doing this which uses FOR() function which automatically change directly the database.
could you give me that?
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Guardian
Reputation: 531.7 Add RepSubtract Rep
votes: 1
Local time: 10:11 AM

slovakia.gif



0.04 posts per day
Medals: 0
Respected Member
Respected Member
Joined: Dec 09, 2006
Last Visit: 05 Feb 2012
Posts: 71
Points: 4558 

Post How to set on theme for all? Posted: Thu Apr 10, 2008 1:22 pm

Code:

UPDATE `nuke_users`SET `theme` = "THETHEME";

Just change THETHEME to the name of the theme you want as the default.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

James2
Reputation: 131.9 Add RepSubtract Rep
votes: 2
Local time: 4:11 AM

iran.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 15 Feb 2009
Posts: 36
Points: 337 

Post Re: How to set on theme for all? Posted: Fri Apr 11, 2008 6:23 am

thanks, I made it. Smiley
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Guardian
Reputation: 531.7 Add RepSubtract Rep
votes: 1
Local time: 10:11 AM

slovakia.gif



0.04 posts per day
Medals: 0
Respected Member
Respected Member
Joined: Dec 09, 2006
Last Visit: 05 Feb 2012
Posts: 71
Points: 4558 

Post How to set on theme for all? Posted: Fri Apr 11, 2008 7:03 am

No problem, glad to help when I have the time :)
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Ped
Reputation: 64 Add RepSubtract Rep
votes: 35
Local time: 10:11 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 10 Feb 2012
Posts: 4467
Points: 181248 

Post Re: How to set on theme for all? Posted: Fri Apr 11, 2008 9:15 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Thats a nice little script... Ill sticky this one.

Thanks G
 

 
View user's profileSend private messageSend e-mail Reply with quote

James2
Reputation: 131.9 Add RepSubtract Rep
votes: 2
Local time: 4:11 AM

iran.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 15 Feb 2009
Posts: 36
Points: 337 

Post How To Set One Theme For All Users Script Posted: Fri Apr 11, 2008 1:39 pm

hey pals,
to complete the job I turned it into a little php script as a nuke module for all to use,
just easily put your theme name and click "DO".

Theme_Changer.rar
 Description:

Download
 Filename:  Theme_Changer.rar
 Filesize:  1004 Bytes
 Downloaded:  12 Time(s)

 

 
View user's profileSend private messageVisit poster's website Reply with quote

James2
Reputation: 131.9 Add RepSubtract Rep
votes: 2
Local time: 4:11 AM

iran.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 15 Feb 2009
Posts: 36
Points: 337 

Post Re: How To Set One Theme For All Users Script Posted: Fri Apr 11, 2008 3:43 pm

and one thing more,
it's possible to change it for every user specifications, such as points, language, and every thing.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Guardian
Reputation: 531.7 Add RepSubtract Rep
votes: 1
Local time: 10:11 AM

slovakia.gif



0.04 posts per day
Medals: 0
Respected Member
Respected Member
Joined: Dec 09, 2006
Last Visit: 05 Feb 2012
Posts: 71
Points: 4558 

Post How To Set One Theme For All Users Script Posted: Fri Apr 11, 2008 5:23 pm

Personally I find it quicker to just go into phpNyAdmin that have to upload files, run it then delete theme but I'm sure some will find a use for it :)
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 4:11 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post How To Set One Theme For All Users Script Posted: Fri Apr 11, 2008 5:45 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Me too hehe.

I just drop in phpmyadmin and write my own queries mostly. However, that is a user knowledge thing and all about what you get used too.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

davidpenny
Reputation: 478 Add RepSubtract Rep
Local time: 4:11 AM


Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Aug 02, 2007
Last Visit: 26 Jan 2009
Posts: 24
Points: 15 

Post Re: How To Set One Theme For All Users Script Posted: Sun Jan 25, 2009 7:08 pm

James2 wrote:
Hi there,

I had asked this question once before, but no one answered.

How can I set a specific theme for all my users.
for example I had 5 themes and each user had chosen on of theme,
now I want to use just one theme and remove the rest,
but if I do so, the users who have chosen other ones, can't see the site.
how can I fix this?

You can delete the themes you don't want people to use or you can force everyone to use a default theme. This can be done within the admin panel.
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » How To's


 
11 Replies / 2461 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum