vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Daily Doodle by BOP5 (VB4 & VB3) (https://vborg.vbsupport.ru/showthread.php?t=286101)

BirdOPrey5 07-29-2012 10:00 PM

Daily Doodle by BOP5 (VB4 & VB3)
 
1 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com


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 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. :up:
Nominate MOTM if you LOVE it! ;)

BirdOPrey5 07-30-2012 11:16 AM

Reserved.

Lustikus 07-30-2012 04:16 PM

does not work for me, also not in standard themes without any modification.

Quote:

07-30 | images/buttons/newbtn_middle.png

Nirjonadda 07-30-2012 04:48 PM

Excellent work on 4.1.10 !

BirdOPrey5 07-30-2012 04:57 PM

Quote:

Originally Posted by Lustikus (Post 2352800)
does not work for me, also not in standard themes without any modification.

If you're trying it on the Homepage in your profile, this URL loads a blank image or doesn't exist:

Code:

http://www.xo-forum.de/images/buttons/newbtn_middle.png
Link: http://www.xo-forum.de/images/buttons/newbtn_middle.png

If that's not the site you are trying it on, please give me the link and also paste into a [CODE] box everything in the Doodle Array box in settings.

RobbieZ 07-30-2012 07:28 PM

Excellent idea, rated and nominated!

nhawk 07-30-2012 07:37 PM

Excellent!

Could I suggest that you add an optional link to a calendar event to the logo replacement? If there's no optional link, the regular link stays on the logo. If there is, the calendar event would open.

That way people can click the logo to see what the deal is with that particular logo change.

BirdOPrey5 07-30-2012 07:40 PM

Cool idea... I will try to work this into a future version.

imported_dfmafia 07-30-2012 10:03 PM

I'm digging this mod. thanks!

BirdOPrey5 07-30-2012 10:52 PM

Sorry- my mistake on compatibility.

Compatible with VB 3.7.x, 3.8.x, 4.1.10+, 4.2.x
NOT COMPATIBLE WITH VB 4.0.0 - 4.1.9

Basically it works on VB 3.x, but if you have VB 4.x you need at least VB 4.1.10. The hook didn't exist before that.

autoescala 07-31-2012 06:34 AM

Excellent mod

BirdOPrey5 07-31-2012 11:54 AM

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.

BirdOPrey5 07-31-2012 02:29 PM

Released Version 1.1

Added option for 4th parameter - Specify URL of the link for the logo. Clicking on the logo will bring the user to this URL. OPTIONAL. If omitted the standard forumhome URL is used.

I am keeping Version 1.0 available for download as well as it is a little less complicated if you don't need the custom URL option.

Thank you to nhawk for some ideas on the code.

nhawk 07-31-2012 03:11 PM

Tested 1.1 on vB 4.2 and it works perfectly.

Thanks!

Mr_Running 07-31-2012 05:16 PM

Yeah, Looks good on 4.2.x

How about a control for max width, height and border...could come in handy when URL is used. :)

BirdOPrey5 07-31-2012 06:50 PM

Quote:

Originally Posted by Mr_Running (Post 2353097)
Yeah, Looks good on 4.2.x

How about a control for max width, height and border...could come in handy when URL is used. :)

of the logo? I don't see these options happening. You can edit/save the logo to be the height and width you want, even add a border if you wanted.

Trek 08-01-2012 12:58 AM

This looks really sweet, now... I just need more logos! hehe

Nirjonadda 08-02-2012 04:12 PM

How I can activate on how many day show on selected image?

Examples:

2012-11-13 | images/logos/BOP5sBirthdayLogo.png | Happy 34th Birthday BirdOPrey5!

This image show on 30 day but how i can do?

BirdOPrey5 08-02-2012 05:02 PM

If you're asking how to get 1 image to show for multiple days you just need to make an entry for each day-

Code:

2012-11-01 | images/logos/BOP5sBirthdayLogo.png | HappyNovember!
2012-11-02 | images/logos/BOP5sBirthdayLogo.png | HappyNovember!
2012-11-03 | images/logos/BOP5sBirthdayLogo.png | HappyNovember!
...
2012-11-30 | images/logos/BOP5sBirthdayLogo.png | HappyNovember!


Nirjonadda 08-02-2012 05:07 PM

So it not work with Start Date 2012-11-01 End Date 2012-11-30 ?

Examples:

2012-11-01 | images/logos/BOP5sBirthdayLogo.png | HappyNovember! | 2012-11-30

BirdOPrey5 08-02-2012 05:42 PM

No, it won't work that way.

Ziki 08-04-2012 04:58 PM

Great Job :)

nacaruncr 09-01-2012 09:58 AM

installed + tagged + motm :D

thanks and regards :D

ps: +1 in this idea:

Quote:

Originally Posted by Nirjonadda (Post 2353726)
So it not work with Start Date 2012-11-01 End Date 2012-11-30 ?

Examples:

2012-11-01 | images/logos/BOP5sBirthdayLogo.png | HappyNovember! | 2012-11-30


steeler7 09-25-2012 09:34 PM

Can this Mod work for multiple different logos?

I use 4 different logos since my forum represents 3 different sports teams. I would like to make each one change specific to their logo. Like a Hallowenn version for the baseball team logo for that forum/style and a halloween version for the football team logo for their forum/style.

Can I do that with this mod?

BirdOPrey5 09-27-2012 03:06 PM

No, it is only designed to work with one logo at a time.

Stefan118 10-11-2012 09:11 PM

Very handy mod!

However....
I tested it, and disabled it for all my styles exept te vB default style to test it.
All of the sudden in every style it was christmas for a while haha.

In my case te exeption of styles doesn't work.
Any ideas?

BirdOPrey5 10-12-2012 11:05 AM

Can you copy and paste here the text you have in the disable styles box?

I re-tested this on my demo sites and it's working just fine.

What VB version specifically are you using?

Stefan118 10-12-2012 01:53 PM

1 Attachment(s)
vB version 4.2.0 PL2
Using styles 1, 7, 8, 9 and 10
1 = mobile
7 and 8 are normal styles
9 is forum default style with customized layout
10 is vB default style

Screenshot of the complete overview.

BirdOPrey5 10-16-2012 02:38 PM

Very strange- I just don't know- possibly some other mod conflicting.

If you want to send me admin access via PM I will take a look, if not there is nothing else I could suggest at this point. Sorry.

Stefan118 12-15-2012 09:42 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2373455)
Very strange- I just don't know- possibly some other mod conflicting.

If you want to send me admin access via PM I will take a look, if not there is nothing else I could suggest at this point. Sorry.

Oeps, this one has slipped my attention.
I will send you a PM.

However, i have an other suggestion.
Would it be possible to create an array of dates a banner would be shown?
For example, my chrismas banner is from december 16 to december 26.
Now i have 10 lines with my chrismas banner.

BirdOPrey5 12-20-2012 11:45 AM

Haven't got a chance to look yet, sorry... Will try soon.

As for an array of dates anything is possible but it is a trade-off of being easy to use... will look into it though.

Stefan118 12-21-2012 02:12 AM

No hurry, my forum won't run away :)

thenashy 09-23-2013 09:46 PM

Can this be based on hours of the day, rather than days?

BirdOPrey5 09-24-2013 10:45 PM

Not without a lot of modification.


All times are GMT. The time now is 12:58 PM.

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.01177 seconds
  • Memory Usage 1,816KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete