|
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 |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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..... |
#2
|
|||
|
|||
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];} } 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 |
Thread Tools | |
Display Modes | |
|
|
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 |