Something like this:

<?
if ($post['Post']['user_id']==$comment['Comment']['user_id']){
    $commentClass='author';
} else {
    $commentClass='non-author';
}
?>
<div class="<?=$commentClass?>">....</div>


Change your variable names  appropiately.

Regards,

Pablo Viojo
[email protected]
http://pviojo.net

¿Que necesitas?
http://needish.com


On Thu, Sep 17, 2009 at 3:55 PM, Simon <[email protected]> wrote:

>
> un exemple will be appreciated
>
> On Sep 17, 11:14 am, Nectom <[email protected]> wrote:
> > Could do a match based on the Post user_id and the comment user_id and if
> > they match set a author class
> >
> >
> >
> > On Thu, Sep 17, 2009 at 6:36 PM, Simon <[email protected]> wrote:
> >
> > > Hi all is there any way i could Highlight Author's aka admin's
> > > comments and a reply function on my comment section
> >
> > > here is my comment table
> >
> > > id
> > > post_id
> > > user_id
> > > comment
> > > modified
> > > active
> >
> > > i have users groups = admin / users
> >
> > > thank you- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to