Back to vBulletin 4.x Add-ons

Daily Doodle by BOP5 (VB4 & VB3)
Mod Version: 1.1, by BirdOPrey5

vB Version: 4.1.10 Rating: (7 votes - 5.00 average) Installs: 38
Released: 30 Jul 2012 Last Update: 31 Jul 2012 Downloads: 122
Not Supported Uses Plugins Auto-Template Translations  

Brought to you by BirdOPrey5
http://www.qapla.com/mods/


Latest Version: 1.1

Most people know that Google changes its logo on specific days to honor holidays, birthdays, or other notable events. They call these temporary logos "Google Doodles." Many vBulletin Admins (including myself) like to mark special days by temporarily changing our forum logos as well. Usually this means manually changing the logo style variable on one or more styles and/or overwriting the file on our server with a new logo and having to remember to undo it the next day. Also if you're not up at midnight it is unlikely you actually cover the entire day.

This mod makes scheduling future and reocurring doodles much easier. You simply enter the date you want the doodle to appear, the URL or path to the special logo image, and an optional string of text if you want to override the mouseover text of the logo image as well. (This way say if a user brings the mouse pointer over a special logo the text can reflect the image, such as "Happy Valentine’s Day" for a Valentine’s Day logo.

If you specify the year, month, and day then Doodle will only appear that one time. If you omit the year and specify just a month and day the same doodle will show every year on that date- good for birthdays and holidays that always occur on the same date.

As of version 1.1 you can now specify a custom URL for the logo as well. Users clicking on your logo will be taken to this URL. (Optional)

Compatible with VB 3.7.x, 3.8.x, 4.1.10+, 4.2.x
VB 4.0.0 - VB 4.1.9 will require a manual file edit

Spoiler (click to open)


OK to enable compatibility with VB 4.0.0 - VB 4.1.9 you can manually add the required hook.

Instructions:

Open and Edit your /includes/class_core.php file

Find this block of code:

PHP Code:
        if (!isset(self::$template_usage[$template_name]))
        {
            
self::$template_usage[$template_name] = 1;
        }
        else
        {
            
self::$template_usage[$template_name]++;
        }

        return 
$template;
    }

Add the following line ABOVE the return $template; line.

PHP Code:
($hook vBulletinHook::fetch_hook('fetch_template_complete')) ? eval($hook) : false
So the final code will look like:

PHP Code:
        if (!isset(self::$template_usage[$template_name]))
        {
            
self::$template_usage[$template_name] = 1;
        }
        else
        {
            
self::$template_usage[$template_name]++;
        }

        (
$hook vBulletinHook::fetch_hook('fetch_template_complete')) ? eval($hook) : false;

        return 
$template;
    }

Note: In VB 4.0.8 on which I tested this the line number is Line 4207. This will vary in other VB versions.

The mod will then work in your VB versions. When you upgrade to 4.1.10 or above it will continue to work because the hook is already there.

NOTE- Do no attempt to edit the plugin on this hook, you will not be able to re-save it and you will need to re-install the mod if you try to save it to a different hook.

Close
to work.

In both versions the mod will attempt to override the default logo image stylevariable so if you have a custom style make sure it is using the default code to display the title image- most are.

There is no real demo because it would be unlikely you would see my site on a day I had a specific logo up, however in the screenshots you can see so custom logos I've used.

Obviously you will need to create your own custom doodles and upload them to somewhere before you can use them on your site.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download

File Type: %1$s Daily Doodle by BOP5 (v1.0).zip (4.6 KB, 46 downloads)
File Type: %1$s Daily Doodle by BOP5 (v1.1).zip (5.2 KB, 117 downloads)

Screenshots

Click image for larger version
Name:	daily-doodle-settings.jpg
Views:	310
Size:	105.9 KB
ID:	140198   Click image for larger version
Name:	juot-doodles-demo-vb3.jpg
Views:	614
Size:	100.1 KB
ID:	140199   Click image for larger version
Name:	juot-doodles-demo-vb4.jpg
Views:	336
Size:	89.8 KB
ID:	140200  

Similar Mods

Administrative and Maintenance Tools Duplicate IP Report by BOP5 (Checks for users sharing the same IP Addresses) VB3/VB4 vBulletin 4.x Add-ons
Private Messages Enhancements Force Users to Read PMs by BOP5 (VB4/VB3) vBulletin 4.x Add-ons
Miscellaneous Hacks Kindle Daily Deal Grabber by BOP5 (VB3) vBulletin 3.8 Add-ons
Private Messages Enhancements Force Users to Read PMs by BOP5 (VB3/VB4) vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024