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)
 signature mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

geunsie
Starting Member

31 Posts

Posted - 04 June 2001 :  13:37:40  Show Profile


in topic.asp add/replace the red lines

<hr noshade size="<% =strFooterFontSize %>">

<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =formatStr(rs("R_MESSAGE")) %>


<table valign="bottom" width=100% height=110 border=0>


<td valign="bottom"> <font size=1 color=#8080E0><% =ChkString(rs("M_SIG"),"display") %><TD align="right" valign="bottom">
</font>



<a href="#top"><img src="<%=strImageURL %>icon_go_up.gif" height=15 width=15 border="0" align="right" valign="bottom" alt="Go to Top of Page"></a></font></td></table></td>

</tr>
<%
rs.MoveNext
intI = intI + 1
if intI = 2 then
intI = 0
end if
rec = rec + 1
loop
end if

2 times

and here:

'## 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_PMRECEIVE, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_SIG, "


there is only one problem...
i think it is an asp-problem.
the valign function in table or td does not work!!!
maybe someone has a solution for this. for now i just fixed the table height to 110.
strange thing is if you save the page from your browser and open it locally it work like it should work.
I hope i did't forget something.

see an example at:
http://www.crapforum.nl

geunsie
Starting Member

31 Posts

Posted - 05 June 2001 :  10:45:15  Show Profile
oops....i forgot to mension that you have to remove and disable the signature option is post.asp.



Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 June 2001 :  13:28:46  Show Profile
Sorry for asking but, what does this do?

Go to Top of Page

geunsie
Starting Member

31 Posts

Posted - 05 June 2001 :  17:08:05  Show Profile
That's okay :)


This mod. changes the way of how the signature is used.
Normally the signature is included/added within the complete message.

This mod. uses the signature dynamically, so if you change your signature in your profile, all your posts will have the new signature. Which also elimenates signatures in quoted messages.

Also with this mod,
you can make your own customized signature look for the complete forum. (font, size, color, etc)




:)


Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 05 June 2001 :  17:22:41  Show Profile
I took a look at the site, ( pretty nice looking forum you got by the way, even if I can't read more than 2 words on it ) and it's a pretty cool idea.

I just had NO idea what you were talking about when I was first looking this over and it took me quite a few times of looking through topic.asp to find the code you are referencing.

For future use, either post more of the surrounding non-edited code, or some line numbers to assist those that are too dense ( like me ) to find the code first time around.


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

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 June 2001 :  19:14:02  Show Profile
Same here big9erfan, didn't have clue what this mod did.
But the forum on his site looks great.

The reason we don't use the "dynamic" way of getting the signatures is that for every single post, a call would be made to the database for the signature. Can you imagine with 20 topics posts per page, that's a extra 20 hits to the database for every view of that page, not to mention how many users view that page. 20 x 50 users an hour maybe? On a busy forum. it would probably be more. That's an extra 1000 hits on the database each hour.

Compared to just getting the message for each post made, that has the signature already appended to the message.

But it's a great idea geunsie. Don't recommend it for large forums though.

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 05 June 2001 :  21:33:20  Show Profile
Davio,

quote:

The reason we don't use the "dynamic" way of getting the signatures is that for every single post, a call would be made to the database for the signature. Can you imagine with 20 topics posts per page, that's a extra 20 hits to the database for every view of that page, not to mention how many users view that page. 20 x 50 users an hour maybe? On a busy forum. it would probably be more. That's an extra 1000 hits on the database each hour.



That's what I thought at first when I realized what this mod was about, but if you look at the code, it is retreiving the sig at the same time that it is retreiving the Yahoo, AIM, etc from the memebers table, thus it's not creating anymore of a drain on the server than reading replies as normal.

Quite an interesting way of doing it if you ask me.

I'm definately thinking of implementing this as it's pretty cool.



http://www.ugfl.net/forums

Edited by - big9erfan on 05 June 2001 21:35:41
Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 05 June 2001 :  21:46:34  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
very nice forum.
I like the mod also.
Thanks

http://easyromantic.webbhost.net -[test site]-
yada, yada.

Edited by - simonduz on 05 June 2001 21:47:06
Go to Top of Page

e3stone
Average Member

USA
885 Posts

Posted - 06 June 2001 :  02:57:21  Show Profile  Send e3stone an AOL message
Where in the code does it append the signature to the message? I was looking for that today and was unable to locate it. I wanted to add a break (<hr>) above the signature. Could anyone point me to the section of code that does this?

<-- Eric -->


InsideWaco.com
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 06 June 2001 :  09:35:49  Show Profile
Eric,

Edit: real answer
Check in post_info.asp

Around lines 601 and 469...If you do a search for Request.Form("sig") you should find the 2 instances of it.


http://www.ugfl.net/forums

Edited by - big9erfan on 06 June 2001 18:03:15

Edited by - big9erfan on 06 June 2001 18:08:28
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 06 June 2001 :  10:00:06  Show Profile
geunsie

Having one problem here, and maybe you can help out. People who have picts in their sigs are not showing up, but instead showing up as <img src= ......>

Any ideas?



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

geunsie
Starting Member

31 Posts

Posted - 06 June 2001 :  18:25:28  Show Profile
quote:

geunsie

Having one problem here, and maybe you can help out. People who have picts in their sigs are not showing up, but instead showing up as <img src= ......>

Any ideas?



http://www.ugfl.net/forums




Try using the [img]picture url[/img ]in the signature ...that will work

and i think HTML must be ON.

Edited by - geunsie on 06 June 2001 18:29:01
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 06 June 2001 :  19:00:09  Show Profile
They are using the [img] tags in their signatures, but HTML is off....I'll look into turning HTML on, but that's something I don't necessairly want to do as it can cause problems.

Maybe I can find a workaround or 2.

Thanks



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

Stormis ~§~
Starting Member

USA
3 Posts

Posted - 15 June 2001 :  09:07:24  Show Profile  Send Stormis ~§~ an AOL message
uhm... could someone translate this mod to stupid-ese for me?
i don't understand how to put it together, really, and I don't want to have to do what I'm doing right now (trying to piece my board back together after screwing something up severely with a mod) again...
but i've had requests for dynamic sigs, a la IkonBlah- er, IkonBoard.

if there are any solutions, dun hesitate to drag me around by my furry tail and show me :)

