Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 04-01-2009, 02:54 PM   #1
Junior Member
 
Join Date: Feb 2009
Posts: 18
Rep Power: 2
shanedawg is on a distinguished road
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, 9 views)
__________________
Shane
v4.1.2 Developer - Nu Style 4.1x Template
East North Carolina Classifieds
shanedawg is offline   Reply With Quote
Old 04-01-2009, 03:04 PM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,248
Rep Power: 103
Lhotch is just really niceLhotch is just really nice
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.
(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
Lhotch is offline   Reply With Quote
Old 04-01-2009, 03:54 PM   #3
Moderator
 
 
Join Date: Mar 2008
Posts: 886
Rep Power: 23
seymourjames has a spectacular aura about
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).
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 04-01-2009, 04:13 PM   #4
Junior Member
 
Join Date: Feb 2009
Posts: 18
Rep Power: 2
shanedawg is on a distinguished road
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.2 Developer - Nu Style 4.1x Template
East North Carolina Classifieds
shanedawg is offline   Reply With Quote
Old 04-01-2009, 04:17 PM   #5
Moderator
 
 
Join Date: Mar 2008
Posts: 886
Rep Power: 23
seymourjames has a spectacular aura about
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
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 04-01-2009, 04:45 PM   #6
Junior Member
 
Join Date: Feb 2009
Posts: 18
Rep Power: 2
shanedawg is on a distinguished road
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.2 Developer - Nu Style 4.1x Template
East North Carolina Classifieds
shanedawg is offline   Reply With Quote
Old 04-02-2009, 06:22 AM   #7
Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 67
Rep Power: 5
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
__________________
Using Version 4.0.9 Developer & TemplateCodes Interface. Custom Mods by TemplateCodes, Moffo, and LHotch.
Bronxgodzilla is offline   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
Special characters error in new listings crystal v4 Questions & Support 8 06-05-2008 04:31 AM
Listings: Title Field Length go3matix v4 Questions & Support 1 05-06-2008 05:15 AM
Displaying merchant's company name on browsed listings cooldeals v3.1 Questions & Support 16 06-23-2007 08:12 PM
Number of Characters in Title and Desc pbraz v3.1 Questions & Support 1 02-06-2007 08:50 AM
Displaying extra field in Search and category listings Bucketman v3.0 Questions & Support 3 04-26-2006 09:48 AM


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


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