The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

"IF" in PHP

2 posters

Go down

"IF" in PHP Empty "IF" in PHP

Post by Guest Tue 8 Nov - 14:54

Can I use the word "if" in the PhP.

ie

if a member has 12 posts to display an image.
if a member has 34 posts to display another image ..

and continue..
avatar
Guest
Guest


Back to top Go down

"IF" in PHP Empty Re: "IF" in PHP

Post by Guest Tue 8 Nov - 15:03

In php no, but you can use in javascript. Wink
avatar
Guest
Guest


Back to top Go down

"IF" in PHP Empty Re: "IF" in PHP

Post by LGforum Tue 8 Nov - 16:27

You can't use PHP full stop with forumotion. Only the php variables provided.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

"IF" in PHP Empty Re: "IF" in PHP

Post by Guest Tue 8 Nov - 19:21

i have a rank image and team... but i want a step.

Ie.

avatar

step --> eg New Member-Member-Advanced Member-Expert Member....

Rank Image ---> Members-Moderators...

Stars--> if have 0 posts ...have one star.-1 star -2 stars-3stars-4stars...

Team --> Members.-Moderators...
avatar
Guest
Guest


Back to top Go down

"IF" in PHP Empty Re: "IF" in PHP

Post by kirk Wed 9 Nov - 2:54

you can do all this in advanced profile fields to create another field, and the rest is just how you want to set you rank up with post counts.

Different rank image for each post count as you wish.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

"IF" in PHP Empty Re: "IF" in PHP

Post by Guest Wed 9 Nov - 14:37

how ??
avatar
Guest
Guest


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum