2005-05-21, 07:10 AM
2005-05-21, 09:25 AM
I think you're talking about the icon on the index page. Am I correct?
If so, you can change it by opening index.php, finding:
If so, you can change it by opening index.php, finding:
if($messages['pms_new'] > 0)
{
$pmfolder = "on.gif";
}
else
{
$pmfolder = "off.gif";
$messages['pms_new'] = 0;
}
And replace on.gif and off.gif with the images you want.2005-05-21, 11:27 AM
hi DennisTT
I cant seem to find
(Dale) Note: Please use [CODE] tags please.
I cant seem to find
if($messages['pms_new'] > 0)
{
$pmfolder = "on.gif";
}
else
{
$pmfolder = "off.gif";
$messages['pms_new'] = 0;
}
In the index.php you said to look in. The only gif's in there are for the forums online and offline but not the private messages mate.(Dale) Note: Please use [CODE] tags please.
2005-05-21, 09:13 PM
any other idea's mate?
2005-05-22, 01:19 AM
It should be on line 38. I'm assuming you're using RC4. Here's the first 50 (give or take a few) lines of the index.php I have....
Code:
<?php
/**
* MyBulletinBoard (MyBB)
* Copyright � 2004 MyBulletinBoard Group, All Rights Reserved
*
* Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*
*/
$templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,index_welcomeguesttext";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats";
require "./global.php";
// Load global language phrases
$lang->load("index");
if($mybb['uid'] != 0)
{
if($mybbuser['receivepms'] != "no" && $mybbgroup['canusepms'] != "no")
{
$query = $db->query("SELECT COUNT(*) AS pms_total, SUM(IF(dateline>'$mybb[lastvisit]' AND folder='1','1','0')) AS pms_new, SUM(IF(status='0' AND folder='1','1','0')) AS pms_unread FROM ".TABLE_PREFIX."privatemessages WHERE uid='$mybb[uid]'");
$messages = $db->fetch_array($query);
if($messages['pms_new'] > 0)
{
[b]$pmfolder = "on.gif";[/b]
}
else
{
[b]$pmfolder = "off.gif";[/b]
$messages['pms_new'] = 0;
}
// the SUM() thing returns "" instead of 0
if($messages['pms_unread'] == "")
{
$messages['pms_unread'] = 0;
}
$lang->pms_new = sprintf($lang->pms_new, $messages['pms_new']);
$lang->pms_unread_total = sprintf($lang->pms_unread_total, $messages['pms_unread'], $messages['pms_total']);
eval("\$pms = \"".$templates->get("index_pms")."\";");
}
// eval("\$welcometext = \"".$templates->get("index_welcomemembertext")."\";");
eval("\$logoutlink = \"".$templates->get("index_logoutlink")."\";");
}
else
{
eval("\$welcometext = \"".$templates->get("index_welcomeguesttext")."\";");
eval("\$welcomeguest = \"".$templates->get("index_welcomeguest")."\";");
eval("\$loginform = \"".$templates->get("index_loginform")."\";");
}
2005-05-22, 07:17 AM
ahhhh wrong index lol was looking at templates for it. Okay i got ya now mate sorry about that.
2005-05-22, 08:57 AM
No problem.