Author |
Topic  |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 01:20:47
|
I was wondering if there was a way with version 3.4, to make it where the picture that people have in their profile would show up next to their posts under their username and rank in topic.asp. I'm not sure how the avatar mod works, i've never seen it, but it sounds like it does something different than this. If there was a way to take their picture url, and show the picture by their posts, that would be great. Any help on this would be greatly appreciated. |
Edited by - tduffy on 04 September 2002 02:44:28 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 13:28:33
|
thanks for the links, but i need something that works with version 3.4.2, i'm not good at coding at all. I installed the avatar mod, and this doesn't do what i need it to do. I need to be able to have the users be able to add the url to their avatar themselves, and i can't get the avatar mod to do that. If anyone could help me on this, it would be great. |
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 04 September 2002 : 15:02:03
|
hi~ tduffy
i know Richard have a sweet addon can do this... let user assign his own Avatar link url... see here http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=8087
and i think this pop_add_avatar.asp should still available on v3.4, all you need just change the including files to match 3.4 (if you do'nt care about these Response.Write.... )
try this... <!--#INCLUDE FILE="config.asp" --> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header_short.asp" --> <!--#INCLUDE file="inc_func_secure.asp" --> and <!--#INCLUDE file="inc_header_short.asp" -->
then add a link to your inc_avatar.asp file... and look it is what your need or not..
BUT.... something need notice!! you can try search here, many posts talking about this problem.. - if users assign a unavailable link.. you will see a lots X X on your forum.
- if users link a big image 1Mb, even you restrict size in 64x64, it will slow down your forum.
- if user link to a pornography image..
you'll busy to lock members..
just a little reminder ~~  |
 |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 15:26:32
|
good info, but you lost me, i'm not very good when it comes to programming, what files do i need? and will this work with 3.4 |
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 04 September 2002 : 15:40:06
|
well~~ i also not familiar about 3.4 code yet... try hard to studying... 
i think maybe we'd better be patient and waiting a while.. there were a lots new 3.4 Mods will keep coming out.. and i know Aaron also have a new Avatar Mod will release soon..
so just awaiting.. i believe in someone will implement this Mod addon to fit v3.4... |
 |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 15:46:18
|
i just tried to get that addon to work, and it won't for me |
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 04 September 2002 : 16:15:41
|
ok~~ tduffy, if you already got the pop_add_avatar.asp file.. try modify it just as i said in above post.. replace the <!--#INCLUDE .... --> section in top and bottom. so it will look like this in line.38 '## Part of the Avatar Mod by: Richard Kinser ## '################################################################ %> <!--#INCLUDE FILE="config.asp" --> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header_short.asp" --> <!--#INCLUDE file="inc_func_secure.asp" --> <%
and in line.123 <% end if %> <!--#INCLUDE file="inc_header_short.asp" -->
then edit your inc_avatar.asp find this in line.54 // End script --> immediately above that line insert this: function openWindowAvatar(url) { popupWin = window.open(url,'new_page','width=450,height=200')}
and find this line in line.62 " <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b> Avatar: </b></font></td><td>" & vbNewLine and replace with these 4 lines.. " <td bgcolor=""" & strPopUpTableColor & """ align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b> Avatar: </b>" if Request.QueryString("mode") = "goEdit" then Response.Write "<br><a href=""JavaScript:openWindowAvatar('pop_add_avatar.asp')""><small>Add your own Avatar</small></a>" end if Response.Write "</font></td><td>" & vbNewLine
i've tested this, it can work.... (when you edit your profile, you can find a link to let you add your own avatar url..)  |
~ . .. . . .~ .~~ |
 |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 17:24:52
|
i did that and get this error
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/inc_avatar.asp, line 103
" <select name=""Avatar_URL"" size=""4"" onChange =""if (CheckNav(3.0,4.0)) URL.src=form.Avatar_URL.options[form.Avatar_URL.options.selectedIndex].value;""> ------------------------------------------------------------------------------------------------------------------------------------------------------------------^
|
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 04 September 2002 : 18:06:00
|
............
not sure what's going on.... we did'nt touch this line !?
but i think this line should be.. /inc_avatar.asp, line 103
" <select name=""Avatar_URL"" size=""4"" onChange =""if (CheckNav(3.0,4.0)) URL.src=form.Avatar_URL.options[form.Avatar_URL.options.selectedIndex].value;"">" & vbNewLine
here is a working inc_avatar.asp file (from Hamlin's 3.4 Avatar Mod..), if you did'nt change anything to this file. you can try to use this one... inc_avatar.asp.txt |
 |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 22:16:29
|
it works now, but it isn't the most user friendly thing, it would just be nice if there would be a way to use the picture that that they use as their picture url in their profile. |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 04 September 2002 : 22:42:27
|
try this file: http://kinser.121hosts.net/files/topic.zip
The only thing added to this topic.asp file, is the ability to view the user's Picture (that they specified in their profile), in each topic and reply. This is the topic.asp from v3.4.02 of this forum.
Right now it's set for 64x64 |
 |
|
tduffy
Junior Member
 
146 Posts |
Posted - 04 September 2002 : 23:07:46
|
quote: Originally posted by RichardKinser
try this file: http://kinser.121hosts.net/files/topic.zip
The only thing added to this topic.asp file, is the ability to view the user's Picture (that they specified in their profile), in each topic and reply. This is the topic.asp from v3.4.02 of this forum.
Right now it's set for 64x64
Thank you very much richard, that did the trick!! |
 |
|
|
Topic  |
|