Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 85
8 members and 77 guests
bearmchdressesr, coo5ewkin4sjcpg, cycwcwlinlt2gti, ess3grdexmusica, hel3qwpforcn7jr, pesbxbtcontr3jk, rem3noqoval4fiw, ronaldtianyiti2
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Themes

Reply
 
LinkBack Thread Tools Display Modes
Saving Forum profile info changes theme in Nuke6.5
Old
  (#1 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Saving Forum profile info changes theme in Nuke6.5 - 04-08-2003, 10:45 PM

Saving Forum profile can revert your theme back to the default theme... :? ...We don't want this..so,

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";
                        }
now when you save yout Forum profile, the theme won't reset to the default template which matches with the Default theme DeepBlue.
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
user info block, forums profile & memberslist. code ? k0m3k Nuke 7.x - Blocks 0 03-19-2005 11:57 AM
Disabling Forum Links for forums blocked by profile. smjohns Site design 0 02-23-2005 03:57 AM
Forum Usser Managment Not saving killerbee Nuke 7.x - General 6 02-16-2005 03:58 PM
Saving Forum profile changes theme Nuke6.5 mikem FAQ/Fixes 0 04-16-2003 10:17 PM
Point all nuke links to forum registration and edit profile mikem FAQ/Fixes 0 04-06-2003 03:51 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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