Log in

View Full Version : $post[posts]?


MamboCube
10-30-2005, 04:18 PM
i am trying to get the amount of posts the user has on a non vb pages


so i have used this

<?php echo "$vbphrase[posts]";?>:<? echo "$post[posts]"; ?>

but all i get is

Posts:

the number of posts isnt being shown

anyone know why this is?

Zachery
10-30-2005, 08:34 PM
i am trying to get the amount of posts the user has on a non vb pages


so i have used this

<?php echo "$vbphrase[posts]";?>:<? echo "$post[posts]"; ?>

but all i get is

Posts:

the number of posts isnt being shown

anyone know why this is?

well like how do you propose to get that data in the first place? have you required global somewhere? If so this is a vb page.

And whos posts do you want to show? the user browsing? then using {$vbulletin->userinfo['posts']}

MamboCube
10-31-2005, 09:00 AM
thnx for the reply zachery

i have required global.php
and yes i want to show the amount of posts for the user browsing

i tried $vbulletin->userinfo['posts'], but now all i get is :

Posts: Array['posts']

not sure why, do you have any idea what this could be?

Zachery
10-31-2005, 01:41 PM
{$vbulletin->userinfo['posts']}
:p use the code I give you.

MamboCube
10-31-2005, 02:21 PM
oh! lol sorry

yeh that works great

thanx zachery