The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mini-Calendar in Header by BOP5 (VB 4.x.x) Details »» | ||||||||||||||||||||||||||||||
Mini-Calendar in Header by BOP5 (VB 4.x.x)
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5
www.Qapla.com Live Demo: Mini-Calendar at Qapla.com This mod adds a small "mini-calendar" on the header of every page, next to the logo image. It uses the built in "ad location" called global_header1. If you use an ad in that spot (most people don't) you will need to move it prior to enabling this mod else it will not show. If the Calendar doesn't show and you're on a custom style it is likely the style does not have the ad location coded in. See post #15 in this thread for a fix There are settings but it is setup to work immediately after installing. Most settings should only be adjusted by advanced users. The font sizes and locations are setup for English day and month names- you may need to manually edit the headcalendar_bop5 template manually for it to look right in other languages. You can use it as a link to the default vBulletin calendar (default behavior) or not. Also you can choose to disable it in specific styles if need be. Finally you can choose whether it displays the date based off the server's timezone or the user's timezone. (Default is user's timezone.) New in Version 1.1 - Option to disable the display of the mini-calendar by usergroup. (Primary or secondary will work.) I don't anticipate there will be much further development on this mod, it was just a simple thing I put together for one of my forums I figured like sharing- it already does everything I can think it needs to do, but if you have a suggestion that adds to the value I will consider it. Each <div> has a unique id so you can use additional.css to make changes as needed. You can see the default calendar is "blue" on top. Various other alternative color options are included in the download (red, green, yellow, and more...) Tested as far back as VB 4.0.8 and as recent as 4.2.0 and expected to work on all 4.x versions. Please "Mark as Installed" if you use this. Donations Always Appreciated. :up: Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
TheLastSuperman |
Comments |
#42
|
|||
|
|||
Uninstalled- No support
|
Благодарность от: | ||
BirdOPrey5 |
#43
|
|||
|
|||
Joe, I have an update on this issue over at your place. Let me know where we'll be discussing this so neither of us have to play forum tag.
|
#44
|
|||
|
|||
Thanks!
How can i shows the months and days in italian language? In headcalendar_bop5 template i dont's see months and days names. Thanks Antonio EDIT Ok, i see this post https://vborg.vbsupport.ru/showpost....7&postcount=37 |
#45
|
|||
|
|||
i can't see calendar in my theme but i can see calendar on the other themes..
where can i add this code ? Code:
<div class="ad_global_header"> {vb:raw ad_location.global_header1} {vb:raw ad_location.global_header2} </div> Code:
<div id="pageWrapper"> <div id="topBar"> <div class="topBox"> <div class="topBoxLeft"><div class="topBoxRight"> <span>Audi T?rkiye Kul?b?'ne hoşgeldiniz. <vb:if condition="$show['member']"> {vb:raw bbuserinfo.username}!<vb:else />! Bu ilk ziyaretiniz mi?</vb:if></span> <div class="topBoxLinks"> <vb:if condition="$vboptions['enablefacebookconnect']"> <div id="fb_topbar<vb:if condition="$show['facebookuser']">_in</vb:if>"> <ul> {vb:raw facebook_header} </ul> </div> </vb:if> <vb:if condition="$vbulletin->options['display_social_icons']==1"> <div class="socialBox"> <vb:if condition="$vbulletin->options['twitter_account']"><a href="http://www.twitter.com/{vb:raw twitter_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-twitter.png" alt="Follow us on Twitter" /></a></vb:if> <vb:if condition="$vbulletin->options['facebook_account']"><a href="http://www.facebook.com/{vb:raw facebook_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-facebook.png" alt="Follow us on Facebook" /></a></vb:if> <vb:if condition="$vbulletin->options['youtube_account']"><a href="http://www.youtube.com/{vb:raw youtube_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-youtube.png" alt="Watch us on YouTube" /></a></vb:if> </div> </vb:if> <div class="topBarLinksWrap"> <vb:if condition="$vboptions['archiveenabled']"><a href="archive/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase archive}</a></vb:if> <a href="#" class="topRSS"><img src="{vb:stylevar imgdir_themedir}/iconRSS.gif" alt="RSS" /></a> </div> </div> </div></div> </div> <vb:if condition="$show['registerbutton']"> <a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow" id="clickRegister"><img src="{vb:stylevar imgdir_themedir}/clickRegister_{vb:stylevar left}.png" alt="{vb:rawphrase register}" /></a> </vb:if> </div> <div class="above_body"> <!-- closing tag is in template navbar --> <div id="header" class="floatcontainer doc_header"> <vb:if condition="$stylevar['titleimage']"><span class="logo"><a name="top" href="{vb:link forumhome}"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></span> <vb:if condition="$vbulletin->options['modern_slogan_enable']"> <span class="slogan">{vb:raw modern_slogan}</span> </vb:if> <vb:else /> </vb:if> <vb:if condition="$show['member']"> <div id="toplinks" class="toplinks"> <ul class="isuser"> <li><a href="login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}" onClick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li> <vb:if condition="$show['registerbutton']"> <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li> </vb:if> <li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li> <li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li> <vb:if condition="$notifications_total"> <li class="popupmenu notifications" id="notifications"> <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a> <ul class="popupbody popuphover"> {vb:raw notifications_menubits} </ul> </li> <vb:else /> <li class="popupmenu nonotifications" id="nonotifications"> <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a> <ul class="popupbody popuphover"> <li>{vb:rawphrase no_new_messages}</li> <vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if> </ul> </li> </vb:if> <li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> </ul> {vb:raw template_hook.header_userinfo} <vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment> </div> <vb:else /> <div id="loginBox"> <div class="loginBox"> <!-- login form --> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script> <form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onSubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})"> <ul> <li class="inputPad"><div class="loginBoxInput"><input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if> loginInput" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" /></div></li> <li class="inputPad"><div class="loginBoxInput"> <input type="password" class="loginInput" tabindex="102" name="vb_login_password" id="navbar_password" size="10" /> <input type="text" class="loginInput" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" /></div></li> <li class="submitPad"><input type="image" src="{vb:stylevar imgdir_themedir}/loginButton.gif" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" /></li> </ul> <div class="memberBottom"> <div class="memberLinks"> <a href="login.php?do=lostpw">Forgot password?</a><vb:if condition="$show['registerbutton']"> | <a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></vb:if> </div> <div class="rememberMe"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label></div> </div> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <script type="text/javascript"> YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); vB_XHTML_Ready.subscribe(function() { // YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus); YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur); YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint); YAHOO.util.Event.on('navbar_password', "blur", navbar_password); }); function navbar_username_focus(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>') { // textbox.value=''; textbox.style.color='{vb:stylevar input_color}'; } } function navbar_username_blur(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { // textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; textbox.style.color='{vb:stylevar shade_color}'; } } function navbar_password_hint(e) { // var textbox = YAHOO.util.Event.getTarget(e); YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none"); YAHOO.util.Dom.setStyle('navbar_password', "display", "inline"); YAHOO.util.Dom.get('navbar_password').focus(); } function navbar_password(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); } } </script> <!-- / login form --> </div> </div> </vb:if> </div> </div><!-- closing div for above_body --> <div id="contentMain"> <div class="contentTL"><div class="contentTR"><div class="contentBL"><div class="contentBR"> <div class="contentWrapper"> |
#46
|
|||
|
|||
Where does this pull the date format from? Is it built into the modification or does it pull it from the date format we have set in our settings?
We have n/j/Y (1/29/2013) and would like it if this calendar would use that. It would look like this: Tuesday 1/29/2013 No day in our format, but I would like to keep that. |
#47
|
||||
|
||||
Quote:
Quote:
Quote:
|
Благодарность от: | ||
Amaury |
#48
|
||||
|
||||
So I have this odd issue..
The Tab shows up great and with no problems under Internet Explorer but not under Firefox 20.0.1 release.. I checked all the settings and everything looks right. Also if it works for Internet Explorer I would imagine it is set correctly.. |
#49
|
||||
|
||||
By Tab I assume you mean calendar? Can you post a link to your site?
Do you see the calendar in firefox on the demo site? - http://www.qapla.com/mods/showthread.php/550 |
#50
|
||||
|
||||
Quote:
Darn I just realized it's my AdBlock that is stopping it from showing up in Firefox.. In "Easy List" was the problem as there are two lines that pop up that block this Calendar Tab.. ~318racing.org,~linuxforums.org##.ad_global_header and /tapatalkdetect.js Once I disabled both the tab appeared no problem.. |
#51
|
||||
|
||||
Thanks for posting the solution. :up:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|