PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   URL Question for SEO (http://www.photopost.com/forum/photopost-pro-how-do-i/144440-url-question-search-engine-optimization.html)

LissaE November 6th, 2010 12:54 AM

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

Chuck S November 6th, 2010 08:41 AM

Possibly try making the lines in the pp-inc.php file for the ppsafeurl function this

Code:

Content visible to verified customers only.

xtremetoonz November 6th, 2010 09:44 AM

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?

xtremetoonz November 6th, 2010 09:50 AM

actually i see why it does that now, but not sure i have the means to correct it lol.

Chuck S November 6th, 2010 10:07 AM

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

xtremetoonz November 6th, 2010 10:45 AM

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.

Chuck S November 6th, 2010 11:25 AM

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.

xtremetoonz November 6th, 2010 11:30 AM

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.

LissaE November 6th, 2010 02:00 PM

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 :)

Chuck S November 6th, 2010 07:08 PM

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.

LissaE November 6th, 2010 08:36 PM

Yeah....I didn't even think it was going to work LOL just tried it on a whim

Chuck S November 6th, 2010 09:53 PM

yeah quite strange you have to include the spaces but whatever works.

xtremetoonz November 7th, 2010 06:36 AM

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 :)

Chuck S November 7th, 2010 08:37 AM

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.


All times are GMT -5. The time now is 02:49 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97