The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
variable for no of pm
could someone please tell me the variable to call
number of PMs the user has plus the number of posts they have posted thanks for any help |
#2
|
|||
|
|||
1. No easy way except a query:
[sql] SELECT COUNT(privatemessageid) FROM privatemessage WHERE userid = $bbuserinfo['userid'][/sql] 2. $bbuserinfo['posts'] |
#3
|
|||
|
|||
why why i use $bbuserinfo['posts']
do i get the message Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/londonbydeuk/public_html/forums/communicate/index.php(56) : eval()'d code on line 2 |
#4
|
||||
|
||||
remove 's in the variable name to avoid the error. ie. $bbuserinfo[posts]
|
#5
|
|||
|
|||
By doing that though you're using completely deprecated methods for using arrays.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|