The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

  Learn how to remove ads

Tutorial Tools Display Modes
Custom Fields
Custom Fields
Published by The Geek
Default Introduction

Here I am going to cover the basics of creating Custom Fields in GARS 2.0

Please note that this documentation was created for GARS 2.0 Beta 2. It may not be 100% up to date and things may change as future versions come out.

Step 1
Create a custom field

To create a custom field, click admincp->gars->custom fields->add new
Choose the type of custom field you want to create. Please note that you can not change the type after you created it - however you can always delete and create another!

Here is a quick overview of each type at time of writing this:
  • text - A one line text box.
  • Large text - a large text area
  • Whole number - A one line text box that only accepts whole numbers
  • Date selector - allows entering of dates
  • Single check box - um. Guess? That's right a single check box!
  • Check Boxes - allows you to create a group of tick boxes
  • Radio Buttons - Create a group of radio buttons
  • Select box - allows a drop down combo box.
  • Snipped URL - Allows users to enter in a URL, but display will be snipped after x amount of characters.
  • Thumbnail to original image - allows users to upload an image. When displayed, they only get a thumbnail that when clicked, will open the browser to the original image.
  • Thumbnail to URL - Allows user to upload an image which is thumb nailed. User also enters a URL. When you click on the thumbnail, it takes you to the URL.
Once you choose which field type you want, you will be able to enter the settings for the field.

  • Title What you want to call it. It also appears above the custom field when a user is creating/editing their GAR
  • Description A short description for the field. It too appears above the custom field when creating/editing an item.
  • Display Order The, er - order it displays. A lower number makes it display earlier
Other settings should be self explanatory. However I'm sure Ill be writing info on each type later.

Step 2
Assign the custom field to one or more types.

Edit the types you want to assign the custom field to (admincp->gars->types).
At the bottom of the page, you will see all available types that you can assign. Assign by ticking the box next to the custom field and clicking Save.

From that stage, the fields will be available when editing and creating a new GARS controlled thread.

Tutorial for


Tutorial Tools
Show Printable Version  Email this Page 

<< <    Next Page: Showing the results! (Page 1 of 2)    >  >>
By benj on 08-20-2006, 04:00 PM

when making a custom template for a field.whats the varible for the value of the field ?
Reply With Quote
By The Geek on 08-21-2006, 08:41 AM

Sorry, you lost me
Reply With Quote
By benj on 08-21-2006, 09:56 AM

when adding a custom field to the custom module it offers you the option to use a template ? how do thouse templates work ?
Reply With Quote
By The Geek on 08-21-2006, 11:36 AM

What it does is allow you to override the default template for displaying the item or hosing the module.

That gives you the ability to do something far cooler then simply showing the text results. The standard results for that module are displayed in GARS_custom_row.
Reply With Quote
By beduino on 10-15-2006, 05:00 AM
Default very good

this tutorial is very clear and useful,
but my first tentative fails...when i will display in my personal module set - he don't appears!
what i do wrong?
Reply With Quote
By Julian on 11-02-2006, 06:59 PM

I have another challange: I want to display the Value of the custom-field inside of another template. Well, to be clear: Behind the picture displayed should be a link and a part of the link is the custom-field.

The custom-field is named " test " and the content of one of the posts is "12345". Now I want to have a link in the postbit which is built up like this:

I´d like to get this in the way of:
<a href=""+"$table[test]&somethingelse" >$vbphrase[blabla]</a>
Is this possible?

Best wishes, Julian!
Reply With Quote
By The Geek on 11-04-2006, 01:10 AM

It should be fine. instead of $table[ test ], try $post[gars1] (where gars1 is the field name)

Reply With Quote
By trana on 11-04-2006, 09:29 PM

Two questions.

How can I create a custom large text field that has some sense of formatting (i.e. carriage returns, maybe a bbcode editor?) Right now when I put in a list of names on separate lines it joins them all together.

Also, is there any way to create a custom field that would act like a table? For example, I want people to use the first post (i.e. the article) to keep tabs on certain things, so they need to list:

UserID1, items requested, total due, paid or not?
UserID2, items requested, total due, paid or not?
UserID3, items requested, total due, paid or not?

As people send their payments or update their orders the owner goes back and updates this custom field. If a custom field could support bbcode editing then maybe I can use the preexisting bbcode table hack.

Any suggestions would be appreciated!
Reply With Quote
By The Geek on 11-05-2006, 03:25 PM

Hi Trana,

You cant use the vB editor to enter bbcode into a text area, however you can set the custom field to parse bbcode. In other words, if you set it to parse bbcode then it will act like an editor (with line breaks, formatting code, etc...).

To customize the contents, the easiest thing to do would be to create a custom field row and container. If you edit the Custom Fields module in your module set, you will see that you can specify a value for the custom row and also one for the container. This allows you to override the GARS defaults and lay it out as you would like.

I hope that helps!

Neutral, check out the settings for the custom fields module in your module set. It allows you to specify a title for the box.

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
Custom Fields powerful_rogue Geek Article and Review System 8 01-10-2008 02:21 PM
Custom Fields Damir Geek Article and Review System 27 10-13-2006 04:38 PM
cant see custom fields wildo69 Geek Article and Review System 14 09-05-2006 07:00 AM
Custom Fields utw-Mephisto Geek Article and Review System 3 07-14-2006 06:59 AM
Upload Custom Submission Avatars and custom fields question. Praetorian Geek Article and Review System 1 06-14-2006 01:50 PM

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

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

Tutorial powered by GARS 2.1.9 ©2005-2006