 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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?
|
| |
October 24th, 2010, 06:33 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| |
October 26th, 2010, 06:10 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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.
Last edited by Chuck S; October 26th, 2010 at 06:20 PM.
|
| |
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. |
| |
October 27th, 2010, 08:03 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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. |
| |
October 27th, 2010, 07:59 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
October 27th, 2010, 08:09 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,937
|
Yeah tried a few other things thats the only thing that works.
|
| |
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.
|
| |
November 14th, 2010, 07:42 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
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. | |