Back to vBulletin 3.0 Add-Ons

Posticons exlusive to forums. NO STYLE editing!!!
Mod Version: 0.1, by tehcake

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 3
Released: 19 May 2005 Last Update: Never Downloads: 0
Not Supported DB Changes Code Changes Additional Files Is in Beta Stage  

This has been done before, but I've yet to see it released here. I was desperate to have this for my forums which has a lot of posticons.

This hack allows you to make posticons useable in only forums you specify. I'm no PHP expert, and I find it amazing how I pulled this off (Had a little help from someone to get it working correctly.), so you won't be able to set the settings through admincp yet. Instead, you have to manually do some changse in your MySQL database for each posticon.

Step 1 MySQL
First, you'll have to go to the icon table in your MySQL database. Create a field called iconforums in the table. Then edit each posticon (phpMyAdmin you'll have to click on the BROWSE tab in the table to edit the fields.), add the forumids to the iconforums field, seperating each forumid with only a comma.

Step 2
Now you'll have to edit your includes/functions_newpost.php.
FIND
Code:
		SELECT iconid, iconpath, title
REPLACE WITH
Code:
		SELECT iconid, iconpath, title, iconforums

FIND
Code:
	while ($icon = $DB_site->fetch_array($icons))
	{
ADD BELOW
Code:
	$forumid = $foruminfo[forumid];
		$forums = explode(',',$icon[iconforums]);
		if (in_array($forumid,$forums))
		{
FIND
Code:
			eval('$posticonbits .= "' . fetch_template('posticonbit') . '";');
ADD BELOW
Code:
}
FINISH! Enjoy you're cleaner forums.

Download

No files for download.

Screenshots

     


vblts.ru supports vBulletin®, 2022-2024