PDA


View Full Version : Navbar Greeting Tweak


Thanatos
05-16-2004, 02:37 PM
Greetings,

I use a navbar greeting tweak on my forums, where instead of 'Welcome User' it says "good morning/afternoon/evening User'.

Once I installed the vbacms, for some reason this hack doesn't work on the cms navbar, but still works in the forum navbar.

Since the cms just references the navbar, I don't quite get this. Maybe someone can look at the hack and give me an idea why?

On the cms navbar, it just shows completely blank. Also, if I Revert the navar to the standard welcome, it once again works for both the cms and the forums navbars.

Included is the hack text. I didn't write it, but I can't think of any way to show what I am doing except by either including it in an attachment or by cutting and pasting the contents...I chose the attachement.

my best guess is this has something to do with the use of the phpinclude_start template the hack uses and its somehow not used or referenced in the vbacms..but that is all it is...a guess..any help would be really appreciated

Brian
05-16-2004, 02:47 PM
This *should* work, but if not let me know.

In your forum/includes/vba_cmps_include_bottom.php file look for:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


Replace that with:

global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $greeting;

Thanatos
05-16-2004, 02:52 PM
That fixed it.

You sir, are a scholar and a gentleman.

No worries though, I won't tell a soul. will be our secret.

Brian
05-16-2004, 02:53 PM
LOL! Glad it worked and thank you. :)

Thanatos
05-16-2004, 03:00 PM
Me too.

Thanks for all your hard work on this wonderful product.

Drifter
11-03-2005, 09:01 PM
hi,
Can anyone tell me what this means:

Database error in vBulletin 3.0.7:

Invalid SQL: INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_global_navbar_replace_title', navbar replace', 5000)
mysql error: Duplicate entry 'setting_global_navbar_replace_title-0-5000' for key 2

mysql error number: 1062

this I got while trying to install the VB advanced v1.0.1..any help'd be appreciated. Thanks