Back to vBulletin 3.8 Add-ons

Update: Default Pre-selected Post Icon: Now from Parent ID
Mod Version: 1.00, by jim doodle

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 3
Released: 11 Jan 2011 Last Update: Never Downloads: 0
Not Supported Uses Plugins Re-usable Code  

This is just a little update for the Default Pre-selected Post Icon

Works in 3.8.6

It's been a while since any one used this mod by the looks of things, I've updated it a little to work with multiple forums where adding each forum as a separate 'If' statement is unthinkable.

Instead i've exploded the string of parantlist which contains a strong of parent forum IDs into an array, and made a conditional from there:

PHP Code:
$newparentarrayexplode(','$foruminfo[parentlist]);

if (
in_array(146$newparentarray)) {
    
$newpost['iconid'] = '18'
}
else if (
in_array(147$newparentarray)) {
    
$newpost['iconid'] = '19'

And a little edit on the hook location it is "newthread_form_start" not forum.

Download

No files for download.

Supporters / CoAuthors

  • JJR512

Similar Mods

Default Pre-selected Post Icon vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024