Author |
Topic |
work mule
Senior Member
USA
1358 Posts |
Posted - 03 June 2001 : 21:11:48
|
Coding for Snitz becomes sooo much easier once you drop those titles from the querystring. There may be a couple of minor things that you'll find throughout the forum, but it's well worth it. You know how many chkstrings function calls you get to drop now!!
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 03 June 2001 : 21:25:30
|
quote:
This will be done step by step depending on if it takes an extra recordset or not, for default.asp / forum.asp / topic.asp you don't need an extra recordset so that was "easy". Check out http://forum.snitz.com/beta/v33/
I was getting ready to post this information later tonight, but I'm not going to bother if you guys are going to take care of it in the next release.
Here's my notes on the modification to the topics.asp for taking care of querystrings and some other stuff. See if it's similiar.
(I had posted this back in December/January - previous post)
I can't wait to see the code for the next release.
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
Edited by - work mule on 03 June 2001 21:57:49 |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 03 June 2001 : 22:04:55
|
Looking back in the archives I found this one:
Tweak to default.asp
I don't see this in the beta. Will it or can it? This was very useful.
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
webshorts
New Member
USA
96 Posts |
|
Jeepaholic
Average Member
USA
697 Posts |
Posted - 05 June 2001 : 02:48:06
|
quote:
quote:
When will you guys eliminate the placing of the Forum Title & Topic Title in the querystring? (Don't say it can't be done.)
This will be done step by step depending on if it takes an extra recordset or not, for default.asp / forum.asp / topic.asp you don't need an extra recordset so that was "easy". Check out http://forum.snitz.com/beta/v33/
Pierre
I thought the original purpose for doing this was to eliminate so many database queries and speed up the system... Is that no longer important? Just curious.
Al Bsharah Jeepaholics Anonymous |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 05 June 2001 : 02:57:24
|
quote:
I thought the original purpose for doing this was to eliminate so many database queries and speed up the system... Is that no longer important? Just curious.
Oh, it's important to reduce the number of database queries. But the thing is that there is presently a query being made to the database for forum.asp and topic.asp to check the status level. So by expanding the query to include the title, you now have access to the title via that db call and don't need to pass it along. Besides the database, think of how many times that links were being built on a page and the titles had to be passed through a function to prep it for URL's which can now be eliminated.
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 05 June 2001 : 07:33:21
|
quote:
quote:
I thought the original purpose for doing this was to eliminate so many database queries and speed up the system... Is that no longer important? Just curious.
Oh, it's important to reduce the number of database queries. But the thing is that there is presently a query being made to the database for forum.asp and topic.asp to check the status level. So by expanding the query to include the title, you now have access to the title via that db call and don't need to pass it along. Besides the database, think of how many times that links were being built on a page and the titles had to be passed through a function to prep it for URL's which can now be eliminated.
Correct,
The pages now have the same amount or even less recordsets. One thing that still is the same is that pages like post.asp get called using all the info. The changes I made only affect forum.asp and topic.asp and also eliminates the use of link.asp which created an extra recordset just to be able to redirect to topic.asp !
Pierre Join the Snitz WebRing |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 05 June 2001 : 10:27:25
|
quote:
One thing that still is the same is that pages like post.asp get called using all the info.
If you have a chance, I would look at that file too. I haven't looked through it extensively, but there's quite a few cases where a recordset is being created already, so you may not need to pass the information there either.
Actually, I know you don't need it! On my site I'm just passing the id's - no titles and everything gets populated just fine.
The only thing is that you may want to open the recordset sooner to get the information for the thread at the top - where the folder icons are - unless you just make that generic text up there.
BTW, when you guys get ready to convert to CSS - let me know, I have a Perl script which will parse through all the files and convert them to support CSS.
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson
Edited by - work mule on 05 June 2001 10:43:49 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 05 June 2001 : 16:04:00
|
After reading about passing the forum title, Category Name and Topic Title, I went through and removed them all this morning also. I, like work mule, removed it from post.asp and post_info.asp also.
One thing I noticed also is that the Topic status and Forum status icons aren't being shown in post_info.asp, they aren't even being tested for. I know that they are only usually seen for a second or two, but it would be good to be consistent.
I used existing recordsets in most places, but also added 2 functions to inc_functions.asp to get the Forum Name and Category Name when there wasn't a recordset available.
Here are the 2 functions:
function getForumName(fForum_ID) '## Forum_SQL strSql = "SELECT " & strTablePrefix & "FORUM.F_SUBJECT " strSql = strSql & " FROM " & strTablePrefix & "FORUM " strSql = strSql & " WHERE FORUM_ID = " & fForum_ID set rsChk = my_Conn.Execute (strSql) if rsChk.EOF or not(ChkQuoteOk(fForum_ID)) then getForumName = "" exit function end if getForumName = rsChk("F_SUBJECT") rsChk.close set rsChk = nothing end function function getCatName(fCat_ID) '## Forum_SQL strSql = "SELECT " & strTablePrefix & "CATEGORY.CAT_NAME " strSql = strSql & " FROM " & strTablePrefix & "CATEGORY " strSql = strSql & " WHERE CAT_ID = " & fCat_ID set rsChk = my_Conn.Execute (strSql) if rsChk.EOF or not(ChkQuoteOk(fCat_ID)) then getCatName = "" exit function end if getCatName = rsChk("CAT_NAME") rsChk.close set rsChk = nothing end function |
|
|
DHT
Starting Member
37 Posts |
Posted - 05 June 2001 : 21:22:34
|
I wonder when the new version is possible release ? I plan to re-layout my forum, but try to wait for the lastest version.
|
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 06 June 2001 : 12:11:56
|
Maybe this was answered before, but my short term memory eludes me at times, so I apologize for asking it if it has.
This new version that's being worked on - the code found at beta v33 site - where does the Internationalization update fit into the picture? Will the v33 code be released to the public before or after the Internationalization update? I'm sort of confused as to which version that was going to happen with. I would hope that it's the version after v33 - so we don't have to wait longer. The Internationalization project seems sort of bogged down in the discussion of execution and how it should be done.
The Writer Community
"Do not go where the path may lead, go instead where there is no path and leave a trail." -Ralph Waldo Emerson |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 06 June 2001 : 13:38:35
|
It would be after. After working out the bugs in the v33, it will be released then Internationalization will move into full swing.
|
|
|
mcornman
Starting Member
1 Posts |
Posted - 06 June 2001 : 15:36:46
|
quote:
Maybe this was answered before, but my short term memory eludes me at times, so I apologize for asking it if it has.
This new version that's being worked on - the code found at beta v33 site - where does the Internationalization update fit into the picture? Will the v33 code be released to the public before or after the Internationalization update? I'm sort of confused as to which version that was going to happen with. I would hope that it's the version after v33 - so we don't have to wait longer. The Internationalization project seems sort of bogged down in the discussion of execution and how it should be done.
I have a similar line of questions...
I am a little confused as to the versions and release targets for upcoming snitz. The current version is 3.1SR4, there is a 3.2a6 and a Beta 3.3. I am thinking of using version 3.1, but would hold off for a little while for a newer release. Are there indeed to versions in the pipe? And what are there main features and release dates?
Any help would be appreciated. Thanks.
Martin
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 06 June 2001 : 16:39:48
|
The v3.3 is the next version that will be released. The 3.2 Alpha 6 was for us, the development team to debug and test. Since then, there have been some more additions to the base code, that we had to make it v3.3, instead of v3.2 Final.
|
|
|
George_Zhu
Starting Member
China
46 Posts |
Posted - 06 June 2001 : 20:27:02
|
Anxiously waiting for the new release.
I am now using 3.1sr4, and I will redesign my site, so I want to make the forum get along well with other parts of my site.
Thank you.
|
|
|
Topic |
|