View Full Version : Mark thread title ?

01-04-2009, 04:54 PM
I've created a new template set and left all the fields as blank. So that category use Gars Article but with original vbulletin templates.

I would like to be able to use "mark" option for this section. All i want to do is, when a user click the mark the thread button, then it will automatically put the [marked] prefix just infront of the thread title.

Due to i do not use GARS_ template set for this section, i would like to learn if it still possible to use marked module but without container. Just with the mark button.

I want to add the small mark button just infront of the tag button (in vbulletin threadbit). I guess i should add it just infront of the below code of original vbulletin threadbit template.

<if condition="$thread['taglist']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/tag.png" alt="$thread[taglist]" /> </if>

But the problem is, how ? or is that possible ?

I hope it is...


01-06-2009, 05:16 PM
To remove the container, go to the ACP -> GARS -> Modules -> click the module link -> click the Marked link -> set "Exclude container" to yes. In the GARS_threadbit template is the following that you can use to add a prefix like here (http://www.thevbgeek.com/forumdisplay.php?f=16):

<if condition="$thread['gars_marked_date']">$show[markedprefix]</if>

Also see this (http://www.thevbgeek.com/showpost.php?p=26887&postcount=8) post for the module position variable and what they mean.

01-08-2009, 06:34 AM
Thanks a lot Morgan. I've solved my problem after checking your above advised thread.

I've just one problem. Is it possible to let the users list their marked threads ? I mean, each user should be able to list/see what threads they've marked. (same as on vb.org/installed addons)

01-08-2009, 03:18 PM
The gars_marked table has both threadid and userid fields, so you could write something to query that table, perhaps joining with the vB thread table, to get a list of threads for a particular user.

01-09-2009, 08:26 AM
Do you mind if i ask you the way for doing that ? Becuase i do not have enough experience/knowledge with mysql or even php and actually i afraid of doing something wrong.

01-12-2009, 04:02 PM
Custom coding really falls outside the realm of support and is not typically offered, especially for larger requests, but here is a query you could try to get a list of threadids for a particular user:

# add your vB table prefix to the gars_marked table table name if you use a prefix
# change X to the userid of the member for whom you want the list of threadids
SELECT threadid FROM gars_marked table WHERE userid = X;