PDA

View Full Version : Forum Specific Post Icons


hobbes747
11-29-2005, 10:00 PM
This hack will allow you to specify post icons that can only be used in certain forums.

To install, follow the instructions in the text file and import the product. There are two files that need to be edited.

To limit a post icon to a specific forum, edit that icon in the ACP, and change the forum id number to the number of the forum it will be used in.

Details
-------
1 Product XML
2 Files to Edit

The default value for all of the icons is forum id #0. The icons with a value of 0 will show up everywhere, including the forums with specific icons and private messages.

I did not code this to allow for an icon to be reused in more than one forum, unless it's in the set of general icons; you'll have to add it twice to allow it in more than one specific forum.


The 3.0 version is here (https://vborg.vbsupport.ru/showthread.php?t=40821) but it's not an official port, though Xenon said it was okay if I posted this.

This hack works well with the Filter Posts By Icon (https://vborg.vbsupport.ru/showthread.php?t=98978) hack.

First hack, be gentle. :nervous:

sensimilla
11-30-2005, 08:02 AM
great hack, thanks

El_Muerte
11-30-2005, 08:30 AM
Great was looking for this, too bad it's a code mod :(
Also, it might be easier to do this using post icons groups instead of single icons. This would save quite some admin time.

jarod1981?
11-30-2005, 08:31 AM
Hi all

In my admincp/image.php there isnt' this:

" . iif($vbulletin->GPC['table'] == 'avatar', "minimumposts = " . $vbulletin->GPC['minimumposts'] .",", '').
iif($vbulletin->GPC['table'] == 'smilie', "smilietext = '" . $db->escape_string($vbulletin->GPC['smilietext']) . "',", '')."

Where I can insert the phrase of Replace?

" . iif($vbulletin->GPC['table'] == 'avatar', "minimumposts = " . $vbulletin->GPC['minimumposts'] .",", '').
iif($vbulletin->GPC['table'] == 'smilie', "smilietext = '" . $db->escape_string($vbulletin->GPC['smilietext']) . "',", '').
iif($vbulletin->GPC['table'] == 'icon', "specialforumid = '" . $db->escape_string($vbulletin->GPC['specialforumid']) . "',", '')."


Bye

hobbes747
11-30-2005, 08:40 AM
Hi all

In my admincp/image.php there isnt' this:

Bye

What do you have on line 998 before editing the page?

hobbes747
11-30-2005, 09:12 AM
Great was looking for this, too bad it's a code mod :(
Also, it might be easier to do this using post icons groups instead of single icons. This would save quite some admin time.

Actually, that's above and beyond me right now. I'll see what I can do.

jarod1981?
11-30-2005, 12:38 PM
Hi Friends!

I have installed this Mods and modificated file .php but i don's see in the ACP the option for insert a Specific Post Icons!

How it's possible?

:ermm:

hobbes747
11-30-2005, 02:01 PM
Hi Friends!

I have installed this Mods and modificated file .php but i don's see in the ACP the option for insert a Specific Post Icons!

How it's possible?

:ermm:

ACP>Post Icons>Post Icon Manager>go into one of your categories where the icons are listed>Hit edit on one of the icons and it should look like my screen cap at that point.

Omega Prime
11-30-2005, 02:49 PM
I've yet to try this out, but I'm curious:

Does this allow more than 1 forum to be listed in the area for forum-specific places (such as forums with IDs of 1, 5, 22, .. )? Your post mentions that it works with general icons, but I dunno if it works like I just mentioned or not.

hobbes747
11-30-2005, 03:17 PM
At the moment, no.

Stifler
11-30-2005, 06:21 PM
very awesome
/install
thanks!

Snake
12-01-2005, 03:17 PM
Wow great hack...

sensimilla
02-20-2006, 07:03 AM
great! I was just in need of those!