» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 63
0 members and 63 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
buy Rimonabant - Help dieters achieve significant weight loss without having to slog in the gym

Register Now! Contact Us

About this Page
This is a discussion on Saving Forum profile changes theme Nuke6.5 within the FAQ/Fixes forums, part of the Nukemods category; We don't want this to happen anymore in Nuke6.5 All theme selection shoudl be conttrolled ONLY from the ...



Go Back   Nukemods Forum » Nukemods » FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2003, 09:17 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Saving Forum profile changes theme Nuke6.5
We don't want this to happen anymore in Nuke6.5
All theme selection shoudl be conttrolled ONLY from the theme selection on the Your Account page!

Here's how to remove the feature. You don't have to remove the Style selection option from the template tpl file, it won't work after this, but you can for cosmetics if you want. You'll have to find that yourself :-)

open
includes/usercp_register.php

Find around line 502(it's all one line)

Code:
                                SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', theme = '$save_nuke_theme', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
remove this part from that line
Code:
theme = '$save_nuke_theme',
also you may want to comment out all these lines which are right above that line
Code:
                        $sql = "SELECT * FROM ".$prefix."_bbthemes WHERE themes_id='$user_style'"; 
                        $result = $db->sql_query($sql); 
                        $get_info = $db->sql_fetchrow($result); 
                            $nuketheme = $get_info[template_name]; 

                        $handle=opendir('themes'); 
                            while ($file = readdir($handle)) { 
                                if ( (ereg("[$nuketheme]",$file)) ) { 
                                $nuke_theme_exsist = "true"; 
                            } 
                        } 
                        closedir($handle); 

                        if($nuke_theme_exsist == "true"){ 
                        $save_nuke_theme = "$nuketheme"; 
                        } else { 
                            $save_nuke_theme = "$Default_Theme"; 
                        }
If we leave the style selction option working on the Forum side in the User's edit profile, then you may experience some not so nice effects. Trust me on this one...

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Forum Links for forums blocked by profile. smjohns Site design 0 02-23-2005 02:57 AM
Forum Usser Managment Not saving killerbee Nuke 7.x - General 6 02-16-2005 02:58 PM
Saving Forum profile info changes theme in Nuke6.5 mikem Nuke 6.5 to 6.9 - Themes 0 04-08-2003 09:45 PM
Point all nuke links to forum registration and edit profile mikem FAQ/Fixes 0 04-06-2003 02:51 PM
Error installing fiapple Theme (Nuke6.0 and 6.5) Gomero Theme packs 16 02-23-2003 10:44 PM


All times are GMT -5. The time now is 12:50 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31