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/O Code)
 mark 'important' topics?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 20 February 2006 :  04:00:29  Show Profile  Reply with Quote
hello all
here is what we would like to do: we would like to be able to display on our website home page a series of 'webmaster's pick' of what we believe are the 10 or so most 'interesting' recent topics from our snitz forum. So what we would need is to be able to 'mark' such topics in the forum (option available to mods/admins) after which we would just have to write the proper query for the home page. Ideally, this 'marking' would be done by clicking on an icon (e.g. similar to that for sticky topics)

has this been done before? I've searched the forum and could not find it. apparently the bookmark mod is different (and anyway I can't get it to work)<

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 20 February 2006 :  04:10:40  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message  Reply with Quote
I don't know of a MOD that would give the exact functionality you need.
Some MODs could be modified for this such as the Bookmark MOD, News Forum MOD or RSS Feed MOD.

A custom script would probably save you time though.<

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2006 :  06:40:13  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Just rip the code for "sticky topics" and create a new field in the db. Then do a select on all topics with that mark and display them via a modded "show ten latest topic"-code. Shouldn't be that hard I think.
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 20 February 2006 :  08:19:01  Show Profile  Reply with Quote
quote:
Originally posted by tribaliztic

Just rip the code for "sticky topics" and create a new field in the db. Then do a select on all topics with that mark and display them via a modded "show ten latest topic"-code. Shouldn't be that hard I think.



yep, will do.<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2006 :  10:21:12  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
That's how I do it anyways =)
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 27 February 2006 :  09:29:41  Show Profile  Reply with Quote
OK,
- I added a field in forum_topics table, i.e. T_FLAG,
- T_flag is set to 1 by pop_lock.asp, modified by reusing the code for setting a topic as sticky (haven't yet changed pop_open.asp to 'unmark' the marked topics, i.e. set t_flag back to 0)
- change forum.asp to add a new icon on each line , next to the sticky icon, that calls pop_lock.asp to mark the topic

however at this point I am stuck. I would like to display the 'mark topic' icon only when the topic is not yet marked (and later add a 'unmark' icon when the topic is marked). But how do I test (in forum.asp) whether a topic is marked or not? I have tried to play around the similar code for sticky topics but got lost
<
Go to Top of Page

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 27 February 2006 :  12:56:34  Show Profile  Reply with Quote
OK I figured it out myself
If there are people interested, I'll try to describe exactly the changes I've applied
<
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 28 February 2006 :  04:20:53  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
It would be nice to see what you did, maybe someone else could use the code!
Glad to hear that you fixed it!
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

eauxvives
Junior Member

Bhutan
145 Posts

Posted - 28 February 2006 :  12:07:47  Show Profile  Reply with Quote
quote:
Originally posted by tribaliztic

It would be nice to see what you did, maybe someone else could use the code!
Glad to hear that you fixed it!



done!
I started a new thread here http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61194<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07