PDA

View Full Version : $bbuserinfo{username} not working.. why?


MamboCube
10-27-2005, 08:59 PM
ok this is driving me mad

this is the code i have

<?php echo "".construct_phrase($vbphrase[welcome_x],$bbuserinfo[username]);?>
but all i get is

welcome, .

global.php is working because all the phrases are working, its just this,

i dont think the $bbuserinfo{'userid'} is working either so its must be something to do with the $bbuserinfo variable or watever

any help would be very much appreciated,

thnx very much

Paul M
10-27-2005, 09:11 PM
3.5 does not use $bbuserinfo, it uses $vbulletin->userinfo .

MamboCube
10-27-2005, 09:27 PM
I LOVE YOU!!

thats it it worked

thats been bugging me sooo much

thanx very much Paul M

Guest190829
10-27-2005, 09:43 PM
Here's a great tutorial explaining everything that has changed from 3.0.x to 3.5.

https://vborg.vbsupport.ru/showthread.php?t=82632

It helped me out a lot. :)

MamboCube
10-27-2005, 09:53 PM
great!

thnx DANNY

Jaime82
10-28-2005, 10:05 PM
Thanks for everyone’s help, I’m getting really close. I now have it where your automatically logged into the chat room with your registered name. I’m still having a problem though. I want the chat room to be password protected where members only can enter. With this code added if someone knows how to find the URL to the applet it will allow them to log in as Unregistered. Does anyone have any ideas on how to block them if they don’t have a registered name?

Thanks in Advance to anyone that can help me

Jaime

Paul M
10-28-2005, 10:07 PM
Um, is your post in the right thread ?

Lea Verou
10-28-2005, 11:05 PM
Maybe they are the same person? :p

MamboCube
10-29-2005, 10:27 AM
nope, thats not me lol

question?
10-29-2005, 11:42 AM
so to display some ones user name you use $vbulletin->userinfo[username] ???

MamboCube
10-29-2005, 11:55 AM
yeh.

Cole2026
10-29-2005, 12:41 PM
so to display some ones user name you use $vbulletin->userinfo[username] ???

Make sure you note the fact that:
$vbulletin->userinfo = for anything in PHP code
$bbuserinfo = for use in the vBulletin templates.

MamboCube
10-31-2005, 09:52 AM
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=<?php echo "$vbulletin->userinfo[logouthash]"; ?>" onclick="return log_out()">$vbphrase[log_out]</a>

this is what i have for the logout link, what do i have to change the
$session[sessionurl] to?

because at the mo it not working like it is so i have to change $session to the new kind right?

but i dont know wat it is for $session[sessionurl]