SimplePortal

Development => Feature Requests => Topic started by: srinib on May 06, 2013, 02:39:46 PM

Title: Hyphen(-) should be accepted in Page ID
Post by: srinib on May 06, 2013, 02:39:46 PM
Why is Page ID not designed to handle hyphens(-)? My concern is related to SEO. Check my topic http://simpleportal.net/index.php?topic=12468.0

Can SP Team please consider this in their next version?
Title: Re: Hyphen(-) should be accepted in Page ID
Post by: [SiNaN] on May 06, 2013, 06:06:29 PM
It could be a good idea to allow them indeed. You can do that by making this change yourself:

Sources/PortalAdminPages.php

Code: (Find) [Select]
if (preg_match('~[^A-Za-z0-9_]+~', $_POST['namespace']) != 0)
Code: (Replace) [Select]
if (preg_match('~[^A-Za-z0-9_\-]+~', $_POST['namespace']) != 0)
Title: Re: Hyphen(-) should be accepted in Page ID
Post by: srinib on May 06, 2013, 11:48:22 PM
I just made the change and it worked. Thanks a lot.
SimplePortal 2.3.8 © 2008-2024, SimplePortal