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-16-2007, 07:43 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default Important Question about Gars insertion

At what point does Gars inserts the info in table gars? Is it at thread creation from front end only on submit?

Reason is, I am creating the threads automatically with the data manager. Since I have the threadid, I'd LOVE to also insert Gars automatically, just so it could use a thread_specific image for header image. I look at the table and I saw some serialized data. I am comfortable playing with the serializations... if you tell me what they are, or where to go to study the process.
Reply With Quote
  #2  
Old 02-16-2007, 04:50 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

I simply don't know which routine does the insertion so I could emulate it.

I see how I can do a direct insert in database in table gars. All data seem to be the same for column data

Quote:
a:5:{s:7:"post_as";s:0:"";s:10:"post_as_id";N;s:6: "gal_id";N;s:12:"gal_keywords";s:0:"";s:8:"gal_tex t";s:0:"";}
The only problem I have is column custom_1 which varies
Quote:
a:1:{i:94;N;}
What will happen if I leave it blank?

Last edited by Lionel; 02-16-2007 at 04:54 PM..
Reply With Quote
  #3  
Old 02-16-2007, 05:05 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

It will be fine if you leave it blank. Cutom 1 holds a serialized array of custom values from modules (mainly from version 1.x as custom fields are held in another table in 2.x).

The insertion/update happens in newpost_complete hook.

HTHs!
Reply With Quote
  #4  
Old 02-16-2007, 06:21 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

ok, I added no problem, but why would the forumdisplay shows the raw html in sypnosis (which is what is in thread)? I just added it and have not touched gars showthread. It displays properly in showthread so it is not a vb error

Never mind.
Attached Images
File Type: jpg fd.jpg (20.3 KB, 4 views)

Last edited by Lionel; 02-16-2007 at 08:03 PM.. Reason: Solved
Reply With Quote
  #5  
Old 02-18-2007, 03:19 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

DOes the thread itself set to allow HTML?
Reply With Quote
  #6  
Old 02-18-2007, 03:20 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Sep 2006
Posts: 135
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Gazette License Holder 
Default

It does. But I solved the problem, there was an unclosed <ul> tag.
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
batch link insertion dankenzon Geek Auto-Linker 3 11-23-2006 04:49 PM
GARS question hotwheels Geek Article and Review System 11 01-04-2006 04:16 PM
Another Suggestion (pretty important)! InfiniteWebby Geek Article and Review System 2 10-12-2005 07:13 AM
Question About GARS SALvation Geek Article and Review System 1 10-07-2005 11:08 PM
Important News from The Geek Mrs Geek Lizard Lounge 12 09-03-2005 05:18 PM


All times are GMT. The time now is 12:36 AM.


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