1 ladyease Feb 10, 2008 03:16
3 yabba Feb 13, 2008 18:33
I have no idea if this will work any more ( it was written a tad ago ), but try this post ( [url=http://b2evo.astonishme.co.uk/allowing-longer-urls-for-permalinks]Allowing longer urls for permalinks[/url] ) it should at least point you in a direction that some could construe as approximately the right one ;)
¥
4 ladyease Feb 14, 2008 18:30
It was a great start... I was able to locate 2 of the 3 changes... but my post_urltitle is still short.
Does anyone know where the new location or the similar code is in 2.x?
Increase the allowed, overall URL length. One would think doing (1) and (2) would be all you need, but it's not. The overall URL (which includes the http://, the directory path AND the title) has it's length limited when the URL is validated. One needs to increase this value. To do this, edit b2evocore/_functions_bposts.php. Look around line 314 for the following and change the value from 100 to 500, as highlighted below:PHP:
$urlbase = substr( $matches[1], 0, <strong><span style="background-color:#ffa">500</strong></span> );
5 yabba Feb 15, 2008 13:58
inc/items/model/_item.funcs.php approx 132
// Normalize to 40 chars + a number
preg_match( '/^(.*?)((-|_)+([0-9]+))?$/', $urltitle, $matches );
$urlbase = substr( $matches[1], 0, 40 );
¥
6 ladyease Feb 16, 2008 02:14
Thank you much ¥åßßå for the tips... and to astonishme for the original hack.
I am using b2evolution 2.4.0-rc2. I posted all the adjustments here: http://www.beatease.com/web-design.php/b2evolution-hacks/allowing-longer-urls-for-permalinks
7 yabba Feb 16, 2008 18:37
an easy lady wrote:
As of now, b2evo cuts off long urls for permalinks. Here is the hack to make them loooooonnnnnnnger in version 2.x. Credits go to astonishme for the original hack for version v0.9.1.0 and to ¥åßßå for her tips.
You'll be disappointed to know that the last update to my chromosomes broke one of the X's :(
¥
8 ladyease Feb 16, 2008 21:02
¥åßßå wrote:
an easy lady wrote:
As of now, b2evo cuts off long urls for permalinks. Here is the hack to make them loooooonnnnnnnger in version 2.x. Credits go to astonishme for the original hack for version v0.9.1.0 and to ¥åßßå for her tips.
You'll be disappointed to know that the last update to my chromosomes broke one of the X's :(
¥
:lol:
9 mrdav Feb 17, 2008 00:01
It must be the Blonde Bimbo title. Perhaps a change to Blonde Bimbart would help. ;)
10 yabba Feb 17, 2008 11:00
:P
¥
BUMP
.. I don't normally bump my own topics... sorry.
Perhaps I didn't explain the problem well enough.
My blog uses the title as the url. That is all fine, however if the title is LONG, the url will get cut off. example
the title: This is the title and it is very long indeed
slug: this-is-the-title-and-it-is-ve
so now the url looks ridiculous with the word cut off: www.mydomain.com/blog1.php/this-is-the-title-and-it-is-ve
It seems the max is 40 characters... does anyone have an idea where to change and increase this number?
thanx... and again, sorry for bumping the topic.