it turns the author names in the edit news page into links,
when you click on an author's name - it will sort the news by
his name and will show you all his latest posts!
Pretty useful!
This is how you do it:
Open inc/mod/editnews.mdu
Find:
- Code: Select all
$entries .= $my_cat.'<td height="18" '.$bg.'>'.$row['author'].'
Replace with:
- Code: Select all
$entries .= $my_cat.'<td height="18" '.$bg.'><a href="?mod=editnews&author='.$row['author'].'">'.$row['author'].'</a>
Edits
Here are some edits for that page you might
wanna use:
If you want to make the edit new page show more than 21 posts
automaticly just look for:
- Code: Select all
$news_per_page = 21;
And change it to any number you would like.
If you have posts with long titles, you might be annoyed if it's
cutting too early so you can't see the rest of the title, here
is how you make it longer (there is a space):
Find:
- Code: Select all
if (strlen($row['title']) > 30){
$row['title'] = substr($row['title'], 0, 26).'...';
Now just change the numbers:
30 - When the number of characters in the title is bigger than that
26 - it will cut the title to have that number of characters
Another great ways to enhance the edit page and make it
easier for us to find posts and stuff!
