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