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 02-02-2006, 05:13 PM
Zate Zate is offline
Junior Member
 
Join Date: Jan 2006
Posts: 11
Geek Article and Review System License Holder 
Default Custom Variables outside of Article display ?

Ok, so I have a custom module that I am setting 2 cutom variables in..

the module displays as partof the article fine..

Can i use those custom variables in the forums display? I want to change the forum display to a table like this:

Article Name Variable1 Variable2 Variable3 Poster Date Posted
Art1 2 4 21 Blarg 1/31/06
Art2 4 4 22 Booya 2/01/06

etc etc .. each of the articles will display like that, and I can sort by any of the fields.

Any idea how to do this ?
__________________
http://www.tamparacing.com
Floridas #1 Automotive Community

http://www.tampaforums.com
Tampa's #1 Place for Shennanigans

http://www.eq2raiders.com
All your EQ2 Raiding discussion and Info.
Reply With Quote
  #2  
Old 02-02-2006, 06:35 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

You can do it, however you would need to make some code modifications.

In your GARS ForumDisplay Query hook, change it to this:
PHP Code:
if(is_object($vbulletin->gars)) 

$hook_query_fields.=", ga.header_image, ga.synopsis, ga.byline, ga.feature_untill, ga.pagecount,ga.custom1, ga.custom2"
$hook_query_joins .= " LEFT JOIN " TABLE_PREFIX "gars as ga ON(ga.threadid = thread.threadid) "
if (!
$previewfield

$previewfield "post.pagetext AS preview,"
$previewjoin "LEFT JOIN " TABLE_PREFIX "post AS post ON(post.postid = thread.firstpostid)"


then you would need to edit your gars_class_core.php file and in the process threadbit function, you would need to add something like:
$thread['custom1'] = unserialize($thread['custom1']);

Then in your GARS_threadbit you could access the variables like $thread[custom1][myvariable]

However I have to say I havent tested the above, and its totally off the cuff

Also, thats potentially a lot of unserialize commands which could affect performance on a stressed server.

HTHs
Reply With Quote
  #3  
Old 02-03-2006, 03:14 AM
Jeffrey Jeffrey is offline
Banned
 
Join Date: Dec 2005
Posts: 6
Default

I'm tested and It not work. Geek, you can teach me & Zate: "How to add new variable same as byline and synopsis". After done, Admin can chose On/off new variable in AdminCP/GARS/Types/Article Type/Editing options/Show XXXX (with XXXX is new variable).

Last edited by Jeffrey; 02-03-2006 at 03:37 AM..
Reply With Quote
  #4  
Old 02-03-2006, 06:52 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

Ill put it on my todo list if Zates still having woes. Its more of a modification of the hack, and so my current projects have to take a priority
Reply With Quote
  #5  
Old 02-06-2006, 07:08 PM
Zate Zate is offline
Junior Member
 
Join Date: Jan 2006
Posts: 11
Geek Article and Review System License Holder 
Default

yeah thats fine.. i'm still working out just how much modification is going to take place to get what i need.

ideally i need this : http://www.devmaster.net/engines/
Thats almost exactly what I am trying to create, from the categories on the front, to their amazing submission page. I have contacted them to see if they will share some code.
__________________
http://www.tamparacing.com
Floridas #1 Automotive Community

http://www.tampaforums.com
Tampa's #1 Place for Shennanigans

http://www.eq2raiders.com
All your EQ2 Raiding discussion and Info.
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
Stopping the simply article display and always showing the full article peterska2 Geek Article and Review System 1 05-16-2008 03:08 PM
[Pre-sale Question] Possible to display only article title and article image on index VAFan Geek Article and Review System 3 11-24-2006 01:16 PM
Featured Articels only display 1 article zkilzz Geek Article and Review System 5 11-21-2006 05:19 PM
Is it possible to toggle GARS article style thread display and vB default display? Marris Geek Article and Review System 2 09-13-2006 08:07 AM
MySQL queries sort/search on GARS custom variables? Marris Geek Article and Review System 2 03-03-2006 11:07 PM


All times are GMT. The time now is 10:37 AM.


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