Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Strip Tags from the Forum Jump listbox
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #1
Strip Tags from the Forum Jump listbox
It's a little interesting - MyBB allows you to put HTML in forum names.  It's all good and nice - until you notice the forum jump listbox is erm, a little stuffy...

This is an extremely simple mod, which will fix up the forum jump listbox.

In /inc/functions.php,
Find:

PHP Code:
$forum['name'] = htmlspecialchars_uni($forum['name']);

Replace with:

PHP Code:
$forum['name'] = htmlspecialchars_uni(strip_tags($forum['name']));


In /forumdisplay.php,
Find:

PHP Code:
eval("\$forums = \"".$templates->get("forumdisplay")."\";");

Add before:

PHP Code:
$foruminfo['name'] = strip_tags($foruminfo['name']);


My Blog
(This post was last modified: 04-23-2008 06:07 PM by ZiNgA BuRgA.)
02-01-2008 07:01 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
Strip Tags from the Forum Jump listbox - ZiNgA BuRgA - 02-01-2008 07:01 PM

 Standard Tools
Forum Jump: