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
 Add avatar to member
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

hans_
Junior Member

Czech Republic
161 Posts

Posted - 21 April 2005 :  13:50:58  Show Profile  Visit hans_'s Homepage
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.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 21 April 2005 :  15:22:28  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
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.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 22 April 2005 :  05:13:40  Show Profile  Visit hans_'s Homepage
- 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


Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 22 April 2005 :  07:18:39  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
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.

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.

Edited by - Podge on 22 April 2005 07:19:07
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 22 April 2005 :  08:38:01  Show Profile  Visit hans_'s Homepage
- 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.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 22 April 2005 :  09:11:02  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
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 & _ )


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.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 22 April 2005 :  09:51:55  Show Profile  Visit hans_'s Homepage
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.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 22 April 2005 :  10:09:14  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Change line 588 to

Response.write		"                <p>" & vbNewLine



We'll get there eventually.

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.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 22 April 2005 :  11:07:32  Show Profile  Visit hans_'s Homepage
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.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 22 April 2005 :  12:09:19  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
The only way to find out is to try it with your particular setup.

If you want to try it, rename the topic.asp in your v3.4.04 version to topic_v34.asp
Then upload the working avatar topic.asp to your forum (v3.4.04) as topic.asp

If it doesn't work, delete it and rename topic_v34.asp to topic.asp

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.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 22 April 2005 :  13:44:57  Show Profile  Visit hans_'s Homepage
Thank you for tip Podge.

I am still learning.
Sorry for my stupid questions (sometimes) and bad English.
Go to Top of Page

SMFX
Starting Member

2 Posts

Posted - 24 April 2005 :  10:26:36  Show Profile
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
Go to Top of Page

SMFX
Starting Member

2 Posts

Posted - 24 April 2005 :  10:46:52  Show Profile
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
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 25 April 2005 :  04:18:55  Show Profile  Visit hans_'s Homepage
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.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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 1.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07