Support Forums

New Listings Title Characters not Displaying Correctly

This is a discussion on New Listings Title Characters not Displaying Correctly within the Technical Support forums, part of the Technical Support Forums category; Hi all. I'm sure there is an easy fix for this. When someone tries to use " or & in ...


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 04-01-2009, 02:54 PM   #1
Member
 
Join Date: Feb 2009
Posts: 53
Rep Power: 12
shanedawg is just really nice shanedawg is just really nice
Default New Listings Title Characters not Displaying Correctly

Hi all.

I'm sure there is an easy fix for this. When someone tries to use " or & in their title of their listing, those characters are followed by some sort of error. For example

& or "quot;

However, if I click on the ad, everything shows just fine on the actual ad.

See the attached picture of one such listing. I can correct this manually by retyping their title as an admin.

Any help would be appreciated.
Attached Images
File Type: jpg new listing character issue.JPG (8.1 KB, 12 views)
__________________
Shane
v4.1.4 Developer - Fluid Style 4.1x Template
Eastern North Carolina Classifieds
shanedawg is offline  
Old 04-01-2009, 03:04 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,275
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Shane, what you are looking at there is actually a plugin and it would appear the plugin cant handle the special characters. Thats why it looks fine everywhere else.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-01-2009, 03:54 PM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,788
Rep Power: 67
seymourjames is a jewel in the rough
Default

This is an old problem because two lots of amps are actually being stored in the database (&amp) in the database when the data is being entered in the checkout process. They get cleaned up successfully in showlisitings and viewlistings but this also needs to be done in the plugins or indeed else where if you are using the listing titles.

The soltuion is to go into each of your plugins and replace

$tmp = array(
'id' => $row['id'],
'image'=> $image,
'title'=> $row['title'],
'price'=> FormatCurrency($row['price']),
);

with this


$tmp = array('id' => $row['id'] , 'image' => $image , 'title' => unhtmlentities($row['title']) , 'price' => FormatCurrency($row['price']));

The ampersand will then be rendered correctly. Make this change in each of the 3 plugins (latest, featured and random).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 04-01-2009, 04:13 PM   #4
Member
 
Join Date: Feb 2009
Posts: 53
Rep Power: 12
shanedawg is just really nice shanedawg is just really nice
Default

@seymourjames,

By "latest" did you mean function.new_listings.php?

If so, I tried your suggestion on that file and then tested it. The New Listings display still displays the faulty characters.
__________________
Shane
v4.1.4 Developer - Fluid Style 4.1x Template
Eastern North Carolina Classifieds
shanedawg is offline  
Old 04-01-2009, 04:17 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,788
Rep Power: 67
seymourjames is a jewel in the rough
Default

NO. I am talking about these files if you have them and are consequently affected.

function.css_feature_listings_horizontal.php
function.css_latest_listings_horizontal.php
function.css_random_listings_horizontal.php
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Old 04-01-2009, 04:45 PM   #6
Member
 
Join Date: Feb 2009
Posts: 53
Rep Power: 12
shanedawg is just really nice shanedawg is just really nice
Default It's fixed.

That did the trick!

Thank you for the help.

I've been impressed by the help on the forums and by Template Codes so far. I'm so glad I chose 68 Classifieds for my site.
__________________
Shane
v4.1.4 Developer - Fluid Style 4.1x Template
Eastern North Carolina Classifieds
shanedawg is offline  
Old 04-02-2009, 06:22 AM   #7
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 128
Rep Power: 12
Bronxgodzilla is on a distinguished road
Default

Thanks much David, for the heads up. I did notice this once in my testing & was going to bring it up...
I have modified my files for my opening soon, so now it is a never-to-be problem. Thanks Shane for spotting it.
Great show. & Great Support.

BarryG
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma
Bronxgodzilla is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special characters error in new listings crystal Technical Support 8 06-05-2008 04:31 AM
Listings: Title Field Length go3matix Technical Support 1 05-06-2008 05:15 AM


All times are GMT -4. The time now is 09:35 AM.


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