Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
cornishpixie
Regular
Regular



Joined: Dec 15, 2008
Posts: 79

PostPosted: Sat Feb 28, 2009 5:14 pm Reply with quote

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.
 
View user's profile Send private message
trunks
Worker
Worker



Joined: Oct 05, 2007
Posts: 152
Location: United Kingdom

PostPosted: Sat Feb 28, 2009 5:22 pm Reply with quote

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&amp;op=chgtheme"><img src="' . $menuimg . '" border="0" alt="' . _SELECTTHETHEME . '" title="' . _SELECTTHETHEME . '" /></a><br />';
         echo '<a href="modules.php?name=Your_Account&amp;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! Very Happy

Let me know if you have any issues.

Trunks
 
View user's profile Send private message Visit poster's website MSN Messenger
cornishpixie







PostPosted: Sat Feb 28, 2009 5:33 pm Reply with quote

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







PostPosted: Sat Feb 28, 2009 6:14 pm Reply with quote

The second bit will change all users to the raven ice theme so yes.
Smile
 
cornishpixie







PostPosted: Sat Feb 28, 2009 8:07 pm Reply with quote

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







PostPosted: Sun Mar 01, 2009 9:12 am Reply with quote

I believe so Smile
 
cornishpixie







PostPosted: Sun Mar 01, 2009 9:18 am Reply with quote

Thanks for all your help much appreciated
 
trunks







PostPosted: Sun Mar 01, 2009 2:56 pm Reply with quote

You are more than welcome cornishpixie Very Happy good luck! Very Happy
 
dad7732
RavenNuke(tm) Development Team



Joined: Mar 18, 2007
Posts: 1242

PostPosted: Mon Mar 02, 2009 9:55 am Reply with quote

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
 
View user's profile Send private message
cornishpixie







PostPosted: Mon Mar 02, 2009 10:01 am Reply with quote

Thanks
 
trunks







PostPosted: Mon Mar 02, 2009 5:32 pm Reply with quote

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 Bang Head
 
dad7732







PostPosted: Mon Mar 02, 2009 6:28 pm Reply with quote

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







PostPosted: Tue Mar 03, 2009 7:50 am Reply with quote

pah you missed my point.. you posted exactly the same code as i did.... was all Smile
 
dad7732







PostPosted: Tue Mar 03, 2009 9:25 am Reply with quote

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 Smile

Cheers
 
cornishpixie







PostPosted: Tue Mar 03, 2009 11:03 am Reply with quote

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







PostPosted: Tue Mar 03, 2009 11:23 am Reply with quote

Excellent, that is why we are ALL here ...

Cheers
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©