 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
November 6th, 2010, 12:54 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2008
Posts: 123
| URL Question for SEO
I have my galleries named like the following:
Digital | Layouts
The seo is renaming them to:
g2-digital7c-layouts
My question is...I don't want the 7c in the url, I know it's converting the | character....is there a way to have it just strip out that character instead? So it looks like:
g2-digital-layouts
Thanx in advance
|
| |
November 6th, 2010, 08:41 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Possibly try making the lines in the pp-inc.php file for the ppsafeurl function this Code: Content visible to verified customers only.
|
| |
November 6th, 2010, 09:44 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Hey Chuck, this actually works quite well for me as I have a lot of ()[] in titles.
However, any reason if i were to add & to that list, that it wouldnt rewrite the url with a '-' or '_' between the other words?
i.e. : mr. & mrs. smith
without the change to the str1/str2 rewrites to:-mr26-mrssmith.html
with it, in the str1/str2 it gets rewritten to -mrmrssmith.html
Is there a reason it doesnt add a _ or a - for periods and the ampersands?
|
| |
November 6th, 2010, 09:50 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
actually i see why it does that now, but not sure i have the means to correct it lol.
|
| |
November 6th, 2010, 10:07 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
it only allows alpha numeric characters in the title
The change to the lines I posted above should remove | and I can add & to that
|
| |
November 6th, 2010, 10:45 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Ya, i added &, but it doesnt space properly after that. where there is an 'and' it should technically hyphenate, or underscore replace. no biggie i suppose.
|
| |
November 6th, 2010, 11:25 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Right but you probally did not do the replace right for what you want. Try this it might be more to your liking. Code: Content visible to verified customers only.
|
| |
November 6th, 2010, 11:30 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
hey chuck, that's what i tried and ended up with:
-mramp-3b-mrs-smith.html
from this:
-mr26amp-3b-mrs-smith.html
just to add, the original title is Mr. & Mrs. Smith
So i'd expect the periods would be removed and I'd be left with
-Mr-Mrs-Smith.html
---------
For SEO, we should really be dropping "an, the, and, a" and whatever articles search engines dont want to see.
Last edited by xtremetoonz; November 6th, 2010 at 12:03 PM.
|
| |
November 6th, 2010, 02:00 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Dec 2008
Posts: 123
|
Thanx for that Chuck, it took the 7c out of the url, but now there is no - between the words:
g2-digitallayouts
Is there something else I need to do to still have the dash in there?
I tried changing the code like you posted to xtremetoonz Quote:
$str1 = array('Ä', 'ä', 'Ü', 'ü', 'Ö', 'ö', 'ß', '(', ')', '[', ']', '|');
$str2 = array('Ae', 'ae', 'Ue', 'ue', 'Oe', 'oe', 'ss', '', '', '', '', '-');
| but nothing....maybe I am doing it wrong LOL
**edit, nm I tried putting a space either side of the | in the first string and it seems to have done the trick lol
Last edited by LissaE; November 6th, 2010 at 06:08 PM.
|
| |
November 6th, 2010, 07:08 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Interesting its probally doing the proper thing to begin with probally later on the space hyphen space is being stripped as a non alpha numeric character.
|
| |
November 6th, 2010, 08:36 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Dec 2008
Posts: 123
|
Yeah....I didn't even think it was going to work LOL just tried it on a whim
|
| |
November 6th, 2010, 09:53 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
yeah quite strange you have to include the spaces but whatever works.
|
| |
November 7th, 2010, 06:36 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jun 2002 Location: orlando
Posts: 186
|
Chuck is this something you can include on a "todo" list for future releases? I'd like to see any special characters stripped, or at least the ability to manage this from the admincp and add extras if needed? Thanks for trying |
| |
November 7th, 2010, 08:37 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well thats already on the todo list as we need to expand upon it for different languages etc etc
I have patched Michael's original function quite abit since 7.0 was released so we are looking at an expanded function.
|
| | |
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 | | | All times are GMT -5. The time now is 06:37 AM. | |