Version: , by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 11-09-2001
Last Update: Never
Installs: 281
No support by the author.
This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!
NO MORE!
Install this very easy hack and no one will be able to ignore the PM again.
This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.
Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.
To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it.
Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests.
Anyway, have fun!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
can somebody tell me how to change the code that when the table is blinking and you go over this field it will be linked to the privat messages in user cp?
ok, mine never flashes, everytime there is a new PM, it just goes to a different color then the rest but doesn't flash, why?
This is what I have in my Template:
PHP Code:
<tr id="cat">
<td id="pmBox" bgcolor="{categorybackcolor}" colspan="6"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{secondaltcolor}" align="center" valign="top"><img src="{imagesfolder}/$lightbulb.gif" alt=""></td>
<td bgcolor="{firstaltcolor}" colspan="5"><smallfont>
<b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(s) since your last visit.<br>
(You have $unreadpm[messages] unread messages and $allpm[messages] total messages in all your folders.)</smallfont></td>
</tr>
<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() { x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='{categorybackcolor}';
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#336D95';
Originally posted by Webmasta XT ok, mine never flashes, everytime there is a new PM, it just goes to a different color then the rest but doesn't flash, why?
You have a category background image. You can't blink that. I made a modifed version that will enable you to get the bar to blink:
Hello guys I have read through the entire thread and I STILL cannot get this hack to work.
code removed
Even if I change all the colors for the categorybackground color and tablehead background color...it does not blink. The color changes but it doesnt blink.
Any suggestions?
Oh and yes I am using IE and Ive uploaded the index.php file, and sent myself a pm etc.....
Ok, I just upgraded to 2.2.5 and my PM bar now blinks all the time. I did a quick search for this problem, but did not find anything. Have I overlooked it, or any ideas as to what may cause this. It worked fine with 2.0.3.