Topic: [extern.php] Setting up links truncation from the url
Hi,
I've made a little modification in extern.php so as to get the possibility to modify the length of the links truncation. As I thought it was a missing feature in that file, I decided to share it. It's very simple and it can be, according to me, really helpfull.
Well, here is the modification : open your extern.php and apply this :
#
# Line 103
#
// The length at which topic subjects will be truncated (for HTML output)
$max_subject_length = 30;
#
# Replace with :
#
// The length at which topic subjects will be truncated (for HTML output)
$max_subject_length = ( isset($_GET['length']) && is_numeric($_GET['length']) ) ? intval($_GET['length']) : 30;
You can now use the variable length in the called url so as to change the subjects length.
For example : get the last 5 posts of all forums and cut subjects after 50 characters :
That's all ! As I said : very simple ! And I think it should be present in the default extern.php
SamRay1024
Ps : please forgive me if my english isn't good. I'm french...