~SDKal

----
ooh, ****. I broke it...
- :: s d k ::, at 05:11 EDT
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 15 June 2001 :  20:09:50  Show Profile  Visit dayve's Homepage
good mod, but I think you need to change this:

<% =ChkString(rs("M_SIG"),"display") %>

to

<% =formatStr(rs("M_SIG")) %>

otherwise your signature with forum coding will get translated to html tags if members are using images.

Dayve
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 17 June 2001 :  10:24:08  Show Profile
quote:



in topic.asp add/replace the red lines

<hr noshade size="<% =strFooterFontSize %>">

<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =formatStr(rs("R_MESSAGE")) %>


<table valign="bottom" width=100% height=110 border=0>


<td valign="bottom"> <font size=1 color=#8080E0><% =ChkString(rs("M_SIG"),"display") %><TD align="right" valign="bottom">
</font>



<a href="#top"><img src="<%=strImageURL %>icon_go_up.gif" height=15 width=15 border="0" align="right" valign="bottom" alt="Go to Top of Page"></a></font></td></table></td>

</tr>
<%
rs.MoveNext
intI = intI + 1
if intI = 2 then
intI = 0
end if
rec = rec + 1
loop
end if

2 times




didn't you miss < tr> in your table? i think that's why the valign didn't work.

well i got problem:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/testarea/31sr4test_m/topic.asp, line 688


mine looks like this
<table valign="bottom" width=100% height=110 border=0>
<tr>
<td valign="bottom"> <font size=1 color=#8080E0><% =ChkString(rs("M_SIG"),"display") %></font></td>
</tr></table>

---------
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_LEVEL, "
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_POSTS, "
'yx21b2: inserted code ################### State/Country Flags Mod Start #########################
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_STATE, "
'yx21b2: end insertion ################### State/Country Flags Mod End #########################
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_COUNTRY, "
'yx40a3: inserted signature mod in the line below ################
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_SIG, "
'yx26d1: added 1 line below ##### avatar 2 mod ##########
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL, "
'yx26d1 ######################################
'yx33b: added 1 line below ##### private messages ##########
strSql = strSql & strMemberTablePrefix & "MEMBERS.M_PMRECEIVE, "
'yx33b ######################################
strSql = strSql & strTablePrefix & "REPLY.REPLY_ID, "


when submit a post, after the post info displays, it also try to refresh but says cannot refresh without resubmiting info.

i have some other mod installed as well, don't know why this happens.

I don't know how to
"remove and disable the signature option is post.asp."

I guess the problem is caused by not editing post.asp. any body tell me how?

thanks.




Edited by - bjlt on 17 June 2001 10:28:11

Edited by - bjlt on 17 June 2001 10:53:07
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next 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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07