Bug fix, tags mod for sNews, version 2
Feb 18th, 2009 at 6:53 am
filed under: sNews CMS / Hacks & Mods
filed under: sNews CMS / Hacks & Mods
Comments (0)
This is a bug fix, within the function tagsearch, if the tag search returns no results, it will result in a closing div tag without an opening div. In theory, this likely would not happen because people would only be clicking on your auto-generated tags, however if they attempt to insert their own tag in the url, and that tag isn't found, this can result.
The fix is simple, as always... BACK-UP your snews.php file and work off of a copy, now within the function tagsearch, find and add the following opening div tag;
if (!$numrows) {
echo '<div><p>'.l('noresults').'
<strong>'.stripslashes($tags_query).'</strong>.</p>';
} else {
echo '<div id="tag_results"><p><strong>'.$numrows.'</strong> '.l('tagresultsfound').' <strong>'.
stripslashes($tags_query).'</strong>.</p>';
}
That's it, upload your modified snews.php file and you should be all set.
Comments
Commenting is closed at this time.
Categories
Recent Entries
Recent Comments
- Redbeard (I managed to get Vampire: The Masquerade - Bloodlines ...)
- Tina (Installed this today and working like a charm :) Thanks!)
- Tina (Thanks for this great mod :) Working on my site for quite a ...)
- konga (Hi Matt, if you plan to update it, please have a look into ...)
- David (Yo Matt, I have a problem, when I use this mod. ...)
- Dave (Have a Toshiba NB305. Win7 starter would not do screen ...)
- Daichisan (Howdy Matt, I dont really get it, whats ...)
- Matt (Mine is just customized further, that's all :) It just spits ...)
- Matt (David, Do you own or admin the server? Do you have exec ...)
Popular Entries
- Compact archives for sNews 1.7 (5/5)
- Light-weight related articles mod for sNews 1.7 (4.78/5)
- SEF / SEO search for your sNews website (4.75/5)
- 1024x600 netbook wallpapers of Evangeline Lilly (4.67/5)
- Gravatar mod for sNews 1.7 (4.67/5)
- An improved tag cloud for sNews 1.7 (4.67/5)
- Image / math hybrid captcha version 2, vastly improved (4.64/5)
- Related Articles mod for sNews CMS, public beta release (4.6/5)
- An easy mod to create custom break titles for your sNews articles (4.6/5)