vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Integration with vBulletin - Live Clock & Date in Navbar (https://vborg.vbsupport.ru/showthread.php?t=202551)

Magnumutz 01-20-2009 10:00 PM

Live Clock & Date in Navbar
 
Please mark as "Installed" if you use this modification, thanks !

Okay, here's a little something i did for my forum, cuz i just wanted a place where to look for the right time.

See the attached screenshot for a demo.

Install instructions:

Edit the navbar template under Navigation / Breadcrumb Templates and search for:
PHP Code:

        <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
    </
div

Right under that, add:
PHP Code:

    <div class="smallfont">
    <
script type="text/javascript" language="javascript" src="clientscript/date_clock.js"></script>
    <
script type="text/javascript" language="javascript">dT();</script>
    </
div

In the same template search for:
PHP Code:

        <!-- / login form --> 

Right under that, add:
PHP Code:

        <div class="smallfont" align="center">
        <
script type="text/javascript" language="javascript" src="clientscript/date_clock.js"></script>
        <
script type="text/javascript" language="javascript">dT();</script>
        </
div

Upload date_clock.js to your clientscript folder.

That's it ;)

26th January: Added a 12 hour format package.
18th February: Updated Installation Instructions, fixed guest view alignment and moved the Bold version into the first post.


Please mark as "Installed" if you use this modification, thanks !

GSeybold 01-23-2009 01:59 AM

Hi Mag,

I can't find this.

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>

Not showing up in my navbar temp.

Can you advise?

Thanks so much

Gabby

Magnumutz 01-23-2009 06:24 AM

Well, that's probably cuz you have a custom template?
Could you provide me with a link to the style your trying to install on, your forum?
I will be more than happy to help you out.

Dingo14 01-23-2009 08:17 AM

try looking for just this bit <if condition="$show['pmwarning'] and you will see the rest

GSeybold 01-23-2009 10:29 PM

Hi Mag,
Thank you very much for your reply. I'm using the "Feeling Blue" design from here. I tried looking for the code on my default and I got the same error. I'm not tech savey so I'm sure it's something I'm doing wrong.

Thank Dingo. I'll go and try ths now.

Gabby


\
Quote:

Originally Posted by Magnumutz (Post 1721972)
Well, that's probably cuz you have a custom template?
Could you provide me with a link to the style your trying to install on, your forum?
I will be more than happy to help you out.


Magnumutz 01-24-2009 09:36 AM

I can't seem to find it GSeybold, could you please post a link?

elbais 02-04-2009 07:23 PM

good idea, thanks...

installed;)


All times are GMT. The time now is 02:42 AM.

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.01005 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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