Extra checkbox field not showing in listing

This is a discussion on Extra checkbox field not showing in listing within the v4 Questions & Support forums, part of the Help & Support 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 > Help & Support > v4 Questions & Support

 
LinkBack Thread Tools Display Modes
  #1  
Old 09-18-2008, 09:21 AM
Junior Member
 
Join Date: Sep 2008
Posts: 6
Rep Power: 0
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

Reply With Quote
  #2  
Old 09-18-2008, 09:39 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 09-18-2008, 02:51 PM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,323
Rep Power: 99
Default

I remember a bug like this before. What version are you running?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #4  
Old 09-18-2008, 03:23 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #5  
Old 09-18-2008, 03:36 PM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,323
Rep Power: 99
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #6  
Old 09-18-2008, 03:36 PM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,323
Rep Power: 99
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #7  
Old 09-18-2008, 03:39 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #8  
Old 09-19-2008, 04:33 AM
Junior Member
 
Join Date: Sep 2008
Posts: 6
Rep Power: 0
Thumbs up Problem solved

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

Thank You Barnes
Reply With Quote
  #9  
Old 12-05-2008, 06:43 PM
Member
 
Join Date: May 2008
Posts: 64
Rep Power: 4
Default

post deleted by the author

Last edited by SecondShoe; 12-06-2008 at 02:24 PM.
Reply With Quote
  #10  
Old 12-06-2008, 01:36 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,323
Rep Power: 99
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra field Child drop down list not showing hel68c v4 Questions & Support 15 09-01-2008 12:21 PM
Listing extra field cardenas v4 Modules / Modifications 6 08-26-2008 05:44 AM
Adding extra field to search.php... abkeller v3.1 Modules & Modifications 4 06-05-2007 01:15 AM
listing extra field value when it is an array? Mike-N-Tosh v3.1 Modules & Modifications 13 04-21-2007 10:31 AM
Extra Field numbers showing numerically GSP v3.0 Questions & Support 1 05-01-2006 06:36 PM


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


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22