The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

"IF" in PHP

View previous topic View next topic Go down

"IF" in PHP

Post by Guest on November 8th 2011, 1:54 pm

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..

Guest
Guest


Back to top Go down

Re: "IF" in PHP

Post by Guest on November 8th 2011, 2:03 pm

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

Guest
Guest


Back to top Go down

Re: "IF" in PHP

Post by LGforum on November 8th 2011, 3:27 pm

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

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: "IF" in PHP

Post by Guest on November 8th 2011, 6:21 pm

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...

Guest
Guest


Back to top Go down

Re: "IF" in PHP

Post by kirk on November 9th 2011, 1:54 am

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
Forumaster

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

Back to top Go down

Re: "IF" in PHP

Post by Guest on November 9th 2011, 1:37 pm

how ??

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


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