Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Show picture next to posts!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

007Cheater
Starting Member

USA
2 Posts

Posted - 28 May 2001 :  00:44:07  Show Profile  Visit 007Cheater's Homepage  Send 007Cheater an AOL message  Send 007Cheater an ICQ Message  Send 007Cheater a Yahoo! Message
This makes the picture that you put in under your profile appear under your name. This is very basic and I used most of the avatar. This is the kind of addon I needed so I modified it.
Credits go out to Richard Kinser for creating the avatar addon.

Check out the DEMO http://la.homeip.net/cheatlist/forums/topic.asp?TOPIC_ID=3&FORUM_ID=2&CAT_ID=3&Topic_Title=Current Issues%21&Forum_Title=General Discussion
*******************************
In the file: TOPIC.ASP *
*******************************

Below this line:
----------------

strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "

Add this line:
--------------

strSql = strSql & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, "


Below this line:
----------------

strSql = strSql & strMemberTablePrefix & "MEMBERS.M_POSTS, " & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "

Add this line:
--------------

strSql = strSql & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, "


look for this code: (it will appear twice)
-------------------------------------------

<br>
<br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rs("M_COUNTRY") %></small></font>
<br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rs("M_POSTS") %> Posts</small></font></td>

replace the line that has just the <br> on it with this: (do this for both instances of the above code)

<br><% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "no_photo.gif" and (IsNull(rs("M_PHOTO_URL")) = false) then %>
<% '## Forum_SQL - Get Avatar Settings from DB
strSql = "SELECT " & strTablePrefix & "MEMBERS.M_PHOTO_URL"
strSql = strSql & " FROM " & strTablePrefix & "MEMBERS"

set rsav = my_Conn.Execute (strSql) %>
<img src="<% =rs("M_PHOTO_URL") %>" align="absmiddle" width="110" height=110 border=0 hspace="0"><% set rsav = nothing %><% end if %>

Edited by - 007Cheater on 28 May 2001 00:46:27

Edited by - 007Cheater on 28 May 2001 00:46:54

giorgius
Starting Member

Italy
17 Posts

Posted - 30 May 2001 :  06:26:02  Show Profile  Visit giorgius's Homepage
Great!!! it works very, very, very well!!!


Giorgius!
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 30 May 2001 :  09:57:53  Show Profile
I've been looking for this type of Mod for awhile now but it didn't work for me. Got a black band all the way across the page where the reply text would go.

I'd really like this to work...any ideas?

Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 30 May 2001 :  10:29:51  Show Profile
In rereading your notes, do I have to have the avatar mod installed for this to work? If so, that's my problem.

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 30 May 2001 :  11:12:40  Show Profile
Rib,

From the code he posted he's not using any info from the avatars mod, simply the idea behind it.

Check the code again, you probably just missed a line and copied over 1 too many or 1 too few.



http://www.ugfl.net/forums
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 30 May 2001 :  15:12:15  Show Profile
Yep, you were right again Big9, Thanks

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 30 May 2001 :  15:26:43  Show Profile
Glad I could help

http://www.ugfl.net/forums
Go to Top of Page

3dcandy
Starting Member

39 Posts

Posted - 02 June 2001 :  19:24:51  Show Profile  Send 3dcandy an ICQ Message
Nice work - implemented it fine, just it resizes the pictures (using the browser) and some images look a little crappy!

Go to Top of Page

racerslounge
Starting Member

23 Posts

Posted - 06 June 2001 :  01:11:28  Show Profile  Visit racerslounge's Homepage
Is there a way to set the image as a percentage of the linked image, with say a maximum size limit. That way, each image could change shape a little, and the images wouldn't show up distorted?

http://www.racerslounge.com
Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 15 June 2001 :  15:03:18  Show Profile  Visit boffers's Homepage
yeah, is there?

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 15 June 2001 :  15:25:44  Show Profile
the website http://www.4guysfromrolla.com has a few such articles on image manipulation.

Give it a look see.



http://www.ugfl.net/forums
Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 15 June 2001 :  15:58:26  Show Profile  Visit boffers's Homepage
btw awesome code, thanks a lot..
you can see it at:
http://home.wanadoo.nl/ajaxside/forum

thanks again!
Bas

Go to Top of Page
  Previous Topic Topic Next Topic  
 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 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07