Support Forums

Characters in title and description

This is a discussion on Characters in title and description within the Technical Support forums, part of the Technical Support Forums category; I have noticed that when someone uses commas in the ad title I do not get a proper url. 2000-okamoto-acc-32-80dxnc-surface-grind ...


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

Reply
 
Thread Tools Display Modes
Old 12-04-2011, 12:23 PM   #1
Customer
 
 
Join Date: Sep 2008
Location: Chandler, Arizona
Posts: 7
Rep Power: 0
chippie is on a distinguished road
Default Characters in title and description

I have noticed that when someone uses commas in the ad title I do not get a proper url.

2000-okamoto-acc-32-80dxnc-surface-grinder,-horizontal-spindle.html

Also; if I have the < less than sign in the description it cuts off the rest of the description after I save it.

For example: Power Output: <1 milliwatt everything after the < is not saved.

Is there a way that I can allow the comma in the description but strip it out when in creates the url and also allow the less than sign in the description?

Thanks

Chippie


V4.2.3 Developer

Sigma Navy

www.MachineryClassifieds.com
chippie is offline   Reply With Quote
Old 12-04-2011, 01:43 PM   #2
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,416
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

These are two completely separate items.

URI's (URL's) do not allow the use of a comma in them. This is one of several characters with special meanings assigned to them within a URI that would be interpreted to do something different as in a scheme.

As far as the description goes, that may be caused by the "html allowed" settings. You might try putting just the "<" (without the quotes) in your html allowed entities, but I don't know if that will work or not. Otherwise, you may need to use the HTML equivalent "<".

On a side note, I noticed that your page nav table for pagination is too small, therefore when you do a search for all of your listings, the pagination display is messed up.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 12-04-2011, 06:06 PM   #3
Customer
 
 
Join Date: Sep 2008
Location: Chandler, Arizona
Posts: 7
Rep Power: 0
chippie is on a distinguished road
Default

Quote:
Originally Posted by Mike-N-Tosh
These are two completely separate items.

URI's (URL's) do not allow the use of a comma in them. This is one of several characters with special meanings assigned to them within a URI that would be interpreted to do something different as in a scheme.
Is there a way of automatically stripping disallowed characters out of the title? A user would not know why the link is not working after they posted the ad.



Quote:
Originally Posted by Mike-N-Tosh
As far as the description goes, that may be caused by the "html allowed" settings. You might try putting just the "<" (without the quotes) in your html allowed entities, but I don't know if that will work or not. Otherwise, you may need to use the HTML equivalent "<".

On a side note, I noticed that your page nav table for pagination is too small, therefore when you do a search for all of your listings, the pagination display is messed up.
I was able to add the < into the allowed entities and use the same in the description and that worked until I can figure a workaround.

I fixed the pagination display. It was 200px wide so I changed it to 300. Thanks for the heads up on that.

Regards

Chippie
chippie is offline   Reply With Quote
Old 12-05-2011, 11:48 AM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,198
Rep Power: 70
John Snyder is a jewel in the rough
Default

By any chance did I work on your seo module before? If I'm not mistaken I had to modify it. If this is the case submit a support ticket I'll get you sorted out.

As for the < and > Its difficult to catch because if you were to allow HTML and these are not encoded, it will be interpreted as HTML and if you don't close them it will strip out the content following < until it reaches >.

Your only choice is to have them use "Less than" or < or use a more powerful HTML processor that cleans up invalid HTML and removes invalid/not allowed HTML.

You can modify includes/classes/kernel/Filter.php to use something like HTMLPurifier to get finer control over whats allowed and what isn't, as well as cleaner HTML. I plan on including it or at least have some built in support for it in the next release.

I have done this already, but its configuration still needs a bit of work, and until that's finished you'd have to make the custom definitions of what is allowed/not allowed via a core file. If you are interested let me know.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Character title: rename to characters used FlyAgain Templates, HTML, CSS, and Design Help 2 02-06-2010 07:37 PM
Description meta tag cut off after 50 characters markstanden Site Marketing 4 01-09-2010 07:23 AM
How can I increase the number of characters within the Ad' title? michael Technical Support 5 07-27-2009 07:12 PM
New Listings Title Characters not Displaying Correctly shanedawg Technical Support 6 04-02-2009 07:22 AM


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


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