» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 50
0 members and 50 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11: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
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Saving Forum profile info changes theme in Nuke6.5 within the Nuke 6.5 to 6.9 - Themes forums, part of the PHP-Nuke 6.5 to 6.9 category; Saving Forum profile can revert your theme back to the default theme... :? ...We don't want this..so, open includes/...


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

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


All times are GMT -5. The time now is 07:43 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