Author |
Topic  |
|
zerakh
Junior Member
 
120 Posts |
Posted - 11 November 2005 : 20:23:20
|
I just tried this again. When I let someone have an avatar, I get a bunch of errors.
in the post with the avatar user, when they have the only single post- its fine. With the same poster posting in the same thread, the first post has the avatar- any post thereafter from the same user does not have an avatar.
if, I have a user with no avatar as the first poster, if an avatar using poster responds, the first user (no avatar) has a broken image and the avatar using poster does not have any...
I hope I explained that clear enough.
is there anyway to fix this and stop it from happening? |
|
Soar
Junior Member
 
USA
197 Posts |
Posted - 11 November 2005 : 21:49:46
|
I've not used this mod, and never looked at the code, so this is something of a wild guess, but...does the mod make changes to the topic.asp file? If so, there are two sections to that file - one for the topic starter, and one for replies. It sounds as if you only modified the code for the first post, and not the reply posts.
Again, just a guess. |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 11 November 2005 : 21:58:28
|
You got it Soar 
There are two places to change in topic.asp, check your alterations in both positions. |
 |
|
zerakh
Junior Member
 
120 Posts |
Posted - 12 November 2005 : 10:15:27
|
I checked my topic.asp with the readme file and I have everything I need to have and I still ended up with the problem. When I went to try and play with some of the code (it gives a few different versions...) I get varied error messages::
expected end of statement line 814 Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Posts & " Posts</small></font><br />" & vbNewLine & _
----------------^
or different ones like expected end sub line 919 (where there is an End Sub) I cant recreate these errors any more.
The main thing is...its still not working.
here is .txt for it and the read me. www.ichabod.org/tests/topic.txt
www.ichabod.org/tests/readme.html
|
 |
|
Soar
Junior Member
 
USA
197 Posts |
Posted - 12 November 2005 : 11:46:00
|
Try this...
At line 592 you have:
if Reply_MemberAvatar > "noavatar.gif" then
It should probably be:
if Reply_MemberAvatar <> "noavatar.gif" then
Delete lines 803 – 807 (line 803 is a blank line, by the way), like so:
Response.Write " </p>" & vbNewLine & _ " <p>" & vbNewLine
Response.Write " </p>" & vbNewLine Response.Write " </p>" & vbNewLine Response.Write " </p>" & vbNewLine if Member_Avatar <> "noavatar.gif" then response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />" end if if strCountry = "1" and trim(Member_Country) <> "" then Response.Write " <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Country & "</small></font><br />" & vbNewLine end if
|
 |
|
zerakh
Junior Member
 
120 Posts |
Posted - 30 November 2005 : 22:40:12
|
ok- seem to be getting an error with members that do not have avatars. Those without end up having a box that shows the location of an avatar, but there shouldnt be anything.
here is an image of it::
www.ichabod.org/tests/avatartest.jpg
test has an avatar listed but test2 does not. However test2 shows a missing avatar of sorts.
How do I go about fixing this so it doesnt look like this and is displayed correctly?
the topic.asp was fixed with the last suggestion of code |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 30 November 2005 : 23:31:13
|
See what URL the broken image points to. Did you upload noavatar.gif to your images folder? |
eXtremeGossip  |
 |
|
Zuel
Average Member
  
USA
540 Posts |
Posted - 01 December 2005 : 05:42:29
|
quote: Originally posted by Jorrit787
See what URL the broken image points to. Did you upload noavatar.gif to your images folder?
With the Avatar Mod there is no strImageURL in front of noavatar.gif in the code.
Zerakh,
Make a copy of the noavatar.gif in your forum directory. See if that fixes it. |
My Completed Mods: News Mod | Zuel's Avatar Add-on In Development: World of Warcraft Member Roster | [C# Based Forum]
Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.
MSN / E-Mail: ucyimDa_Ruler@Hotmail.com
Personal Bookmarks: How to work a DBS File
|
 |
|
zerakh
Junior Member
 
120 Posts |
Posted - 01 December 2005 : 08:23:03
|
I have a copy of noavatar.gif in my directory- it hasnt changed sicne I installed snitz. WHen I look at the gif- it shows nothing, but when its on my forums...thats another thing altogether and it shows up like that image in the link. |
 |
|
Zuel
Average Member
  
USA
540 Posts |
Posted - 01 December 2005 : 08:37:42
|
That is the idea of the noavatar.gif. It is a blank image. Also known as a transparent gif. |
My Completed Mods: News Mod | Zuel's Avatar Add-on In Development: World of Warcraft Member Roster | [C# Based Forum]
Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.
MSN / E-Mail: ucyimDa_Ruler@Hotmail.com
Personal Bookmarks: How to work a DBS File
|
 |
|
zerakh
Junior Member
 
120 Posts |
Posted - 01 December 2005 : 09:29:15
|
right- I understand that, but the thing is when you look at the forum, the user that isnt supposed to have an avatar has the image that I posted. I know that this should not happen.
but the question is:: how do I get rid of that but still allow all users that have an avatar to have them show correctly and vice versa. |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 01 December 2005 : 14:09:21
|
Did you check to see what URL the broken image points to? |
eXtremeGossip  |
 |
|
zerakh
Junior Member
 
120 Posts |
Posted - 01 December 2005 : 14:46:54
|
what url? there is no url- the avatar isnt supposed to point to a url. the image itself is supposed to be called up from the main directory or even the avatar file directory that I have posted. Neither one works. All I get is the same image showing for those that are not supposed to have an avatar. (please see the image I attached earlier)
|
 |
|
Zuel
Average Member
  
USA
540 Posts |
Posted - 01 December 2005 : 15:25:54
|
I think you want one of the following:
[1] When a user has no image, don't show the noavatar.gif and the image border that goes with it.
If this is what you want to do then you can either go into inc_avatar.asp and change the image to something else. The lines of code are around 108-116
if IsNull(rs("M_AVATAR_URL")) or rs("M_AVATAR_URL") = "" or rs("M_AVATAR_URL") = " " or rs("M_AVATAR_URL") = "noavatar.gif" or Request.QueryString("mode") = "Register" then
Response.write "<option selected value=""noavatar.gif""> None</OPTION>" & VbNewLine
else
Response.write "<option value=""noavatar.gif""> None</OPTION>" & VbNewLine
end if
or On your topic page insert the following: if Member_Avatar <> "noavatar.gif" then response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br /> else 'Do Nothing end if
[2] noavatar.gif isn't showing up on the forums, some other image is.
Right click the image and see what image is being pulled. I saw your forum are you the one using advant browser. Could that dot be their way of saying broken link? |
My Completed Mods: News Mod | Zuel's Avatar Add-on In Development: World of Warcraft Member Roster | [C# Based Forum]
Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.
MSN / E-Mail: ucyimDa_Ruler@Hotmail.com
Personal Bookmarks: How to work a DBS File
|
 |
|
|
Topic  |
|