Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/59298?pagenum=1
05 November 2025, 12:58
Topic
Astralis
Using Snitz as an article comment system
03 September 2005, 05:50
I've been thinking about using Snitz as an article comment (not content) system. I want the comments to display below the article like the blogs do without using frames or an IFRAME.
Some of the issues: reworking topic.asp into a new page to display on the page, eliminating the header and footer on these pages, adding a redirect to post.asp if people post from the article page so that it takes them back to the article when they're finished.
These actually seems fairly simple that I suspect someone has already done this. Is there a mod, or has someone worked on it and could share some code/advice?
Or, if you don't think this is a good idea, do you have an alternative?
Thanks!<
Replies ...
MarcelG
03 September 2005, 07:37
Astralis ; I've done something similar for oxle, for the frontpage news, the linkdump and the weblogs, and as you know my code is available to anyone.<
Astralis
03 September 2005, 09:46
Wow! That's very nice!
Have you done anything with the rating system, by chance, where users can also rate the articles?
It's fascinating how you made the first topic the article. Your formatting is nice. I will, instead, be relating the topics to an article in a different table.
I really like what you did and will use your ideas.
BTW, are you using Access or MSSQL Server?<
MarcelG
03 September 2005, 10:58
Originally posted by Astralis
BTW, are you using Access or MSSQL Server?
Still on Access ; planning to to go MS SQL within 6 months, depending on financial resources <
AnonJr
03 September 2005, 11:06
That's pretty cool... gives me some ideas... any chance I could see what you've done with it so far?<
Astralis
03 September 2005, 20:02
Still on Access ; planning to to go MS SQL within 6 months, depending on financial resources
I feared the costs of MSSQL Server too but I eventually converted and now I really don't notice it, even though I am paying a little more.
I know you live in Europe, so I don't know if this recommendation will be good, but go for the $26/mo. (US) plan at www.CrystalTech.com - it's a solid shared hosting company with reasonable rates. (I do not work for them nor do I get a cut). That plan should hold you for a while. I have over 200MB in the forum plus a CMS running on it. I'm paying about $40/mo.<
MarcelG
04 September 2005, 06:36
Still on Access ; planning to to go MS SQL within 6 months, depending on financial resources
I feared the costs of MSSQL Server too but I eventually converted and now I really don't notice it, even though I am paying a little more.
I know you live in Europe, so I don't know if this recommendation will be good, but go for the $26/mo. (US) plan at www.CrystalTech.com - it's a solid shared hosting company with reasonable rates. (I do not work for them nor do I get a cut). That plan should hold you for a while. I have over 200MB in the forum plus a CMS running on it. I'm paying about $40/mo.
Well, I'm on 10 bucks a month, at Wiktel ; 500 Mb storage, 10 Gb traffic, and great support (via sr_erick). For another 10 a month I'd be on SQL.
Quite happy with them as a matter of fact.
But, we're getting completely offtopic and getting close to a locked topic as hosting-discussions are not really allowed here @ snitz...<
Astralis
04 September 2005, 22:17
Marcel,
Where is your page that displays your code?<
MarcelG
05 September 2005, 03:18
Originally posted by Astralis Marcel,
Where is your page that displays your code?
http://www.oxle.com/source.asp ; enjoy.<
Astralis
05 September 2005, 03:22
Source.asp is redirecting to forums.asp<
MarcelG
05 September 2005, 04:48
Oh, sorry ; you have to be logged in to the site.
You can use demo/demo if you do not wish to register.<
AnonJr
05 September 2005, 06:16
I like that source viewer. If you wanted to take it a step further, read this article. It includes a class you can use to color code your soruce.<
Helterskelter
06 September 2005, 17:46
Thanks I'be been looking for something like this.
I'ge got a version running now at my site but how do u access it.
I'm thinking if adding a responce.redirect linking to article.asp if forum_id="xx" in topic.asp but just wandering hw u do this marcelgoertz
Helter<
Astralis
07 September 2005, 22:20
Marcel,
Where do you define this: strNewsForum and strOtherNewsForum?
<
MarcelG
08 September 2005, 03:43
Originally posted by Astralis Marcel, Where do you define this: strNewsForum and strOtherNewsForum?
Oh, that's from the Sidebar Mod.
The strNewsForum is used for the main frontpage forum.
The strOtherNewsforum is used specifically at oxle to change between oxle.nl (dutch) and oxle.com (english). They've got different frontpages, so that's why. This is done at the end of config.asp in oxledotnl.asp.
You can use the mod I linked, or you could also define the variables manually in config.asp. There aren't that many to set. Just have a peek at oxledotnl.asp ; for the dutch site I've defined them all manually. The admin-page is used only for the english part.<
Helterskelter
08 September 2005, 05:04
Ok. I'll have a look at adding some code to topic.asp so it redirects all topic's in article forum to article.asp
I like leaving the article froum open to allow all people to have easy access.
Thanks for allowing us to view the code, it's quite simple and a good way of displying it.
Helter<
Helterskelter
08 September 2005, 05:39
ok just quick
I added thind to topic.asp befor the includes
if FORUM_ID <> "35" then
Response.Redirect "article.asp?art="& TOPIC_ID Response.End end if
This worked perfectly in the article section
But the rest of the topics in the other forums was redirected to sitenews.asp (SHN forum)
Any idea's?
Helter<
MarcelG
08 September 2005, 06:37
Erm, sorry, but I don't really get it.
If the article forum is FORUM_ID 35, your code should look something like this:
Code:
if FORUM_ID = "35" then
Response.Redirect "article.asp?art="& TOPIC_ID Response.End end if
Now you are redirecting ALL topics to article.asp, but article.asp redirects topics NOT from forum_id 35 to sitenews.asp....<
Helterskelter
08 September 2005, 19:25
I have tried the = but would not work, but it work's fine with the <>.
I though that at first and originaly had done so.
What i was trying to do is redirect all topics in forum 35 (my article forum) to article.asp but it looks to be redirecting all posting's to article and from there it's sending tham back to sitenews......
Thanks for the time already in helping me with this.
Helter<
MarcelG
09 September 2005, 04:07
Helter ; that's exaclty why I said that it should be a = instead of <>
In normal words (not code) if the forum_id of the topic is the same as the articles forum, redirect to article.asp.
But, where do you get FORUM_ID from as a variable ?<
Helterskelter
11 September 2005, 07:23
ok, i did not ask it get FORUM_ID...... I was thinking that as it was doing something when the forum_id was 35 the data was being called somewhere befor saving me the effort of doing my self.
<
Helterskelter
13 September 2005, 10:57
ok I simply fixed the problem by moving the command to after topic.asp calles the data.
Thanks for the help and idea.
Helter<