« change shortname lengthSocial Bookmarks »

Allowing Longer URLs for Permalinks

Leave a comment »

As of now, b2evo cuts off long urls for permalinks. Here is the hack to make them loooooonnnnnnnger. Tested in version 2.4. Credits go to astonishme for the original hack for version v0.9.1.0 and to ¥åßßå for her tips.

1) Enter your MYSQL database and review table evo_items__item. Here you’ll need to edit the field post_urltitle, changing the length/values from 50 to 250.

2) Next you’ll need to edit file inc/items/views/_item_expert.form.php at approximately line 219, changing the $field_maxlength from 50 to 250.

Code:

T_('("slug" to be used in permalinks)'), $field_maxlength = 50 ) ;

3) Finally you’ll need to edit file inc/items/model/_item.funcs.php at approximately line 134 changing the number 40 to 250.

Code:

$urlbase = substr( $matches[1], 0, 40 );

Done!


No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
:!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( :'( |-| :>> :yes: ;D :P :)) 88| :. :no: XX( :lalala: :crazy: >:XX
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

User tools

Who's Online?

  • Guest Users: 6

XML Feeds