PDA

View Full Version : stuck on a peace of code (get vb username)


ageurtse
23 Dec 2009, 18:00
Why does the code below not work.

when i put

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

outside the function and in the head part it works. but in the function i can't get it to work.

why is this not working, and how can i get it to work.





Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Lynne
23 Dec 2009, 18:14
Where are you putting this code? Right now, that code isn't going to produce a thing because you haven't called the function usercheck.

ageurtse
23 Dec 2009, 18:18
yes i now that, i have found the problam.

i put in the function the following line

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


and now it works great.

Lynne
23 Dec 2009, 18:40
You may want to try vB::$vbulletin->whatever instead of making the variable global.