Clan Adverts

Custom PHPNuke Scripts

 

www.clan-themes.co.uk :: View topic - How To Set One Theme For All Users Script

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

How To Set One Theme For All Users Script

10 Replies / 525 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » How To's

View previous topic :: View next topic


James2
Reputation: 126.3
votes: 2
Local time: 3:54 AM

iran.gif

Status: Offline
0.27 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 12 May 2008
Posts: 33
Points: 556 

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: 488.2
votes: 1
Local time: 9:54 AM

poland.gif

Status: Offline
0.10 posts per day
Medals: 0

Joined: Dec 09, 2006
Last Visit: 06 Jul 2008
Posts: 57
Points: 1848 

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: 126.3
votes: 2
Local time: 3:54 AM

iran.gif

Status: Offline
0.27 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 12 May 2008
Posts: 33
Points: 556 

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: 488.2
votes: 1
Local time: 9:54 AM

poland.gif

Status: Offline
0.10 posts per day
Medals: 0

Joined: Dec 09, 2006
Last Visit: 06 Jul 2008
Posts: 57
Points: 1848 

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: 126.3
votes: 2
Local time: 3:54 AM

iran.gif

Status: Offline
0.27 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 12 May 2008
Posts: 33
Points: 556 

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: 488.2
votes: 1
Local time: 9:54 AM

poland.gif

Status: Offline
0.10 posts per day
Medals: 0

Joined: Dec 09, 2006
Last Visit: 06 Jul 2008
Posts: 57
Points: 1848 

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: 450.9
votes: 17
Local time: 9:54 AM
Location: Great British Empire
uk.gif

Status: Offline
2.92 posts per day
Medals: 2 (View more...)
Dedicated User (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 08 Jul 2008
Posts: 1764
Points: 8628 

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

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

Thanks G
 

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

James2
Reputation: 126.3
votes: 2
Local time: 3:54 AM

iran.gif

Status: Offline
0.27 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 12 May 2008
Posts: 33
Points: 556 

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:  5 Time(s)

 

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




James2
Reputation: 126.3
votes: 2
Local time: 3:54 AM

iran.gif

Status: Offline
0.27 posts per day
Medals: 0

Joined: Mar 10, 2008
Last Visit: 12 May 2008
Posts: 33
Points: 556 

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: 488.2
votes: 1
Local time: 9:54 AM

poland.gif

Status: Offline
0.10 posts per day
Medals: 0

Joined: Dec 09, 2006
Last Visit: 06 Jul 2008
Posts: 57
Points: 1848 

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: 2235.6
votes: 10
Local time: 3:54 AM
Location: Jackson Mississippi
usa.gif

Status: Offline
3.21 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 08 Jul 2008
Posts: 1938
Points: 23496 

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

Shop Purchases:
Clan Roster 2.0

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.
 

Free Clan Links - Submit Yours today  
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » How To's


 
10 Replies / 525 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