Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Daily Doodle by BOP5 (VB4 & VB3) Details »»
Daily Doodle by BOP5 (VB4 & VB3)
Version: 1.1, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.1.10 Rating:
Released: 07-29-2012 Last Update: 07-30-2012 Installs: 38
Supported Uses Plugins Auto-Templates
Translations  

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!

Download Now

File Type: zip Daily Doodle by BOP5 (v1.0).zip (4.6 KB, 44 views)
File Type: zip Daily Doodle by BOP5 (v1.1).zip (5.2 KB, 115 views)

Screenshots

File Type: jpg daily-doodle-settings.jpg (105.9 KB, 0 views)
File Type: jpg juot-doodles-demo-vb3.jpg (100.1 KB, 0 views)
File Type: jpg juot-doodles-demo-vb4.jpg (89.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
nacaruncr, sweetpotato

Comments
  #12  
Old 07-31-2012, 06:34 AM
autoescala autoescala is offline
 
Join Date: Oct 2011
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod
Reply With Quote
  #13  
Old 07-31-2012, 11:54 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 07-31-2012, 02:29 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 07-31-2012, 03:11 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested 1.1 on vB 4.2 and it works perfectly.

Thanks!
Reply With Quote
  #16  
Old 07-31-2012, 05:16 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 07-31-2012, 06:50 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
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.
Reply With Quote
  #18  
Old 08-01-2012, 12:58 AM
Trek Trek is offline
 
Join Date: Sep 2003
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks really sweet, now... I just need more logos! hehe
Reply With Quote
Благодарность от:
ForceHSS
  #19  
Old 08-02-2012, 04:12 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #20  
Old 08-02-2012, 05:02 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #21  
Old 08-02-2012, 05:07 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
nacaruncr
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10240 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete