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
goindex Offline
Junior Member
**
Posts: 23
Joined: Jan 2008
Post: #2
RE: Strip Tags from the Forum Jump listbox
This help me a lot... thank's !

My Site | My Posts | My Profil | My Favorites Plugins
02-09-2008 05:09 PM
Find all posts by this user
blueparukia Offline
Junior Member
**
Posts: 35
Joined: Jan 2008
Post: #3
RE: Strip Tags from the Forum Jump listbox
Nice, hoepfully it shall be fixed in 1.4
02-09-2008 06:44 PM
Find all posts by this user
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #4
RE: Strip Tags from the Forum Jump listbox
The code works perfect for jumpbox, but the titelline in browser shows up the html code of image. Is there a way to change this ?

Tia
TriTop
04-22-2008 09:46 PM
Find all posts by this user
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: Strip Tags from the Forum Jump listbox
^ I updated the first post (do additional code edits for forumdisplay.php)

My Blog
04-23-2008 06:07 PM
Find all posts by this user
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #6
RE: RE: Strip Tags from the Forum Jump listbox
Great! Thanks a lot for your proficient support!

Best regards
TriTop
04-23-2008 06:38 PM
Find all posts by this user

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: