vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forum Specific Post Icons (https://vborg.vbsupport.ru/showthread.php?t=101926)

hobbes747 11-29-2005 10:00 PM

Forum Specific Post Icons
 
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 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 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

Quote:

Originally Posted by jarod1981?
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

Quote:

Originally Posted by El_Muerte
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

Quote:

Originally Posted by jarod1981?
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.


All times are GMT. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02282 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete