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

Reply
 
Thread Tools
Nicer Greeting On NavBar Details »»
Nicer Greeting On NavBar
Version: 1.01, by sabret00the sabret00the is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-16-2005 Last Update: 11-17-2005 Installs: 80
Uses Plugins Template Edits
 
No support by the author.

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 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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-18-2005, 01:48 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NuclioN
Call to undefined function bcadd() error
same error here
Reply With Quote
  #23  
Old 11-18-2005, 01:58 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems sabe has made a typo

Try replacing that variable that christianb reported and see if that may fix your error - As for a call to an undefined function, not sure how that could be corrected :ermm:

Chris
Reply With Quote
  #24  
Old 11-18-2005, 08:53 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christianb
One thing that doesn't make sense to me...

PHP Code:
$ng_tz_serveroffset $vbulletin->options['timeoffset'];
$ng_tz_useroffset $vbulletin->userinfo['timezoneoffset'];

$ng_hour date('G');
$ng_now bcadd($ng_hour$ng_serveroffset);
$ng_result bcadd($ng_now$ng_tz_useroffset); 
in the first line of code: $ng_tz_serveroffset
in the fourth (or fifth depending on if you count the blank line): $ng_serveroffset
big typo, that's that's giving evryone problems, oops. i'll upload a fixed version.
Reply With Quote
  #25  
Old 11-18-2005, 08:55 AM
Xzyte Xzyte is offline
 
Join Date: Nov 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work, installed nice, works on the forum but now it doesn't show any greating in vBa portal.
Reply With Quote
  #26  
Old 11-18-2005, 09:00 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xzyte
Great work, installed nice, works on the forum but now it doesn't show any greating in vBa portal.
not sure why that'd happen, it works across several directories on my localhost, though it's untested above the forums directory.
Reply With Quote
  #27  
Old 11-18-2005, 09:08 AM
Xzyte Xzyte is offline
 
Join Date: Nov 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
not sure why that'd happen, it works across several directories on my localhost, though it's untested above the forums directory.
Thank you for your fast reply. I will have a look at the vBa templates later tonight, maybe I can find the variable to replace there.
Reply With Quote
  #28  
Old 11-18-2005, 09:42 AM
Vizionz Vizionz is offline
 
Join Date: Jul 2003
Location: Chicago
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tell me when you upload a fixed file cause i sytill getting the
Fatal error: Call to undefined function: bcadd() in global.php(356) : eval()'d code on line 49
Reply With Quote
  #29  
Old 11-18-2005, 09:50 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vizionz
tell me when you upload a fixed file cause i sytill getting the
Fatal error: Call to undefined function: bcadd() in global.php(356) : eval()'d code on line 49
the uploaded file is up. but i'll see if i can get one of the higher powers to take a look at this.
Reply With Quote
  #30  
Old 11-18-2005, 09:59 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I get a chance this morning, I may break the code and see what I can do.

PHP Code:
<phrase name="ng_goodevening"><![CDATA[Good Evening,]]></phrase
Should have a space after Evening,

PHP Code:
<phrase name="ng_goodevening"><![CDATA[Good Evening, ]]></phrase
Also, would something like this work?
PHP Code:
if ($ng_result 18){
    if (
$ng_result 12) {
        
$ng_greeting "<strong>" $vbphrase[ng_goodmorning] . " " $vbulletin->userinfo[username] . ".</strong>";
    }
    else {
        
$ng_greeting "<strong>" $vbphrase[ng_goodafternoon] . " " $vbulletin->userinfo[username] . ".</strong>";
    }
else {
    
$ng_greeting "<strong>" $vbphrase[ng_goodevening] . " " $vbulletin->userinfo[username] . ".</strong>";

I just woke up about 30 mins ago, so please bare with me :P
Reply With Quote
  #31  
Old 11-18-2005, 03:04 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this installed fine, but no matter what time it is, all it says is good morning

Good Morning, Ice.
You last visited: Today at 12:02 PM
Private Messages: Unread 0, Total 545.
Reply With Quote
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 03:51 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.05008 seconds
  • Memory Usage 2,325KB
  • 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
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete