Status
Not open for further replies.

Tempus

Active Member
58
2011
5
0
I'm looking for a way to use an if condition on my forumhome page which uses post count. I want to display certain messages for members with different post counts.

Example

User A has 10 posts, he see message one.
User B has 100 posts, he sees message two.

I tried using this:

Code:
<if condition="$bbuserinfo['posts'] > 10">
But it said soemthing like: adding child to non-existent node!


Anyone know how to incorporate a users post count on pages?
 
Last edited:
21 comments
I know that lol. In my template I did add it. I was just being quick and posting the actual condition lol
 
Last edited:
I was editting the navbar template, added that code and tried putting TEST between the condition and it didnt work.
 
Its never been altered. Its standard vb navbar but with my condition.

Just add my condition and type test between. Save and see for yourself.
 
OMG i just saw it i though you wrote it well ofcourse it wont work it should be different but i cant find it right now trust me, try something like this:
Code:
<if condition="$bbuserinfo['posts'] [COLOR=Black][COLOR=Black]==[/COLOR] [/COLOR]10">  </if>
 
Last edited:
What should be different? Is there a condition for it?

I know you can do it via notices but cant find the code that uses either.
 
Your conditional is tottaly wrong and thats why your getting that error, depends on what you need because there are different modifications regarding user require xx posts to do something.
 
Thats really strange and i dont get it honestly i would like to check it using teamviewer but im going to sleep right now but i could do it tomorrow, let me know if you want this thing done.
 
There is a way around it. Create a new usergroup called "over5" or something, and use the same setting on it as you have on "under5". Then just use simple usergroup conditions. ;)
 
Hey Tempus,, I know its an old thread but I thought you might still need help with it..

Try the below code

PHP:
<vb:if condition="$bbuserinfo['posts'] <= '5'">
First Message
<vb:else />
Second Message
</vb:if>
 
Status
Not open for further replies.
Back
Top