The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2009, 05:54 PM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Question 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.
Reply With Quote
  #2  
Old 01-06-2009, 06:16 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 01-08-2009, 07:34 AM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Default

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)
Reply With Quote
  #4  
Old 01-08-2009, 04:18 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 01-09-2009, 09:26 AM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Default

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.
Reply With Quote
  #6  
Old 01-12-2009, 05:02 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

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;
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mark Atkins Booth Reviews 2 03-20-2011 09:07 AM
"Mark Category Read" not working guvner Geek Article and Review System 3 06-08-2008 10:27 PM
New Thread/Edit Thread/Post Reply Template Set Half Pint Geek Article and Review System 1 01-27-2008 12:11 AM
Thread title is not updated Michelle Geek Article and Review System 1 03-08-2006 10:04 AM
GAB Issue Mark All Forums Read SQL Error Michael-MI Geek Advertising Banner System 2 02-12-2006 05:07 PM


All times are GMT. The time now is 05:36 PM.


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