Author |
Message |
cornishpixie
Regular


Joined: Dec 15, 2008
Posts: 79
|
Posted:
Sat Feb 28, 2009 5:14 pm |
|
Have set my site for ravenice theme as default and checked the box so that members can't change the theme. But quite a few members are saying they're using sunset.
If its set so they cant change themes from default whats happening, because they can change themes in their YA willy nilly at the moment?
I set the member theme choice override in the forum ACP config area. Have I missed another place I should have set it? It's already set as default in Site Admin CP in preferences. |
|
|
|
 |
trunks
Worker


Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom
|
Posted:
Sat Feb 28, 2009 5:22 pm |
|
Well that would depend on when you set it to over ride and when they registered and changed it.
You could do a couple of things, one set the default through a small script or phpmyadmin... and/or then remove the theme button from Your_Account.
To remove the theme button from your account do the following.
open navbar.php located in public_html/yournukelocation/modules/Your_Account/
Remove the following lines:
Code: if (($thmcount > 1) AND ($ya_config['allowusertheme'] == 1)) {
$menuimg = menuimg('themes');
echo '<td width="' . $tdwidth . '%" valign="top" align="center" class="content">';
echo '<a href="modules.php?name=Your_Account&op=chgtheme"><img src="' . $menuimg . '" border="0" alt="' . _SELECTTHETHEME . '" title="' . _SELECTTHETHEME . '" /></a><br />';
echo '<a href="modules.php?name=Your_Account&op=chgtheme">' . _ACCTTHEME . '</a>';
echo '</td>';
}
|
Save and upload.
Next to reset users themes do the following:
place the following code in a .php file:
Code:<?
require_once("mainfile.php");
global $user_prefix, $db;
$result = $db->sql_query("UPDATE ".$user_prefix."_users SET theme='RavenIce' WHERE user_id !='1'");
if(!$result){
echo 'User themes not updated';
}else{
echo 'User themes updated successfully';
}
?>
|
Upload to your nuke root directory (where config.php is) and point your browser to it.
Delete after and you should be all set!
Let me know if you have any issues.
Trunks |
|
|
|
 |
cornishpixie

|
Posted:
Sat Feb 28, 2009 5:33 pm |
|
I dont want to remove the theme selection button from Your Account.
I just want to override their theme selection while I check out some of the themes, make logos for them etc. Then let them choose a theme when I'm done.
So in that case, do I just do the second bit of code as suggested? |
|
|
|
 |
trunks

|
Posted:
Sat Feb 28, 2009 6:14 pm |
|
The second bit will change all users to the raven ice theme so yes.
 |
|
|
|
 |
cornishpixie

|
Posted:
Sat Feb 28, 2009 8:07 pm |
|
many thanks
Once I've done that, can I change it back as normal in the forum acp config section after I've checked the themes over so they can change themes again if they want to?
Sorry to be a pain lol |
|
|
|
 |
trunks

|
Posted:
Sun Mar 01, 2009 9:12 am |
|
I believe so  |
|
|
|
 |
cornishpixie

|
Posted:
Sun Mar 01, 2009 9:18 am |
|
Thanks for all your help much appreciated |
|
|
|
 |
trunks

|
Posted:
Sun Mar 01, 2009 2:56 pm |
|
You are more than welcome cornishpixie good luck!  |
|
|
|
 |
dad7732
RavenNuke(tm) Development Team

Joined: Mar 18, 2007
Posts: 1242
|
Posted:
Mon Mar 02, 2009 9:55 am |
|
Alternative: Instead of editing any files to blank out user's themes, run this SQL in your DB in PHPMyAdmin:
Quote: | UPDATE nuke_users SET theme = ''
|
Cheers |
|
|
|
 |
cornishpixie

|
Posted:
Mon Mar 02, 2009 10:01 am |
|
|
|
 |
trunks

|
Posted:
Mon Mar 02, 2009 5:32 pm |
|
Lol ive already explained that... read my previous post.. that code just helps users out that are not familiar or experienced in using phpmyadmin or sql data bases  |
|
|
|
 |
dad7732

|
Posted:
Mon Mar 02, 2009 6:28 pm |
|
Yes, but I usually post an alternative in case there are readers that don't post and can gain some valuable information in the meatime.
Cheers |
|
|
|
 |
trunks

|
Posted:
Tue Mar 03, 2009 7:50 am |
|
pah you missed my point.. you posted exactly the same code as i did.... was all  |
|
|
|
 |
dad7732

|
Posted:
Tue Mar 03, 2009 9:25 am |
|
Oh yes, I know it's the same code but yours is an edit to the .php file whereas mine is the SQL run ... and that's what I meant by alternative, not the code itself
Cheers |
|
|
|
 |
cornishpixie

|
Posted:
Tue Mar 03, 2009 11:03 am |
|
Thanks both. I found the sql run dead easy to do, so chose that one. It's ideal for numpty's like myself who aren't brill at coding. Thank you both tho, much appreciated. |
|
|
|
 |
dad7732

|
Posted:
Tue Mar 03, 2009 11:23 am |
|
Excellent, that is why we are ALL here ...
 |
|
|
|
 |
|