2011-07-25, 07:52 AM
(2011-07-18, 03:30 PM)pavemen Wrote: right now, you cant as the plugin inserts the images on the fly into the forum descriptions. it would take some code edits to not add them. basically the edit would be to check if the $forum['parentlist'] contains two or more commas.
In the parentlist field, categories contain no commas, main forums contain one comma (forum id and category id), subforums contain two or more (subforum id, parent id, category id)
if you are familiar with PHP, you can edit the function that adds the icon and wrap the code in it with
$parentlist = explode(",", $forum['parentlist']); if(count($parentlist) <=2) { //exisitng code goes in here }
I didn't found the code above. I sorted this commenting out the img tag created:
Quote:function mybbpublisher_addicon($forum)
{...
$forum['description'] = '<!-- img src="'.$mybb->settings['mybbpublisher_tw_icon'].'" alt="'.$lang->mybbpublisher_tw_icon_alt.'"--> '.$forum['description'];
}