Locking themes.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: Locking themes.
dogboy9
CZ Newbie
dogboy9 has been a member for over 20 year's 20 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
I was thinking of that but what will happen to a user when a theme is missing they have have set? Will it set them to the site theme?



Back to top Reply with quote
#2   
swzman
CZ Super Newbie
swzman has been a member for over 20 year's 20 Year Member
usa.gif alabama.gif
Occupation: Database Administrator
Gender: Male
Fav. Sports Team: Nebraska Cornhuskers
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 35
Points: 4,220
   
No, but you can go into the database and make the default theme for all your users that do not have the default theme, the one that you choose. It is in the Users table and it should not be hard to do. You could run a script or do it manually if you don't have a lot of users.



Back to top Reply with quote
#3   re: Locking themes.
dogboy9
CZ Newbie
dogboy9 has been a member for over 20 year's 20 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
I have about 100users what scrip? I did try the scrip posted in this post but nothing happen



Back to top Reply with quote
#4   
swzman
CZ Super Newbie
swzman has been a member for over 20 year's 20 Year Member
usa.gif alabama.gif
Occupation: Database Administrator
Gender: Male
Fav. Sports Team: Nebraska Cornhuskers
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 35
Points: 4,220
   
I am not proficent enough with PHP to put the script you need in a PHP file so you can run it from your site but, it would just be a SQL script to set the default theme in your users table for all users to be the one theme that you want as your default. I could write the SQL but I assume you don't have direct access to your database. Is this correct?



Back to top Reply with quote
#5   re: Locking themes.
dogboy9
CZ Newbie
dogboy9 has been a member for over 20 year's 20 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
Yes I have access to it. I can log into MYPHPAdmin and from there I have a SQL tabe, from here I can past sql code and press run or upload a .sql file and press run.



Back to top Reply with quote
#6   re: Locking themes.
swzman
CZ Super Newbie
swzman has been a member for over 20 year's 20 Year Member
usa.gif alabama.gif
Occupation: Database Administrator
Gender: Male
Fav. Sports Team: Nebraska Cornhuskers
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 35
Points: 4,220
   
If you can sort the table when you are in there, sort the column theme so all the themes that are not your default is on top. Then you could just change each one to your default theme or if you are deleting all of your themes, set the theme field to null or blank. Do this before you delete the other themes.

Also, make sure you backup your database before doing this.



Back to top Reply with quote
#7   
swzman
CZ Super Newbie
swzman has been a member for over 20 year's 20 Year Member
usa.gif alabama.gif
Occupation: Database Administrator
Gender: Male
Fav. Sports Team: Nebraska Cornhuskers
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 35
Points: 4,220
   
You can also, after deleting the other themes, run this script to set the value to an empty value.

Echo said it best when he said...

UPDATE nuke100_users SET theme='';
OPTIMIZE TABLE nuke100_users;

This will set the theme for everyone to nothing or the default. If you have only one theme folder then this will be the one they get.

Remember to backup your database, please before doing this.



Back to top Reply with quote
#8   re: Locking themes.
scz74
CZ Active Member
scz74 has been a member for over 20 year's 20 Year Member
philippines.gif
Age: 50
Gender: Male
Website:
Status: Offline
Joined: Aug 15, 2004
0.02 posts per day
Posts: 145
Points: 7,972
   
try this, open modules/your_account/navbar.php look for this line

if ($thmcount > 1) {
   $menuimg = menuimg("themes.gif");



change the "1" to the number of themes you have for example "14"

if ($thmcount > 14) {
   $menuimg = menuimg("themes.gif");


this will lock your sites theme to your preferred theme only without deleting your other themes and will also automatically default all your existing members to your preferred theme. hope this helps



_________________
[ Register or login to view links on this board.]
[ Register or login to view links on this board.]
Back to top Reply with quote
#9   re: Locking themes.
dogboy9
CZ Newbie
dogboy9 has been a member for over 20 year's 20 Year Member
usa.gif newhampshire.gif
Occupation: Network Administrator
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Nov 09, 2004
0.00 posts per day
Posts: 26
Points: 2,628
AIM Address   
I'm allset thanks for all the help, I used the scrip and removed all other thems off the site.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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 cannot download files in this forum