T O P I C R E V I E W |
eauxvives |
Posted - 20 February 2006 : 04:00:29 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)< |
8 L A T E S T R E P L I E S (Newest First) |
eauxvives |
Posted - 28 February 2006 : 12:07:47 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< |
tribaliztic |
Posted - 28 February 2006 : 04:20:53 It would be nice to see what you did, maybe someone else could use the code! Glad to hear that you fixed it! < |
eauxvives |
Posted - 27 February 2006 : 12:56:34 OK I figured it out myself If there are people interested, I'll try to describe exactly the changes I've applied < |
eauxvives |
Posted - 27 February 2006 : 09:29:41 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 < |
tribaliztic |
Posted - 20 February 2006 : 10:21:12 That's how I do it anyways =) < |
eauxvives |
Posted - 20 February 2006 : 08:19:01 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.< |
tribaliztic |
Posted - 20 February 2006 : 06:40:13 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. < |
OneWayMule |
Posted - 20 February 2006 : 04:10:40 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.< |