Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 PM Mod question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 July 2006 :  17:34:28  Show Profile  Visit leatherlips's Homepage
I would like to put a small animated gif next to the Private Messages Link in the inc_header.asp page. However, I only want the gif to appear if the member has a message waiting.

I have members that log in but never seem to know that they have a pm waiting. I thought by adding a small gif it may get their attention. For the gif, I'm talking about a 5x5 circle that "blinks"; nothing too annoying...

I abbreviated Private Messages to PM so it would look like this on my page: PM (1)

How would I go about doing this?

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 12 July 2006 17:45:42

JBaldwin
Junior Member

USA
137 Posts

Posted - 12 July 2006 :  19:42:24  Show Profile
Look for the one instance of this in inc_header.asp:

			if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & " New</b></font>)"


Make it look like this:

			if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & "</b></font>) <img src=""http://www.mangionemagic.com/forum/images/pmalert.gif"" alt=""PM ALERT"" border=""0"" />"


Of course, adjust the image URL to whatever you need to make it work. Alternatively, if you add that .gif to your inc_iconfiles.asp, then you can use something like:

getCurrentIcon(strIconPMalert,"PM Alert","hspace=""0""")



AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News



Edited by - JBaldwin on 12 July 2006 19:49:37
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 12 July 2006 :  19:50:18  Show Profile  Visit leatherlips's Homepage
I figured it out. When I came here to post what I did, I see that JBaldwin also had some suggestions. Here is what I did. I added the part in red:

If strPMStatus = "1" then
Response.Write " <a href=""pm_view.asp""" & dWStatus("Check Your Private Messages...") & " tabindex=""-1""><acronym title=""Check Your Private Messages..."">PM "
if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & " New</b></font>) <img align=""middle"" border=0 src=""" & StrImageURL & "pmalert.gif"">"

Of the various ways to do this, which way would be best? My way works but JBaldwin's approach would most likely work too. I want to do it the best way possible without any future issues.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

JBaldwin
Junior Member

USA
137 Posts

Posted - 12 July 2006 :  20:04:15  Show Profile
Here is the ideal way to do it, following the way Snitz does. Using inc_iconfiles.asp and inc_header.asp:

1) Upload the image pmalert.gif to your images folder
2) In inc_iconfiles.asp - look for:

Const strIconPmprivatemessage = "icon_privatemessage.gif|20|24"


After that, add:

Const strIconPMalert = "icon_pmalert.gif|5|5"


3) In inc_header.asp - look for:

			if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & " New</b></font>)" 


REPLACE IT WITH:

			if pmcount > 0 then Response.Write "(<font color=""" & strActiveLinkColor & """><b>" & pmcount & "</b></font>) " & getCurrentIcon(strIconPMalert,"PM Alert","hspace=""0""")



AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News


Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 12 July 2006 :  23:20:38  Show Profile
Nice mod leatherlips
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07