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
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2009, 02:28 PM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Question How to add vbulletin bbcode variable to a template ?

Hi,

I have a basic imdb script installed on my webpage which displays very basic information about the movie. And i have the [IMDB] bbcode to display this kind of information. Example of usage : [IMDB]movie_id[/IMDB]

What i would like to do with GARS is make it more easy. Because i use GARS for my movie info pages.

I've created a text custom field with the name of "Imdb Id".
In new thread of GARS, there will be above custom field asking the imdb id of the movie. And when user enter the imdb id in the box, it will automatically show the movie info. instead of entering [IMDB]movie_id[/IMDB] in the box, just movie_id would be fine.

In GARS_pb template, i've changed the line as :
Code:
[IMDB]$post[gars68][/IMDB]
gars68 is the id of the custom field i've created...

I see that i do something wrong with the default vbulletin bbcode. Because it still displays as [IMDB]movie_id[/IMDB].

How can i make the bbcode work in GARS_pb template so i can display the movie info as it is working on other vbulletin pages ? ([IMDB]movie_id[/IMDB])

Why am i doing that ?
I need that option to be required so user will not be able to post any thread without the movie info. And its simple to make it "required" through GARS.

Thanks in advance...
Reply With Quote
  #2  
Old 07-13-2009, 02:20 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 fields are text only, no HTML because it'd open a security hole, and no BB Code because no HTML is allowed, but you could do this though be sure to not allow raw HTML for security reasons, or you could use $post[gars68] in a link in the GARS_pb template instead of trying to BB Code it.
__________________
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
Replacement variable gldtn Geek Article and Review System 1 03-14-2008 04:17 PM
which variable is byline magnaromagna Geek Article and Review System 1 12-24-2006 11:37 AM
Smilies gone bbcode gone ? luckske Geek Auto-Linker 2 10-27-2006 08:15 AM
variable to display current page name? Erik Geek Article and Review System 4 07-26-2006 04:42 PM
Replacement Variable Manager troubles. RBasil Geek Auto-Linker 3 11-28-2005 09:07 AM


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


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