PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 24th, 2010, 04:30 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 38
Stop PhotoPost From Stripping Out Hyphens in SEO URLs?

Now that I've got SEO links on, I can see a problem with some of my links -- it strips out some hyphens in category names and photo titles, making the links less intelligible and SEO worthy. For example:

Quote:
http://www.passporter.com/photos/all-star-movies-main-hall/p8867-all-star-moviescinema-hall.html
In the above example, the original title was "All Star Movies - Cinema Hall" and this gets parsed to "all-star-moviescinema-hall"

Here's another example:

Quote:
http://www.passporter.com/photos/g583-animal-kingdom-lodgedining.html
In this example, the category name is "Animal Kingdom Lodge - Dining" but it gets parsed out to "animal-kingdom-lodgedining"

I located the function that creates these SEO urls (function ppurlsafe in pp-inc.php), but I can't see where it is effectively replacing " - " with ""

Can you help me out so I can try to change this?
Jennifer Marx is offline   Reply With Quote
Old October 24th, 2010, 06:33 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
Each word is a search term in the search engines thus the titles appear as you see them. I am sorry but we can not assist with code modification questions.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 26th, 2010, 03:04 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 38
Okay ... but wouldn't stripping out hyphens, which is part of the title of the category or the photo, be a bug? It makes the URLs not SEO friendly, which is the whole point. I found the code on my own. Should I file a bug report?

Last edited by Jennifer Marx; October 26th, 2010 at 03:23 PM.
Jennifer Marx is offline   Reply With Quote
Old October 26th, 2010, 06:10 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
well I will pass it to Michael but basically what we do is just grab all words in a catname or photo title and then insert hyphens between each word.

I would suspect maybe you do not have space between hyphens

All Star Movies-Cinema Hall

I know if you remove the hyphen then there is no space between that will be two words. Basically this is not really so much a bug but how Michael has chosen to handle titles with seo.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; October 26th, 2010 at 06:20 PM.
Chuck S is offline   Reply With Quote
Old October 26th, 2010, 07:17 PM   #5 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Its in the ppurlsafe() function in pp-inc.php; it would need to be modified to not remove the multiple dashes. Honestly, it would probably need to be rewritten since we use dashes to replace non-alphanumberic.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old October 27th, 2010, 08:03 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
Well the issue is the empty spaces and hyphen

Example

All Star Movies - Cinema Hall

That is written as

all-star-moviescinema-hall.html

Now if the title is this

All Star Movies-Cinema Hall

then it is correctly written like this

all-star-movies-cinema-hall.html

So really the thing it has a problem with is the use of a hyphen with spaces on either.

There is a more elegant way of redoing the regex I am sure but adding this line as a test in the ppurlsafe function in pp-inc.php seemed to work for me on a test title

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2010, 07:16 PM   #7 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Sure, that would work, as its replacing what would become --- reduced to none to 1 that wouldnt change.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old October 27th, 2010, 07:59 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
yeah well in the end the space hyphen space becomes nothing so yeah the only thing I have found that works is that explicit str_replace. Kinda the same thing I do for those umlates etc
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2010, 08:09 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
Yeah tried a few other things thats the only thing that works.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 14th, 2010, 05:24 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 82
I`ve got the same, and a similar, Problem.

"Photo-Title" becomes "PhotoTitle".
Will the following Code work in pp-inc to get "-" into a "_" ?
Code:
Content visible to verified customers only.
I`ve got some more Problems with "," and ":" in Titels. They seem to be changed in "2c" or something strange ?

Best Regards
Darwin

Last edited by Darwin; November 14th, 2010 at 05:29 PM.
Darwin is offline   Reply With Quote
Old November 14th, 2010, 07:42 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,937
I would suggest something like post 6 to remove the hyphen and then the code will insert one.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Enable SEO urls TheComputerGuy ReviewPost How do I...? 5 April 19th, 2010 07:26 PM
SEO Urls for Reviewpost Hammer107 ReviewPost BETA 19 December 4th, 2009 09:35 AM
Can you SEO the urls? marc100 Classifieds Suggestions 1 April 6th, 2008 09:23 AM


All times are GMT -5. The time now is 11:42 PM.

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