Support Forums

Extra checkbox field not showing in listing

This is a discussion on Extra checkbox field not showing in listing within the Technical Support forums, part of the Technical Support Forums category; Hi everyone, I've got a small problem: I configured a new field with checkbox options and in the admin it ...


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

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 09-18-2008, 09:21 AM   #1
Junior Member
 
Join Date: Sep 2008
Posts: 6
Rep Power: 0
gysgysco is on a distinguished road
Exclamation Extra checkbox field not showing in listing

Hi everyone,

I've got a small problem:
I configured a new field with checkbox options and in the admin it is set as seen in listing.

In my trial ad I checked some options, and they are saved alright.

Yet in the viewlisting I only get the field's tag (eg: Equipment) but no values at all.

All other extrafields show alright, and I've been looking at the .tpl file and it seems to be ok
Code:
{* Extra Fields *}
                        {foreach from=$extrafields item=extras}
                        <tr>
                                <td><strong>{$extras.title}:</strong></td>
                                <td>
                                        {if isset($extras.value)}
                                          {foreach key=key item=item from=$extras.value}
                                                {$item}<br />
                                                {foreachelse}
                                                {$extras.value}
                                          {/foreach}
                                         {/if}
                                </td>
                        </tr>
                        {/foreach}
                        {* End Extra Fields *}
BTW I also cleared chached files just in case
gysgysco is offline  
Old 09-18-2008, 09:39 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I just briefly set up a check box field on one of my test sites and I have the same problem. When I look at the debug output the extra (checkbox field) that I created has a value of NULL. This appears to be a bug.

I would post this in bug tracker. Please make sure to specify the vrsion of 68C you are using.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 09-18-2008, 02:51 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I remember a bug like this before. What version are you running?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 09-18-2008, 03:23 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I checked it with 4.0.7 and had problems.

I also just tried 4.0.8 and get no data when viewing an ad either.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 09-18-2008, 03:36 PM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Can you try this change and see if it fixes it:

Open Listings.php class and go to getListingFields method.

Next find:
'value'=> html_entity_decode($rs['sValue']),

Replace with:
'value'=> $rs['sValue'],
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 09-18-2008, 03:36 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Just to note this is changed in subversion so I think it was reported after the v4.0.8 release.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 09-18-2008, 03:39 PM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Eric Barnes View Post
Can you try this change and see if it fixes it:

Open Listings.php class and go to getListingFields method.

Next find:
'value'=> html_entity_decode($rs['sValue']),

Replace with:
'value'=> $rs['sValue'],
Yea, that seemed to fix it.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 09-19-2008, 04:33 AM   #8
Junior Member
 
Join Date: Sep 2008
Posts: 6
Rep Power: 0
gysgysco is on a distinguished road
Thumbs up Problem solved

Yes that chage seems to do it,
It works smoothly now

Thank You Barnes
gysgysco is offline  
Old 12-05-2008, 06:43 PM   #9
Customer
 
Join Date: May 2008
Posts: 68
Rep Power: 20
SecondShoe is just really nice SecondShoe is just really nice
Default

post deleted by the author

Last edited by SecondShoe; 12-06-2008 at 02:24 PM.
SecondShoe is offline  
Old 12-06-2008, 01:36 AM   #10
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Extra fields are only for the view listing file. If it is showing on viewmember then you used it as an extra registration field which is a totally different settings.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra field Child drop down list not showing hel68c Technical Support 15 09-01-2008 12:21 PM
Listing extra field cardenas Modules / Plugins / Modifications 6 08-26-2008 05:44 AM


All times are GMT -4. The time now is 03:44 AM.


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