The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Tutorial Tools Display Modes
GARS: Module making 101
GARS: Module making 101
Published by The Geek
Default Display stage

This is where we layout the custom fields how we want.

Since I'm using the GARS_mod_container template (which gives you the expandable box), I set the title:
PHP Code:
$title "Rating"
The GARS_mod_container template is a table that expects a variable called $bits, so we make that and stick our $values['my_rating'] in there:
PHP Code:
$bits "<tr><td class=\"alt1\" align=\"center\">" $values['my_rating'] . "</td></tr>"
Notice that we stick it in a table row!

Then we use the handy eval command to paste it all together into the $output variable (note how it is appended to output instead of assigned!)
PHP Code:
eval('$output.="' fetch_template('GARS_mod_container') . '";'); 
Tutorial for


Tutorial Tools
Show Printable Version  Email this Page 

<<  <    Next Page: Closing (Page 5 of 6)    >  >>
By Origin2 on 08-27-2008, 10:01 AM

wow thanks useful stuff ^^
Reply With Quote

Tutorial 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
Tutorial Tutorial Starter Category Comments Last Post
making a gab block for gars benj Geek Advertising Banner System 12 08-21-2006 08:42 AM
Problem with the module from the Tutorial 101 trana Geek Article and Review System 4 03-28-2006 06:37 AM
GARS: Module making 102 The Geek Tutorials 0 02-22-2006 08:00 PM
Does anyone have a GARS module that allows an image to be loaded in the module... FRAiD Geek Article and Review System 6 02-11-2006 09:57 AM
If I am using GARS for game reviews, and start making reviews and add new modules... FRAiD Geek Article and Review System 1 02-10-2006 04:57 PM

All times are GMT. The time now is 05:03 AM.

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

Tutorial powered by GARS 2.1.9 ©2005-2006