The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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)<
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)<
نوشته شده در
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.<
A custom script would probably save you time though.<
نوشته شده در
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 -
- www.gotlandrace.se -
نوشته شده در
Originally posted by tribalizticyep, will do.<
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.
نوشته شده در
That's how I do it anyways =)
<
<
/Tribaliztic
- www.gotlandrace.se -
- www.gotlandrace.se -
نوشته شده در
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
<
- 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
<
نوشته شده در
OK I figured it out myself
If there are people interested, I'll try to describe exactly the changes I've applied
<
If there are people interested, I'll try to describe exactly the changes I've applied
<
نوشته شده در
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 -
- www.gotlandrace.se -
نوشته شده در
Originally posted by tribalizticdone! I started a new thread here http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61194<
It would be nice to see what you did, maybe someone else could use the code! Glad to hear that you fixed it!
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...