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-21-2010, 12:55 PM
milsirhc milsirhc is offline
Junior Member
 
Join Date: Dec 2009
Posts: 5
Geek Article and Review System License Holder 
Default Creating a module and accessing the value of a custom field

Hi,

I got a custom field: Address, which contains the address of the restaurant.

I figure that if I append the Address custom field value to: http://maps.google.com.au/maps?f=q&s...en&geocode=&q= <address custom field>

I will be able to provide a hyperlink to google map for the restaurant location.

My problem is how can I do that.....
Reply With Quote
  #2  
Old 01-23-2010, 09:46 PM
WizKaz WizKaz is offline
Junior Member
 
Join Date: Mar 2009
Posts: 10
Geek Article and Review System License Holder 
Default

You have to write a Plugin.

If you want do show the result in the postbit, use the hook "postbit_display_complete" (Position 1-5, just try)

Then enter a code like this:
(gars5 = Costum Field Nr. 5, you might change the number)

Code:
if(isset($post[gars5]))

{

$showatgooglemaps = "http://maps.google.com.au/maps?f=q&source=s_q&hl=en&geocode=&q=" 
. $post[gars5];}

}
Now, all you have to do, is insert the variable $showatgooglemaps in the templat gars_pb at the position you want it to appear.

If you want to use it in the threadbit you have to use these values:

Costumfield = $thread[gars5]
Hook = threadbit_display
Template = gars_threabit

Good luck!

best regards,

Wizzy
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
Move custom field? cykelmyggen Geek Article and Review System 9 08-16-2009 09:50 AM
Custom field layout help croft Geek Article and Review System 7 09-22-2007 06:05 AM
Custom Newsletter and Custom Module Set Problem Dr. Bantham Geek Gazette 6 05-27-2007 01:03 PM
Custom Field problem spadez Geek Article and Review System 1 09-24-2006 09:36 AM
Custom field or custom module? Richy Geek Article and Review System 6 06-07-2006 08:15 PM


All times are GMT. The time now is 12:51 PM.


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