Author |
Topic  |
|
webby4x4
Starting Member
44 Posts |
Posted - 02 September 2005 : 15:37:08
|
I run a vehicle and product review web site (http://www.4x4review.com) and I also use Snitz 2000.
I'd like to know how I could go about integrating the forums into my articles. What I'd like to offer is a link on each article that says either "Be the first to comment on this review" or "Comment on this review".
What I'm looking for is a way to allow members to click on a link that would either automatically create a topic (within a forum I've created called "Vehicle Review Discussions") with a topic name derived from the articles page title, OR, if one has already been created, take them to the existing topic to comment.
Does something like this exist?
Thanks, Rick |
|
Roger Fredriksson
Average Member
  
Sweden
556 Posts |
Posted - 02 September 2005 : 17:50:48
|
One way to do it would be if you first always create a topic with an article/-resume as first post and then just add a hyperlink on the article-page to topic.asp. In my app I have made one topic for each power-company. When visitors compare power-prices they get a table with prices and in one column I place this string: "<a href=""JavaScript:openWindow5 'http://avgifter.com/forum/topic_pop.asp?TOPIC_ID=" & [TOPICS_ID] & "')"">" & "<img src=""images/icon_search.gif"" width=""16"" height=""17"" border=""0"" title=""Read and write!!"" align=""absmiddle""/>" (Topic_pop is my homebaked version of topic.asp and do not show anything else then features neeeded for reading and posting the actual topic.) It works great, proably much better then my attemt to explain what I mean in this post. |
rf/www.avgifter.com |
Edited by - Roger Fredriksson on 03 September 2005 03:59:23 |
 |
|
Astralis
Senior Member
   
USA
1218 Posts |
Posted - 25 September 2005 : 02:05:13
|
I just did this and got it to work on my site. E-mail me if you want some more information.
Roger, I'm curious to see how you logged people in, or was it anonymous.
I used the universal login mod and it was a snap.
|
Edited by - Astralis on 25 September 2005 02:07:37 |
 |
|
Helterskelter
Junior Member
 
United Kingdom
331 Posts |
Posted - 25 September 2005 : 16:47:08
|
What i done with my basic article system is use the code kindly show from Oxle.com and rehased it about.
It only displays the first message, but you could make it replayable quite simple, then telling it to show all the resualts after the first as replys to the article.
I changed topic.asp a little
I created a fourm called "article" with the forum id of 35(course this is different for all sites) I then added this to topic.asp
'########### edit 35 to point to your article forum ####### if FORUM_ID = "35" then Response.Redirect "article.asp?art="& TOPIC_ID Response.End end if
After the section that called the data from the DB
Cat_Subscription = rsTopic("CAT_SUBSCRIPTION") Cat_Moderation = rsTopic("CAT_MODERATION") Forum_Status = rsTopic("F_STATUS") Forum_ID = rsTopic("FORUM_ID") Forum_Subject = rsTopic("F_SUBJECT") Forum_Subscription = rsTopic("F_SUBSCRIPTION") Forum_Moderation = rsTopic("F_MODERATION") Topic_MsgIcon = rsTopic("T_MSGICON") Topic_Message = rsTopic("T_MESSAGE") if CanShowSignature = 1 then Topic_MemberSig = trim(rsTopic("M_SIG")) end if
My article.asp file can be Download here
To see it working goto my site at www.livingfish.co.uk/forum Look at the article section near the bottom and lick and go.
Helter
|
 |
Edited by - Helterskelter on 25 September 2005 16:49:30 |
 |
|
Roger Fredriksson
Average Member
  
Sweden
556 Posts |
Posted - 26 September 2005 : 04:34:59
|
Astralis, just curious - did you use my way or did you do it your own way ? Url? I use universal login but I do not understand why you ask about that, please tell me. |
rf/www.avgifter.com |
 |
|
Ranko
Junior Member
 
400 Posts |
Posted - 04 October 2005 : 05:25:00
|
I'd think that all you need to do for that effect was to write the article as a topic, modify the page to show First Post; then disable that first post on commnets (ie, normal forum thread) page). |
 |
|
webby4x4
Starting Member
44 Posts |
|
Ranko
Junior Member
 
400 Posts |
Posted - 22 October 2005 : 06:27:48
|
Oxle page is topic.asp that has been slightly modifyed; Marcel will yell if I am wrong. |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 22 October 2005 : 08:28:13
|
Nope, you're absolutely right. I've created some 'alternate' topic views, called logfeed.asp, news.asp, shortnews.asp and article.asp. They're all just topics from the forumdatabase, with their replies (if any), shown differently. The way I do it is like this: You first start creating/defining forums for the different tasks; a weblogs forum, a news forum, a linkdump forum and an article forum. In topic.asp a check is done to redirect any requested topic to the appropriate formatting page. For example, when you request a topic via topic.asp which is in the news forum, you get redirected to news.asp.
You can have a look at the sourcecode if you want ; http://www.oxle.com/source.asp?page=news.asp (login demo/demo) |
portfolio - linkshrinker - oxle - twitter |
 |
|
webby4x4
Starting Member
44 Posts |
Posted - 24 October 2005 : 21:39:25
|
So you're using the forums to actually post your articles and news right? |
 |
|
Ranko
Junior Member
 
400 Posts |
Posted - 25 October 2005 : 04:40:09
|
Yes he is. It is a really simple code (take look at it, he posted the link and the login you will need). It simply redirects any aces to News forum to the proper, slightly modified page. |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 25 October 2005 : 05:11:12
|
quote: Originally posted by webby4x4
So you're using the forums to actually post your articles and news right?
Yep. It's all 100% pure Snitz database. |
portfolio - linkshrinker - oxle - twitter |
 |
|
|
Topic  |
|