Author |
Topic |
|
Bassman
Junior Member
Netherlands
256 Posts |
Posted - 23 November 2001 : 09:26:46
|
Hi all,
little mod that incl the members profile picture in the posts under name and rank.
Demo Mod TxT file
Photo Mod v1.0 by Sebastiaan For use with Snitz Forums 2000 v3.3 (Tested on MS Access.)
************************************************************** Please read everything in this file before proceeding **************************************************************
Forum Files that will need to be edited: ----------------------------------------
topic.asp
******************************* In the file: TOPIC.ASP * *******************************
Below this line: (around line #111) ----------------
strMemberTablePrefix & "MEMBERS.M_COUNTRY, " & _
Add this line: --------------
strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, " & _
Below this line: (around line #216 ----------------
strMemberTablePrefix & "MEMBERS.M_COUNTRY, " & _
Add this line: --------------
strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, " & _
look for this code: (around line #383) -------------------------------------------
<br> <br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rsReplies("M_COUNTRY") %></small></font> <br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rsReplies("M_POSTS") %> Posts</small></font></td>
replace the line that has just the <br> on it with this:
<br><% if Trim(rsReplies("M_PHOTO_URL")) <> "" and lcase(rsReplies("M_PHOTO_URL")) <> "icon_photo_none.gif" and (IsNull(rsReplies("M_PHOTO_URL")) = false) then %> <img src="<% =rsReplies("M_PHOTO_URL") %>" align="absmiddle" width=60 height=60 border=0 hspace="0" ><% set rsav = nothing %><% end if %>
look for this code: (around line #539) -------------------------------------------
<br> <br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rsTopic("M_COUNTRY") %></small></font> <br><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>"><small><% =rsTopic("M_POSTS") %> Posts</small></font></td>
replace the line that has just the <br> on it with this:
<br><% if Trim(rsTopic("M_PHOTO_URL")) <> "" and lcase(rsTopic("M_PHOTO_URL")) <> "icon_photo_none.gif" and (IsNull(rsTopic("M_PHOTO_URL")) = false) then %> <img src="<% =rsTopic("M_PHOTO_URL") %>" align="absmiddle" width=60 height=60 border=0 hspace="0" ><% set rsav = nothing %><% end if %>
TO SETUP THE PICTURE =====================
Login to your forum as Admin and then goto your Admin Options.
There is a link labeled "Member Details Configuration" on the left hand side of the page.
The option "Picture" must by set to "ON"
That's it!
In topic.asp you can alter the size of the picture in the posts (around line 385 and 541), by default it is "width=60 height=60 border=0" Maybe this mod is somewhere already posted, but I cannot find it any where.
|
|
Extra Sports
Average Member
USA
644 Posts |
Posted - 23 November 2001 : 10:10:13
|
This is nice little mod and I think its same as avatars. Since I have avatars installed already I dont want to have both but good JOB!!!
|
|
|
Ez4arab
Junior Member
479 Posts |
Posted - 24 November 2001 : 17:28:42
|
can i add this mod with avatar mod. becuase i have avatar may member do not like my avatar he will post his won picture.
Arabic snit fourm http://aljish.com.sa/jforum |
|
|
Extra Sports
Average Member
USA
644 Posts |
Posted - 25 November 2001 : 11:48:54
|
u can have both!!!
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 25 November 2001 : 12:58:48
|
why not just add the flag mod too.... just kidding. if you are going to load up your pages with threads full of images you may want to consider incorporating a personal settings mod to turn them off. otherwise you are going to start upsetting your members that have 56K modems...
____________ dayve http://www.nineinchnailz.com/forum |
|
|
Extra Sports
Average Member
USA
644 Posts |
Posted - 25 November 2001 : 13:08:42
|
yea, if users have avatars and pics the page will take a lifetime to load on 56K's.
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 25 November 2001 : 23:45:11
|
I don't think it would cause much problem. sure it takes longer to load the pix, but if you specify height and width for the pictures, it won't affect the load of the forum table. however, i think it's better to have a user option for this, it also helps to show less topics in a page. such as 10 instead of 20.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 26 November 2001 : 00:08:07
|
quote:
I don't think it would cause much problem. sure it takes longer to load the pix, but if you specify height and width for the pictures, it won't affect the load of the forum table. however, i think it's better to have a user option for this, it also helps to show less topics in a page. such as 10 instead of 20.
which is another feature I added for my members. they can control how many topics are viewed per page. but I disagree with you on the load time not being that bad on a modem, maybe on a smaller forum but not larger ones...
____________ dayve http://www.nineinchnailz.com/forum |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 26 November 2001 : 03:26:09
|
quote:
but I disagree with you on the load time not being that bad on a modem, maybe on a smaller forum but not larger ones...
I might be wrong. but if you give the height and width, won't it be just the same as the icq/aim icons? they don't affect the load of the forum table, though the page is not fully loaded. Or you are concerned about the server part? to check the height/width dynamically every time by fso. question on this: will that be a problem? I'm using your release of the avatar tweak, which uses fso to get picture width/height.
I use a 56k even 33.6k modem most of the times at home, thanks for the ****ing local government and tele company. I don't think it's much a problem. you can try Alan's site forum at http://www.iamviet.com/forum/
sure it will scare those members who would wait for the "done" of the loading before reading thte forums.
Edited by - bjlt on 26 November 2001 03:34:28 |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 30 November 2001 : 18:35:38
|
quote:
I don't think it would cause much problem. sure it takes longer to load the pix, but if you specify height and width for the pictures, it won't affect the load of the forum table.
Please do this little test: Make an image of 400x600 pixels with some effects. Save it as GIF (as that will be used most of the time). Then add it to a page in it's original width & height. Upload the page and image and load the page while using your watch to take the time. Now clear your browser's cache and reload the page. Time it again. Now edit the file size in the page (not the image!) to 60x60 pixels. Upload the page and load it (time it again). Clear your browser's cache again and reload the page (you know the drill, time it).
You'll notice little to no speed increase when making the displayed size smaller. Reason: the same image with all it's bytes of data has to be loaded.
It's a nice MOD and can defenately be used but with caution as it can indeed increase the loading time of the pages a lot if everyone has a different picture.
Roland
- here to help when possible -
http://www.frutzle.com |
|
|
KiddyKitty
Starting Member
4 Posts |
Posted - 02 December 2001 : 14:11:06
|
Ohmighost!! I can't do it by myself. SomeOne do send me an edited "topic.asp" file ...please. Thanks so much! kiddykitty9@yahoo.com
|
|
|
Bassman
Junior Member
Netherlands
256 Posts |
Posted - 04 December 2001 : 16:48:20
|
quote:
Ohmighost!! I can't do it by myself. SomeOne do send me an edited "topic.asp" file ...please. Thanks so much! kiddykitty9@yahoo.com
Check your mail for the topic.asp file
|
|
|
smacbeth
Junior Member
101 Posts |
Posted - 06 December 2001 : 17:58:46
|
Hi, I did this and I am getting the following error:
Admin Administrator
error '80020009' Exception occurred.
/boards/topic.asp, line 544
Line 544 is the line that contains: <br><% if Trim(rsReplies("M_PHOTO_URL")) <> "" and lcase(rsReplies("M_PHOTO_URL")) <> "icon_photo_none.gif" and (IsNull(rsReplies("M_PHOTO_URL")) = false) then %>
I checked the code against what you posted but didn't see any discrepancies. Any idea the problem is?
Thanks!
|
|
|
|
Topic |
|