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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 New PM Image
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mortioli
Average Member

United Kingdom
898 Posts

Posted - 09 August 2003 :  04:45:48  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message
Hiya!

I have this code in my inc_header.asp to show when someone has a new PM...

quote:
<% if pmcount > 0 then %>
<font face="<% =strHoverFontColor %>" size="<% =strFooterFontSize %>">
<center>
<A HREF="pm_view.asp"><b><% =strDBNTUserName %>, you have <% =pmcount %> private message(s)</b></a>
</center>
</font>
<br>
<% end if %>


...but what I'd like to do is to show different images for a different number of PMs

Eg,
1 PM would show pm_1.gif
2 PMs would show pm_2.gif
etc etc
...up to something like,
10 PMs and above would show pm_10+.gif

Would anyone be able to help me with some code for this please?

Cheers

laser
Advanced Member

Australia
3859 Posts

Posted - 09 August 2003 :  04:54:41  Show Profile
It's just a SELECT CASE where you are doing pmcount. I'll get back to you soon .....

edit:

ok, try this :

replace this part :

<%=pmcount%>

with ...

<%
Select Case pmcount
Case 0
Case 1
Response.Write "<img tag for pm_1>"
Case 2
Response.Write "<img tag for pm_2>"
.
.
.
Case 9
Response.Write "<img tag for pm_9>"
Case Else
Response.Write "<img tag for pm_10+>"
.
.
.
Case else
End Select
%>

Edited by - laser on 09 August 2003 05:00:23
Go to Top of Page

mortioli
Average Member

United Kingdom
898 Posts

Posted - 09 August 2003 :  05:06:26  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message
Cheers!

I'll give it a go sometime...still got to make the images.

I'm thinking of something along the lines of bars (like a volume control type thing), the next one bigger than the last, with the first one lit in red when one PM, second for two PMs etc, and a plus at the end which would be lit when they have 10 or more...so if anyone's seen anything like this around
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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07