Author |
Topic  |
animedj
Junior Member
 
USA
190 Posts |
|
smiddy
New Member

USA
81 Posts |
Posted - 07 August 2000 : 00:30:19
|
I like it... As long as you are table-ing the paging to make sure it stays within the bounderies and is aesthetically pleasing...<img src=icon_smile_big.gif border=0 align=middle>
<div align=right>-smiddy, Hey, BEER Me!</div id=right>
Edited by - smiddy on 07 August 2000 00:30:57 |
 |
|
Lord Maverick
New Member

Norway
92 Posts |
Posted - 07 August 2000 : 04:12:50
|
Animedj,
I cant find the section in forum.asp (approximately line 217) that you are referring to in your txt-file. However I find this section:
<td bgcolor="<% =strForumCellColor %>" valign="top" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font></td>
Are we talking about the same section to replace. How come your section is different?
|
 |
|
slemieux
Junior Member
 
USA
234 Posts |
Posted - 07 August 2000 : 04:54:36
|
Great Job!
Lord Maverick I think there is a small bit missing in the change. It should look like:
<pre id=code><font face=courier size=2 id=code><td bgcolor="<% =strForumCellColor %>" valign="top" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font><%= pages() %></td></font id=code></pre id=code>
or just add <%= pages() %> at the end of that line before </td>
|
 |
|
blkrogue
New Member

USA
79 Posts |
Posted - 07 August 2000 : 06:21:23
|
Have added this to my test forum and now when I add a reply to an old topic, the pages() function adds 7 pages to a topic, even if it only has 3 posts in it.
Any ideas why this one is in there (haven't had time yet to check out the function)
Blkrogue
In the darkness of my soul a sparkling light has appeared |
 |
|
Lord Maverick
New Member

Norway
92 Posts |
Posted - 07 August 2000 : 07:03:42
|
Thanks Slemieux, I agree!
Actually I was only referring to the difference in the txt-file that comes with the dwnl from animedj to what the actual coding looks like in Snitz v3-final. The only small thing that should be done then is to correct the code shown in animedj's text file that comes with the dwnl.
BTW, great addition to the forum. Keep up the good work, animedj! I really like your member_profile.asp...
|
 |
|
blkrogue
New Member

USA
79 Posts |
Posted - 07 August 2000 : 07:27:58
|
The function used in the asp-file to round of the mxPages to a round number isn't correct, better to use CInt + 1 then the Left function as with 0.6666666 it can be retranslated to 6.666666 E 02 which gives an mxPage of 7 with the Left option and a CInt(myPage) + 1 does give you the correct number 1.
Now I'm gonna add it to the active.asp page so will be back to give the place where to put the code in a while
Blkrogue
In the darkness of my soul a sparkling light has appeared |
 |
|
pier
Starting Member
Italy
22 Posts |
Posted - 07 August 2000 : 08:55:14
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> The function used in the asp-file to round of the mxPages to a round number isn't correct, better to use CInt + 1 then the Left function as with 0.6666666 it can be retranslated to 6.666666 E 02 which gives an mxPage of 7 with the Left option and a CInt(myPage) + 1 does give you the correct number 1.
Now I'm gonna add it to the active.asp page so will be back to give the place where to put the code in a while
Blkrogue
In the darkness of my soul a sparkling light has appeared <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I replaced
mxpages = left(mxPages, inst(mxpages, "."))
with
mxpages = Fix(mxPages) + 1
Ciao, Pier
|
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 07 August 2000 : 09:06:57
|
Thanks slemieux. As I said I'm not good doing documentation and I ususally have to write 2 version of the file as my forum is heavily hacked. Now about the cint + 1. Let's suppose that your paging it's 10 pages and i got 15 replies so the cint + 1 would give 3 but it should be 2 ( cint(1.5) = 2 ) that's why i had a problem with number major than .5 . But now i got a better way to do the paging. replace the line :
mxpages = left(mxPages, instr(mxpages, ".")) + 1
with:
mxpages = int(mxpages) + 1
Hope that helps.
|
 |
|
blkrogue
New Member

USA
79 Posts |
Posted - 07 August 2000 : 09:43:02
|
Hmmm, gotta pay better attention to my postings in da morning .... of course I meant Int() not CInt() as the replacement function (though Fix() gives the same result, just as long as your result stays positive).
Thanks for the correction !
Blkrogue
In the darkness of my soul a sparkling light has appeared |
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 07 August 2000 : 10:10:29
|
Hey slemieux!! There are some people emailing me about the extended profile that I have in my site. That was one of your hacks. Care to create a new topic posting the link to zip ???
|
 |
|
blkrogue
New Member

USA
79 Posts |
Posted - 07 August 2000 : 10:19:39
|
Hey animedj I wanted to alter my code on active.asp to include the paging option there as well, but so far it's not just a matter of adding the same code as with the forum.asp page, seems the active.asp page is missing the mypagesize value (but that function can be added, however the query string requests made in paging.asp for FORUM_ID and CAT_ID aren't working from the active.asp, so guess this needs more hacking than expected *sigh*
Blkrogue
In the darkness of my soul a sparkling light has appeared |
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 07 August 2000 : 11:26:35
|
Okay!! done.. I modified the add-on so now it supports active.asp as well. Just go and d/l the script again.
|
 |
|
slemieux
Junior Member
 
USA
234 Posts |
Posted - 07 August 2000 : 16:16:27
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hey slemieux!! There are some people emailing me about the extended profile that I have in my site. That was one of your hacks. Care to create a new topic posting the link to zip ??? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Sure thing! Let me find the zip and I'll post it!
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 07 August 2000 : 23:22:51
|
What all needs to be modified to change the pagesize from 15 to 10 ?
Thanks! <img src=icon_smile.gif border=0 align=middle>
|
 |
|
Nathan L
New Member

USA
83 Posts |
Posted - 08 August 2000 : 00:55:58
|
Very nice, animedj, very nice!
Response.Write ("The Reign of Nice") |
 |
|
Topic  |
|