vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Nicer Greeting On NavBar (https://vborg.vbsupport.ru/showthread.php?t=100993)

sabret00the 11-16-2005 10:00 PM

Nicer Greeting On NavBar
 
Ok i can't take too much credit for it, the original concept was by omgli3k back on the vb3 days i think and even then back at RC stages :o anyway as a thank you check out his site http://empathogen.net/

Onto the hack, this hack changes the greeting and it's all done automatically and sweetly. it takes your users timezone and gives a greeting dependant on that: "Good Morning, $username.", "Good Afternoon. $username." or "Good Evening, $username.".

shweet huh ;) lol

ok without further ado here you go.

upload as a product.

Thanks again to omgli3k for leading the way on this one :)

NuclioN 11-17-2005 10:01 AM

Not working :( It doesn't show up

davidw 11-17-2005 10:05 AM

I like this

* christianb clicks install

sabret00the 11-17-2005 10:11 AM

Quote:

Originally Posted by NuclioN
Not working :( It doesn't show up

uploaded the correct version :)

NuclioN 11-17-2005 10:36 AM

Call to undefined function bcadd() error

sabret00the 11-17-2005 10:41 AM

Quote:

Originally Posted by NuclioN
Call to undefined function bcadd() error

what version of php are you running?

because bcadd is a stock function

NuclioN 11-17-2005 10:46 AM

PHP Version 5.0.5

sabret00the 11-17-2005 10:56 AM

ouch at php5

ok could you try this

make a php file (that's just a text file with a .php extention instead) with the contents being this
PHP Code:

<php

$ng_hour 
date('G');
$ng_now bcadd($ng_hour4);
$ng_result bcadd($ng_now5); 

?> 

upload it and run it and tell me if you still get the undefined function error please.

edit: heh i just noticed i'm running 5.0.4 on my localhost and it works there :(

Rickie3 11-17-2005 11:50 AM

have you got a screenshot? will install this later thanx

SB2002 11-17-2005 02:14 PM

Great hack, used to use this on my old VB3.0.1 way back when.

However, I found that i had to change a line in the code to keep the font smaller on the navbar. I changed this

HTML Code:

<div style="padding: 0.5em;" nowrap="nowrap">
to this

HTML Code:

<div class="smallfont">
this was in VB 3.5.1 I dunno if it's because of another hack I already have installed or not, but using the origional code blew out the small font and made it normal sized.


All times are GMT. The time now is 12:51 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.01389 seconds
  • Memory Usage 1,736KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete