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)
 Add pictures to your summary in the topic
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

ds.Enigma
Starting Member

6 Posts

Posted - 17 April 2001 :  15:40:46  Show Profile  Send ds.Enigma an ICQ Message
Here's my delima instead of showing a picture underneath the name posts and what not it shows the code that you put in there

<% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" then %>
[img]<% =rs("M_PHOTO_URL") %>" alt="<% =rs("M_NAME") %>" width="150" height="150" border=0 hspace="2" vspace="2">
<% else %>
[img]no_photo.gif" alt="No Photo Available" width="150" height="150" border=0 hspace="2" vspace="2">
<% end if %>

More specifically this part

[img]no_photo.gif" alt="No Photo Available" width="150" height="150" border=0 hspace="2" vspace="2">

Can anyone tell me why that is?

Go to Top of Page

Marino
Starting Member

Canary Islands
42 Posts

Posted - 17 April 2001 :  16:04:33  Show Profile  Send Marino an ICQ Message
quote:

Here's my delima instead of showing a picture underneath the name posts and what not it shows the code that you put in there

<% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" then %>
[img]<% =rs("M_PHOTO_URL") %>" alt="<% =rs("M_NAME") %>" width="150" height="150" border=0 hspace="2" vspace="2">
<% else %>
[img]no_photo.gif" alt="No Photo Available" width="150" height="150" border=0 hspace="2" vspace="2">
<% end if %>



I havent' tried this mod, but at first look, or I am wrong or the code should be

<% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" then %>
<img src="<% =rs("M_PHOTO_URL") %>" alt="<% =rs("M_NAME") %>" width="150" height="150" border=0 hspace="2" vspace="2">
<% else %>
<img src="no_photo.gif" alt="No Photo Available" width="150" height="150" border=0 hspace="2" vspace="2">
<% end if %>

So change [img] for <img src="


Marino
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 17 April 2001 :  17:13:05  Show Profile  Visit rick7165's Homepage
Add your photo to each topic posted

I had found on various forums that trying to see who written what was kinda diffacult when scrolling quickly through the
thread. By adding your picture to it will allow each topic be found more quickly by seeing your picture.

The only file that needs to be edited is topic.asp

Go to this section around the 200's AND the 400's. You can do a search for
strSql ="SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME, "
add the following to each of them.

*********************************************************************************************
THIS IS ALREADY THERE --- You will add the following below (inside the ##)
*********************************************************************************************
<%
'## Forum_SQL - Get all topicsFrom DB
strSql ="SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_ICQ, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_YAHOO, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_AIM, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_TITLE, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.MEMBER_ID, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_Homepage, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_LEVEL, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_POSTS, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_CITY, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_STATE, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_DATE, "

'################################ Add this line below, here ####################################
strsql = strsql & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, "
'################################ Add this line above, here ####################################

strSql = strSql & strTablePrefix & "REPLY.REPLY_ID, "
strSql = strSql & strTablePrefix & "REPLY.R_AUTHOR, "
strSql = strSql & strTablePrefix & "REPLY.TOPIC_ID, "
strSql = strSql & strTablePrefix & "REPLY.R_MESSAGE, "
strSql = strSql & strTablePrefix & "REPLY.R_DATE, "
strSql = strSql & strTablePrefix & "REPLY.R_MSGICON "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS, " & strTablePrefix & "REPLY "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "REPLY.R_AUTHOR "
strSql = strSql & " AND TOPIC_ID = " & Request.QueryString("TOPIC_ID") & " "
strSql = strSql & " ORDER BY " & strTablePrefix & "REPLY.R_DATE"

-------------------------------------------------------------------------------------------------------------------------

Now we would like to search for this section:
Around line 300+ AND the 450+ you should see, or do a search for if strShowRank = 1 or strShowRank = 3 then

<% if strShowRank = 1 or strShowRank = 3 then %>
<br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><table style="filter:glow(color=red, strength=1)"><small><% = ChkString(getMember_Level(rs("M_TITLE"), rs("M_LEVEL"), rs("M_POSTS")),"display") %></small></table></font>
<% end if %>
<% if strShowRank = 2 or strShowRank = 3 then %>
<br><% badge() %>
<% end if %>
<br>

right after all of that add the following in both places:

(* NOTE *): You have two options: Option #1; If the user does not have a picture in their profile that it will
NOT display the picture: Option #2; It will display the no_photo.gif


Option #1:
<% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" and strPicture = 1 then %>
<img src="<% =rs("M_PHOTO_URL") %>" alt="<% =rs("M_NAME") %>" width="150" height="150" border=0 hspace="2" vspace="2">
<% end if %>


Option #2:
<% if Trim(rs("M_PHOTO_URL")) <> "" and lcase(rs("M_PHOTO_URL")) <> "http://" and strPicture = 1 then %>
<img src="<% =rs("M_PHOTO_URL") %>" alt="<% =rs("M_NAME") %>" width="150" height="150" border=0 hspace="2" vspace="2">
<% else %>
<img src="no_photo.gif" alt="No Photo Available" width="150" height="150" border=0 hspace="2" vspace="2">
<% end if %>

-------------------------------------------------------------------------------------------------------------------------


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

Edited by - rick7165 on 17 April 2001 17:15:43
Go to Top of Page
Page: of 4 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 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07