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)
 Picture mod to show in posts
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sparty
Starting Member

USA
45 Posts

Posted - 26 February 2001 :  23:20:06  Show Profile  Send Sparty an AOL message  Send Sparty an ICQ Message
To See a demo goto:

www.orionfaction.com/com
You can also see there how I redid the announcements to fit the forum better.


THIS MOD TAKES MAYBE 5 to 10 minutes MAX!!!

On the left column, on Ezboard, I guess you can display a picture. So I took the M_PHOTO_URL link from a members profile and am displaying it on the left column of topics...if they have something there. So here's what you gotta do..

Oh, I also did this, So Resnitz will let me keep my Developer Status...since I've been really inactive lately....hehe

Anyways...all this mod happens in Topic.asp

Line 137 In the SQL add this to the line between M_Country and REPLY.REPLYID (at least that's where I added it

& strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, "


Around line 266 you'll see:
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "

After that line add:

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


After line 347 which should be a BR tag, you'll add this:
[red]
<%If LEN(rs("M_PHOTO_URL")) > 8 then%>
<img src="<%=rs("M_PHOTO_URL")%>" border=0 width=100 height=100><Br>
<%end if%>
[red]
Then down at right around line 468 where it says sub GetFirst(), and repeat the steps about at lines 469 (SQL) and after line 505. (IF STATEMENT)

That should do it.
I did a length of 8 on the URL part, just incase someone put "http://" in there and saves it that way with no picture link there.

Sparty
Who is trying to become more active :-)







Edited by - Sparty on 26 February 2001 23:20:51

Edited by - Sparty on 26 February 2001 23:22:21

Edited by - Sparty on 26 February 2001 23:32:24

rick7165
Senior Member

USA
1094 Posts

Posted - 26 February 2001 :  23:31:31  Show Profile  Visit rick7165's Homepage
I think this is already a MOD.

http://forum.snitz.com/forum/link.asp?TOPIC_ID=2447

Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

Sparty
Starting Member

USA
45 Posts

Posted - 26 February 2001 :  23:33:59  Show Profile  Send Sparty an AOL message  Send Sparty an ICQ Message
THat's just too funny....

See I haven't been around in about 3 or 4 months...OH WELL...I tried.

Sparty
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 01 March 2001 :  03:56:47  Show Profile  Visit rick7165's Homepage
Here is a Clean topic.asp file that works.


A File has been attached. Download it by clicking on the Paper Clip icon:

Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 18 March 2001 :  11:17:36  Show Profile  Visit James's Homepage
quote:

A File has been attached. Download it by clicking on the Paper Clip icon:



You got me . I went looking for this file attachment mod and them realized this was done with a url and forum code.

-

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07