The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Article and Review System (http://www.thevbgeek.com/forumdisplay.php?f=26)
-   -   Mark thread title ? (http://www.thevbgeek.com/showthread.php?t=4919)

stckhlm 01-04-2009 05:54 PM

Mark thread title ?
 
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.

Code:

<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...

Regards.

Morgan 01-06-2009 06: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:
Code:

<if condition="$thread['gars_marked_date']">$show[markedprefix]</if>
Also see this post for the module position variable and what they mean.

stckhlm 01-08-2009 07: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)

Morgan 01-08-2009 04: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.

stckhlm 01-09-2009 09: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.

Morgan 01-12-2009 05: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:
Code:

# 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;



All times are GMT. The time now is 04:04 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.