The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
when looking on my forum, and submiting a forum,
i want to add the submitters username or id actual nickname prefered. how do i select the current name ? EDIT.. okay lol i guess i found it.. $bbuserinfo[userid] = uid not sure about $bbuserinfo[username] gonna try it ![]() |
#2
|
||||
|
||||
![]()
$bbuserinfo is for information about *you*, the person viewing the site. If you want information about a user on a page, the variable is different. In a postbit, you would use $post, in most other areas, you would use $userinfo.
|
#3
|
||||
|
||||
![]()
its becourse a user submitting a form, i need 2 things
UserID and Username and it will be auto submitted via 2 hidden fields if i only get one of them, i then need to do a extra query to retrive the other from user db. ![]() gonna show link like this Ruid and Rname i get in the while{} all working great, but i dont trust any user to submit userid or name manually. therefor on the input page i want those two ![]() <a href="member.php?u='.$row['Ruid'].'" target="_self">'.$row['Rname'].'</a> and ive found out,, that $bbuserinfo[userid] is just the name, not the id as the name says, haha. LOL found them, dooh.. ! value=$bbuserinfo[username] /> value=$bbuserinfo[userid] /> |
#4
|
||||
|
||||
![]()
If you are looking at the user submitting the form, you do not need to pass the user ID/username. Just get it in the code processing the submitted data.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|