Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Functions not working on front page

@kevinjohngallagher

Member

Cameron, you “build awesome websites”… look at the source code. It’s a lovely well formatted multidimentional array. It’s not a mess, it’s the most concise and beautiful debugging tool you’ll ever have. Trust me, you’ll love it bro :)

When you go to a profile page, what does the array say? (don’t post it)

Does it say the information of the logged in user, or the person who’s profile page you’re on?

No matter where I go, on the site, I get the informaiton of the logged in user. If you don’t, then you’ve found a bug.

This code here should solve the logged in/out issue – though there is probably a better way to handle it :)

if (empty($bb_current_user) || $bb_current_user == 0)

{

echo "<img src='grey_man'>";

} else {

echo bb_get_avatar($bb_current_user->ID, 100);

}

Skip to toolbar