Sign in to follow this  
Followers 0
TAZ

Afisare mesaj pentru un membru anume.

5 posts in this topic

Cum pot face sa afisez un mesaj HTML & CSS doar pentru un membru anume? 

Gen ['member_id'] si id-ul acelui membru..

0

Share this post


Link to post
Share on other sites

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

înlocuiești xx cu id utilizator.

2

Share this post


Link to post
Share on other sites

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

0

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)">

 

 

1

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.

1

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.