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)

Vizionz 11-18-2005 01:48 AM

Quote:

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

same error here

Chris M 11-18-2005 01:58 AM

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

sabret00the 11-18-2005 08:53 AM

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.

Xzyte 11-18-2005 08:55 AM

Great work, installed nice, works on the forum but now it doesn't show any greating in vBa portal.

sabret00the 11-18-2005 09:00 AM

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.

Xzyte 11-18-2005 09:08 AM

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.

Vizionz 11-18-2005 09:42 AM

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

sabret00the 11-18-2005 09:50 AM

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.

davidw 11-18-2005 09:59 AM

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

Keyser S?ze 11-18-2005 03:04 PM

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.


All times are GMT. The time now is 05:43 PM.

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.01385 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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