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
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2007, 01:18 PM
Agent-VIP Agent-VIP is offline
Junior Member
 
Join Date: Mar 2007
Posts: 3
Geek Article and Review System License Holder 
Default Custom field thumbnail link problem?

Hello,

I decided to create a custom thumbnail field for my forum. Now when i try and display it on the template $post['gars17'] -- it displays 1/thumb_canon-710-is-review.jpg,1/canon-710-is-review.jpg

How do i seperate the two? because obviously http://www.site.com/1/thumb_canon-71...-is-review.jpg isn't a valid img source

Thankyou
Reply With Quote
  #2  
Old 04-13-2007, 03:12 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

You will need some sort of module/logic to break the two appart. Some custom fields have multiple values that are comma seperated. In this case, the image is a comination of pathtothumbnail,pathtooriginal

A simple hook or module would do it for you
Reply With Quote
  #3  
Old 04-13-2007, 05:07 PM
Mythotical Mythotical is offline
Senior Member
 
Join Date: Nov 2005
Location: USA
Posts: 204
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder 
Default

I can't even figure out how to do a module or hook to handle this problem.
__________________
Please use the Bug Tracker to report any bugs or possible problems.
ThevBCoder.com - The site that brings you scripts that give you 'It!'.

My trip to AZ was a success
Reply With Quote
  #4  
Old 04-13-2007, 05:39 PM
Agent-VIP Agent-VIP is offline
Junior Member
 
Join Date: Mar 2007
Posts: 3
Geek Article and Review System License Holder 
Default

I would have thought GARS would have come with that? being an option in the custom fields, what else is the thumbnail field used for?
Reply With Quote
  #5  
Old 04-13-2007, 10:23 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

There is a module for that... its the custom fields module. If you want to format in other ways otside of that module, you need the logic that the module uses
Reply With Quote
  #6  
Old 04-14-2007, 10:51 AM
Agent-VIP Agent-VIP is offline
Junior Member
 
Join Date: Mar 2007
Posts: 3
Geek Article and Review System License Holder 
Default

Could you please elaborate a little more? I have used php to locally seperate the two.. but i'm not sure where i would place it in the GARS system? Or how to adapt it
Reply With Quote
  #7  
Old 04-14-2007, 12:00 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
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

The fastest and easiest way would be to create a php file in your geek/gars/mods/display folder with something like the following in it:

PHP Code:
<?php
 
global $post;
$post['me_split_thing'] = splitstringhere;
 
?>
Then register the module via admincp->gars->modules->register new module. All you will need to do is name it.

Then add your newly named module to the set in question.

HTHs
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
Problem with custom field thmbnail to original image playeradvance Geek Article and Review System 8 06-08-2007 06:12 PM
Issues with Custom Field that offers Thumbnail + Url Praetorian Geek Article and Review System 17 05-31-2007 02:24 PM
Header Image/Custom Field Thumbnail Jei Geek Article and Review System 4 05-21-2007 08:41 AM
Custom Field Problem soultrader Geek Article and Review System 2 10-03-2006 10:09 PM
Custom Field problem spadez Geek Article and Review System 1 09-24-2006 09:36 AM


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


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