Author |
Topic  |
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 21 April 2005 : 13:50:58
|
1. I completly changed the "topic.asp". I took this correct file "topic.asp" v3.4.05 from instalation ZIP file. 2. I did step by step changes in "topic.asp" (i hope very carefully) as written in readme file. I made changes up tu step code around line 552.
I did nod added the code changes written in readme file under ########################################################.
Shall i do it? I did not make it also for all topic files. Otherwise i dont know.
3. This file runs now on the forum. You can please look it here. http://flashmedia.cz/akce/forum/topic2.txt The "topic.asp" runs, but the problem with avatar is the same, like you saw.
|
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 21 April 2005 : 15:22:28
|
Same story again.
Put this after line 583
if Reply_MemberAvatar <> "noavatar.gif" then response.write" <img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />" end if
and this code in red after about 789 (line number will change after you add the above code) It should go after this
if strShowRank = 2 or strShowRank = 3 then
Response.Write " " & getStar_Level(Member_Level, Member_Posts) & "<br />" & vbNewLine
end if
Response.Write " </p>" & vbNewLine & _
" <p>" & vbNewLine
if Member_Avatar <> "noavatar.gif" then response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />" end if
Upload it to topic.asp AND topic2.txt here - http://flashmedia.cz/akce/forum/topic2.txt
|
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
 |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 22 April 2005 : 05:13:40
|
- I unwillingly deleted the previous version of topic.asp. - I made a new version of original "topic.asp" of installation. - The actually used topic.asp is here in TXT: http://www.flashmedia.cz/akce/forum/topic3.txt - I tested it: * I created a new topic on the test forum : http://www.flashmedia.cz/akce/forum/ * I clicked on created topic i get error: http://www.flashmedia.cz/akce/forum/topic.asp?TOPIC_ID=9 The browser write: Microsoft VBScript compilation error '800a03ea'
Syntax error
/akce/forum/topic.asp, line 584
if Reply_MemberAvatar <> "noavatar.gif" then
I think i could be my error in code, when i made the chages. I dont know. Please try to look the file: http://www.flashmedia.cz/akce/forum/topic3.txt
Thank again.
Thanks for your answer again.
quote: Originally posted by Podge
Same story again.
Put this after line 583
if Reply_MemberAvatar <> "noavatar.gif" then response.write" <img src=""" & Reply_MemberAvatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />" end if
and this code in red after about 789 (line number will change after you add the above code) It should go after this
if strShowRank = 2 or strShowRank = 3 then
Response.Write " " & getStar_Level(Member_Level, Member_Posts) & "<br />" & vbNewLine
end if
Response.Write " </p>" & vbNewLine & _
" <p>" & vbNewLine
if Member_Avatar <> "noavatar.gif" then response.write" <img src=""" & Member_Avatar & """ width=""" & intAvatarWidth & """ height=""" & intAvatarHeight & """ border=""" & intAvatarBorder & """><br /><br />" end if
Upload it to topic.asp AND topic2.txt here - http://flashmedia.cz/akce/forum/topic2.txt
|
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 22 April 2005 : 08:38:01
|
- The actually used topic.asp is here in TXT: http://www.flashmedia.cz/akce/forum/topic4.txt
The browser write:
Microsoft VBScript compilation error '800a0400'
Expected statement
/akce/forum/topic.asp, line 585
(delete the & _ )
^
quote: Originally posted by Podge
Change line 583 from this
Response.Write " </p>" & vbNewLine & _
to this
Response.Write " </p>" & vbNewLine
(delete the & _ )
if there are any more errors post them here. It looks like you already did it for line 792.
|
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 22 April 2005 : 09:51:55
|
sorry , i did not understand the (delete the & _ )
- The actually used topic.asp is here in TXT: http://www.flashmedia.cz/akce/forum/topic5.txt
The browser write:
Microsoft VBScript compilation error '800a0400'
Expected statement
/akce/forum/topic.asp, line 588
" <p>" & vbNewLine
^
thank you
quote: Originally posted by Podge
You weren't meant to include this line
(delete the & _ )
I was explaining that you needed to delete the "& _" at the end of the line 583
What you should do now is remove line 585 completely
e.g. delete this on line 585
(delete the & _ )
|
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 22 April 2005 : 11:07:32
|
YES! I think we have it! Thanks a lot Podge. Thank you for your time and willingness! Without you i never have it! *** Maye one of last q. of this topic. Can i this topic.asp use for version 3.4.04 for my life forum? Or shall i update the forum 3.4.04 to 3.4.05 first?
Can i find somewhehe description how shall i update forum?
hans_
quote: Originally posted by Podge
Change line 588 to
Response.write " <p>" & vbNewLine
We'll get there eventually.
|
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 22 April 2005 : 13:44:57
|
Thank you for tip Podge. |
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
SMFX
Starting Member
2 Posts |
Posted - 24 April 2005 : 10:26:36
|
Okay, I installed the avatar and I think I'm going cross-eyed at the ASP changes, because the only thing it doesn't seem to do is update the user's profile to the database. I can load avatars, list the avatars in the profiles, preview the avatars, but the selected avatar is not uploaded to the SQL database. I can manually go in to the database and place the value into the avatar URL field of a user's record and it shows up just fine in their boards, so hey that's great. I just seem to have missed the entry that actually allows it to upload to the database. So any assistance as to which line in which page (I assume the pop_profile.asp) would be greatly appreciated.
Thank you! -SMFX |
 |
|
SMFX
Starting Member
2 Posts |
Posted - 24 April 2005 : 10:46:52
|
quote: Originally posted by SMFX
Okay, I installed the avatar and I think I'm going cross-eyed at the ASP changes, because the only thing it doesn't seem to do is update the user's profile to the database....
Ah-ha!! Got it! Around line 1249 (line 1236 to be exact), I missed adding: quote: strsql = strsql & ", M_AVATAR_URL = '" & ChkString(regAvatar_Image,"SQLString") & "'"
After: quote: if strPicture = "1" then strsql = strsql & ", M_PHOTO_URL = '" & ChkString(Trim(regPhoto_URL),"SQLString") & "'" end if
Once I added that, everything worked great! Great feature, we love it!
Thanks gang, -SMFX |
 |
|
hans_
Junior Member
 
Czech Republic
161 Posts |
Posted - 25 April 2005 : 04:18:55
|
Iam glad, taht you have it! 
quote: Originally posted by SMFX
quote: Originally posted by SMFX
Okay, I installed the avatar and I think I'm going cross-eyed at the ASP changes, because the only thing it doesn't seem to do is update the user's profile to the database....
Ah-ha!! Got it! Around line 1249 (line 1236 to be exact), I missed adding: quote: strsql = strsql & ", M_AVATAR_URL = '" & ChkString(regAvatar_Image,"SQLString") & "'"
After: quote: if strPicture = "1" then strsql = strsql & ", M_PHOTO_URL = '" & ChkString(Trim(regPhoto_URL),"SQLString") & "'" end if
Once I added that, everything worked great! Great feature, we love it!
Thanks gang, -SMFX
|
I am still learning. Sorry for my stupid questions (sometimes) and bad English. |
 |
|
Topic  |
|