|
|
#1 |
|
Junior Member
Join Date: Feb 2009
Posts: 18
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 4,248
Rep Power: 103 ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Mar 2008
Posts: 886
Rep Power: 23 ![]() |
This is an old problem because two lots of amps are actually being stored in the database (&) 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). |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2009
Posts: 18
Rep Power: 2 ![]() |
@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. |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Mar 2008
Posts: 886
Rep Power: 23 ![]() |
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 |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2009
Posts: 18
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
#7 |
|
Member
Join Date: Jun 2008
Posts: 67
Rep Power: 5 ![]() |
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. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |