» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 54
0 members and 54 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 SubBlack - You have no new messages within the Theme packs forums, part of the nukemods releases category; Small bug I noticed. I'm using the SubBlack theme with a somewhat fresh install of nuke 6.5 Final ...


Go Back   Nukemods Forum » nukemods releases » Theme packs

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2003, 01:18 PM
Junior Member
 
Join Date: May 2003
Posts: 1
SubBlack - You have no new messages
Small bug I noticed. I'm using the SubBlack theme with a somewhat fresh install of nuke 6.5 Final w/secfix3

In the header area of the forums (where it lists the links: Forum FAQ, Search, Memberlist, Usergroups, Profile, etc) the private message link always says "You have no new messages" even when there is one waiting. The user info block, PM pop-up and PM email all notify me of the new message but the forum header link doesn't.

I took a screen shot to illustrate my problem
http://aswz.chiumanfu.com/dlfiles/help.jpg

In the file: html/themes/subBlack/forums/overall_header.tpl
Quote:
[img]themes/subBlack/forums/images/icon_mini_message.gif[/img]{PRIVATE_MESSAGE_INFO}
Tracking this back, PRIVATE_MESSAGE_INFO is defined in the file: html/includes/page_header.php
but this is where the code gets too complicated for me.
Quote:
// Obtain number of new private messages
// if user is logged in
//
if ( $userdata['session_logged_in'] )
{
if ( $userdata['user_new_privmsg'] )
{
$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
WHERE user_id = " . $userdata['user_id'];
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
}

$s_privmsg_new = 1;
$icon_pm = $images['pm_new_msg'];
}
else
{
$s_privmsg_new = 0;
$icon_pm = $images['pm_new_msg'];
}
}
else
{
$l_privmsgs_text = $lang['No_new_pm'];

$s_privmsg_new = 0;
$icon_pm = $images['pm_no_new_msg'];
}

if ( $userdata['user_unread_privmsg'] )
{
$l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
$l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
}
else
{
$l_privmsgs_text_unread = $lang['No_unread_pm'];
}
}
else
{
$icon_pm = $images['pm_no_new_msg'];
$l_privmsgs_text = $lang['Login_check_pm'];
$l_privmsgs_text_unread = '';
$s_privmsg_new = 0;
}
Further down in the same file, PRIVATE_MESSAGE_INFO is defined as
Quote:
'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
Is anyone else having the same problems? Is there already a fix which eluded my searches? If all else fails, I guess I can always comment it out in the overall_header.tpl

Thanks for your help.

PS. I find the same bug is present in these Nukemods forums as well.
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
SubBlack theme, the subBlack forum is not subBlack johnnyskid Nuke 7.x - Themes 6 08-30-2006 02:03 PM
New Messages link in theme briano Nuke 6.5 to 6.9 - General 6 02-26-2005 11:22 AM
Wierd messages on my boards. BunnyNuke Nuke 7.x - General 2 11-19-2004 12:19 PM
Messages Administration Bo Nuke 7.x - General 3 07-02-2004 01:38 PM
Error messages I can't define paycheck Open topics 2 06-02-2003 11:12 AM


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