|
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
|
|||
|
|||
Custom Fields
Hi,
Ive had a look at the wiki on how to create custom fields, however it comes up with an error. Id like to create a custom field that allows the user to input the following information: Contact Name: Location: Contact Number: I want this to be optional information, so if a person only fills out the Contact Name and Contact Number then the Location box wont show.Alternativly, if they dont fill out any then none of them will show. Ive had a look around, but a bit stumped at the moment. If anyone can help it will be greatly appreciated. Edit - Also once ive created a custom field - It comes up with "GARS3" Where abouts do I need to insert this to get it to show when someone is creating a new "Club/Group" Last edited by powerful_rogue; 01-07-2008 at 11:09 AM.. |
#2
|
||||
|
||||
Use Custom Fields to add custom fields. Go to Modules, pick the module of interest, add Custom Fields where you want them to show, click the Custom Fields link that appears afterwards, select Yes to those custom fields of interest, save, and then go to Types, pick the modules set, and tick the custom fields you want.
__________________
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 |
#3
|
|||
|
|||
Thanks Morgan, That works great.
Is it possible to create mutiple text boxes under one custom field? I want to create: Group Contact: Enter Name Contact Number: Telephone Location of Meetings: Address At present the only way I can see of doing it is by creating a custom field for each, but then when its being displayed it will look silly as you'll have a large box for each as shown in the attachment. Id prefer to have them all shown in one box so it looks tidy. |
#4
|
||||
|
||||
Custom fields should show in one box unless I am misunderstanding what you are trying to do.
__________________
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 |
#5
|
|||
|
|||
Thanks Morgan.
Ive worked it out now and its going great Last edited by powerful_rogue; 01-09-2008 at 08:42 AM.. |
#6
|
|||
|
|||
One quick question if you dont mind Morgan,
Ive set up another "Web Address" custom field for my "Clubs/Groups" section but made it "Not Required" as im guessing not all local clubs/groups will have a website. It works great if you put the web address in, it grabs the snapshot and such like, however if you dont put the web address in it shows as in the attachments. Would there be anyway of altering it, so that if a web adress isnt entered, it dosent show those custom fields (numbered 1 +2) in the pictures? Also, is it possible to have an "Upload Image" - So that if no web address is entered, it will show the image uploaded where the snapshot shows, however if they do input a web address it shows the snapshot instead? Last point which im guessing wouldnt be possible, but no harm in asking! If the do upload a picture and input a web adress - Is it possible to give the member an option as to which they would like to show as the picture? Ie, the snapshot of the website or the upload picture! Last edited by powerful_rogue; 01-09-2008 at 08:58 AM.. Reason: forgot to add attachments! |
#7
|
||||
|
||||
Seems you want to change the default behavior of the add-on. For that you'd probably need to edit at least some of the snap.php files, not something for support but maybe something to consider for a future version, or consider using a 'Thumbnail to URL' custom field instead.
__________________
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 |
#8
|
|||
|
|||
Thanks Moragn.
At the moment if you dont put in a website, it now comes up with the "preview not available" picture. If I used an if conditional somehwhere would it work to not display the web address button if no web address has been entered? |
#9
|
||||
|
||||
Untested but you could try adding the bold red bit to the /geek/gars/mods/display/snap.php file:
Code:
if (THIS_SCRIPT == "showthread" && $post['gars_snap_www'] && $post['gars_snap_www'] != 'http://')
__________________
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 |
Custom Fields | The Geek | Tutorials | 26 | 12-01-2006 08:39 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 |