Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2007, 12:01 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Exclamation Highlighting the recent comment submitted by user!

Hello all,

A user views a story, writes a comment on it, submits it the page refreshes and loas again.

Is there any way to set the recent comment in the browsers view or highlight it? Your suggestions, ideas will really help me.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-28-2007, 11:39 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
any thoughts on to this - pls.
Reply With Quote
  #3 (permalink)  
Old 02-28-2007, 06:32 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Put this if statement around the comment area
Code:
 {if $user_username eq 'you'} {/if}
That *should* determine if the comment is yours and then you can do whatever you want to it. I know digg has recently changed their comments page to darken the comment header if it is your comment.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #4 (permalink)  
Old 02-28-2007, 08:23 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Thanks KB - it did work.

But how find if it is the latest comment by that user? Any thoughts into this?
Reply With Quote
  #5 (permalink)  
Old 03-01-2007, 01:07 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
I just got a small hint into this - if ($comment_age eq 0). Together with {if $user_username eq 'you'} {/if} was able to get it :)

Thanks kb for pointing in rite direction. Currently we have no plans to improve it further to complete this but anyone wishes they can develop to display a highlight of the recent comment - we will try working on this if no one volunteers - but we are busy with other work (not the spying other project work ;) - people will know what I mean) and if time permits will work on it next week to complete it.

Also we are not very familiar with CSS and AJAX effects of highlight etc...
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit Antispam Addon v 0.1 AnAlienHolakres3 Pligg Modules 24 11-23-2008 09:49 AM
User Profile shows no Submitted Links notrick Installation and Upgrade Help 1 09-15-2008 07:33 AM
Adding Most Recent Comment Date To Main News Page? jkjunkfilter Customization Assistance 3 09-02-2008 09:40 PM
Embedd User Submitted Pictures into the pligg stories!? ackza Modification Tutorials 7 06-27-2007 06:51 PM
the user cannot comment stories. pingjiaCN Bug Report 2 09-24-2006 11:40 AM


Search Engine Friendly URLs by vBSEO 3.2.0