Author |
Topic |
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 13:41:25
|
I have the members since mod added to my forums as well as the active users mod. What I am looking for is to try and implement the addon for active users: where users can see whether the poster is online when viewed from a specific topic.
I followed the directions from :: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=42436&SearchTerms=online/offline
It does work, with some exceptions; the code pushes either itself or the members since mod to the top of the topic: above the title for the topic and author title.
How do I get it to show in the correct spot (below the authors name- for both the members since and status)? |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 17 September 2005 : 13:50:21
|
Have you double-checked the HTML put out? Just off the top of my head I'd say it was a missing/extra tag somewhere... |
|
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 14:37:51
|
I dont see anything wrong, but I could be wrong. Here was a picture of what happened when I have both codes working together::
as you can see, the members since is above the authors, and with more posters, the more is seen in that location.
here is the code from my topic.asp and inc_func_common.asp, links are respective.
http://www.ichabod.org/tests/topic.txt http://www.ichabod.org/tests/inc_func_common.txt |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 17 September 2005 : 14:42:34
|
Its definatly an errant tag. Lemme see if I can find it. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 17 September 2005 : 14:45:31
|
Line 592 you have an extra </td>
and on Line 800
Because you are closing the table cell after you write the status, it doesn't know what to do with the "Member Since" part.
Just get rid of those two extra closing tags and all should be ok. |
|
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 17:29:56
|
yup, that seemed to do the trick- thanks, I appreciate it. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 17 September 2005 : 22:07:00
|
Not a problem. That's what we're here for. |
|
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 23:32:45
|
any suggetsions how I can get rid of the text (Status: online/offline) in exchange for images (with alt text stating whether the 2 images are online or offline?) |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 17 September 2005 : 23:56:58
|
Replace the words with the image tags for the images you want to use. |
|
|
zerakh
Junior Member
120 Posts |
Posted - 18 September 2005 : 00:34:29
|
I can understand the replacing the status section, but isnt it tied into the database string, and then comes back with a value?
quote: " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>Status: "& AUMemberStatus(arrOnlineMembers, Reply_MemberID) &"</small></font></p></td>" & vbNewLine & _
|
|
|
StudyManSteve
Starting Member
New Zealand
11 Posts |
Posted - 18 September 2005 : 06:13:31
|
zerakh - the string comes from inc_func_common.asp. So you will need to edit the AUMemberStatus function in that file to return appropriate img tags instead of 'online' or 'offline'
I'll add - Classicmotorcycling posted a nice mod to the AUMemberStatus function here: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=42436&SearchTerms=Start+code |
Edited by - StudyManSteve on 18 September 2005 06:32:48 |
|
|
zerakh
Junior Member
120 Posts |
Posted - 18 September 2005 : 09:30:43
|
yeha- that was one of the pages I had been looking at. After following his code, I had screwed some things up, hence this topic. But with Anon's help, I managed to straighten out my code.
Thank you for your help, with it, I managed to locate the correct spot and put in my images. The one thing thats not showing is the alt tags.
quote: " <img src=""user_online.gif"" border=""0"" alt=""Member is online"">"
I tried this way as well as::
quote: "<img src='user_online.gif' alt='Member is online.'>"
each one works, just not with the alt tag- I'm just looking to say that the user is offline
when I have this:: AUMemberStatus = "offline" it states (text) that the user is offline. With the image, the user holds the mouse over the image and the text shows that the user is offline. |
|
|
|
Topic |
|