SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Support / substr() function and short url?
Posted:  14 Oct 2007 10:37   Last Edited By: beles
Hristo,
I am using lastpost addon. (lastposts_addon.php)
But, forum topic url to long for my web design.
How to use (substr function) and cut this long url.
thanks.

Sorry for my bad english
Posted:  14 Oct 2007 15:46
The url anchor is generated by the get_topic_link(..) function in /code/skinning.php, which calls the trunc_url_title() function in /code/functions.php which has a parameter $maxchars by default set to 70 characters. You can make your own version by copying these and changing the maxchars, or you can change the $maxchars globally and all the urls will be truncated shorter.
Posted:  14 Oct 2007 15:57   Last Edited By: beles
thanks a lot