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 in posts (like Avatar)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bassman
Junior Member

Netherlands
256 Posts

Posted - 23 November 2001 :  09:26:46  Show Profile  Visit Bassman's Homepage
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  Show Profile
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!!!

Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 24 November 2001 :  17:28:42  Show Profile  Visit Ez4arab's Homepage
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
Go to Top of Page

Extra Sports
Average Member

USA
644 Posts

Posted - 25 November 2001 :  11:48:54  Show Profile
u can have both!!!

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 November 2001 :  12:58:48  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Extra Sports
Average Member

USA
644 Posts

Posted - 25 November 2001 :  13:08:42  Show Profile
yea, if users have avatars and pics the page will take a lifetime to load on 56K's.

Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 25 November 2001 :  23:45:11  Show Profile
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.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 26 November 2001 :  00:08:07  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 26 November 2001 :  03:26:09  Show Profile
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
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 30 November 2001 :  18:35:38  Show Profile
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
Go to Top of Page

KiddyKitty
Starting Member

4 Posts

Posted - 02 December 2001 :  14:11:06  Show Profile


Ohmighost!! I can't do it by myself. SomeOne do send me an edited "topic.asp" file ...please. Thanks so much!
kiddykitty9@yahoo.com


Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 04 December 2001 :  16:48:20  Show Profile  Visit Bassman's Homepage
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

Go to Top of Page

smacbeth
Junior Member

101 Posts

Posted - 06 December 2001 :  17:58:46  Show Profile
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!

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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07