Jump to content
Sign in to follow this  
strongtaz

Afisare mesaj pentru un membru anume.

Recommended Posts

<if test="$this->memberData['member_id']==xx"> <div class=mesaj"> conținut mesaj </div> </if> 

înlocuiești xx cu id utilizator.

Share this post


Link to post
Share on other sites
44 minutes ago, TAZ said:

Si daca vreau sa adaug mai multe persoane.. gen:  ==1,2,3">. Cum fac?

exact cum ai scris tu :)) 

sau

<if test="$this->memberData['member_id']==array(1, 2, 3, 4)">

 

 

Share this post


Link to post
Share on other sites
On 12/8/2016 at 6:46 PM, Alex6ndru said:

<if test="$this->memberData['member_id']==array(1, 2, 3, 4)">

Poate

<if test="in_array($this->memberData['member_id'], array(1, 2, 3, 4))">

$this->memberData['member_id'] e un id (număr întreg), nu un array.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×