Support Forums

Custom Cats Problem

This is a discussion on Custom Cats Problem within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? Example: V4.2.0 Designer What template are you using? Default Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 10-12-2010, 09:17 PM   #1
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 20
rockabilly is on a distinguished road
Default Custom Cats Problem

What version of 68 Classifieds are you running?
Example: V4.2.0 Designer

What template are you using?

Default
Please describe in detail the issue you are having:

I installed the custom cats module and I am modifying the noprice.tpl
I need to display extra fields. I added the following to this template:

<td{if $entry.class<>""} class="{$entry.class}"{/if}>{get_extra_field id=$entry.id fid=15}</td>

When I click on the category to view the listing, I get this error:

Notice: Query failed: Query was empty SQL: in /home/peoplehe/public_html/ads/includes/classes/database/mysql.php on line 143

There seems to be a problem with this tag: get_extra_field id=$entry.id fid=15}

If I back out this tag and insert something like this:
<td{if $entry.class<>""} class="{$entry.class}"{/if}>HELLO</td>

The error will go away and display the word HELLO.

Can someone please point me in the right direction to fix this error? Thanks in advance...

Last edited by rockabilly; 10-12-2010 at 09:26 PM.
rockabilly is offline   Reply With Quote
Old 10-12-2010, 11:25 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,120
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

This is a reported bug and has been fixed.

http://www.68classifieds.com/forums/...r=all#note1502
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-13-2010, 02:40 PM   #3
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 20
rockabilly is on a distinguished road
Default

Hello,
Thanks for the information. I did change line 58 of plugins/function.get_extra_field.php
It did get rid of the error problem, but when I insert {get_extra_field id=$view fid=2} into my custom cat template, the field is blank when viewing the results. If I replace the tag with something like "123", it will display whatever text I place there. It is not calling up the result for this tag. Any ideas on how to fix this?

Thanks again for your help!

Quote:
Originally Posted by Mike-N-Tosh
This is a reported bug and has been fixed.

68 Classifieds Forums

Last edited by rockabilly; 10-13-2010 at 03:20 PM.
rockabilly is offline   Reply With Quote
Old 10-13-2010, 10:31 PM   #4
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 20
rockabilly is on a distinguished road
Default Works for v4.1.6

As a follow up, these extra cat fields work fine with v4.1.6 and display on the noprice.tpl
I just can't seem to figure out why I can't pull in this data to display on the noprice.tpl
on a fresh install of v4.2.0

Any ideas how to make this work with the latest version?
rockabilly is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding GAD between ads in cats EnergyFreak Customizations 2 04-26-2010 08:04 PM
custom cats module question jason1971 Templates, HTML, CSS, and Design Help 13 03-12-2010 12:11 PM
Problem Initializing Custom Categories markstanden Technical Support 2 10-25-2009 09:15 AM
Search with Custom Cats rockabilly Technical Support 5 07-02-2009 09:10 AM
V4.1.x Custom Category Templates Mod Problem rockabilly Modules / Plugins / Modifications 26 06-18-2009 12:00 PM


All times are GMT -4. The time now is 02:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0