Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2008, 04:14 PM
Casual Pligger
Pligg Version: 9.8
Pligg Template: forum
 
Join Date: Oct 2007
Posts: 51
Thanks: 9
Thanked 1 Time in 1 Post
How to add "made popular by xuser 4 minutes ago"

I am trying to add the info line "made popular by xuser 4 minutes ago" with the user's icon next to it. Much like how digg has it at the bottom of their menu

How do I do this?

Pligg Version 9.9.5
Reply With Quote
  #2 (permalink)  
Old 08-24-2008, 04:25 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Technically you can't with Pligg. EDIT: see micxuy's post below
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.

Last edited by Yankidank; 08-27-2008 at 11:02 AM..
Reply With Quote
  #3 (permalink)  
Old 08-24-2008, 04:51 PM
Casual Pligger
Pligg Version: 9.8
Pligg Template: forum
 
Join Date: Oct 2007
Posts: 51
Thanks: 9
Thanked 1 Time in 1 Post
I mean when a user votes on an article, it will say "userx made this article popular x minutes ago." I noticed Kirtsy had it
Reply With Quote
  #4 (permalink)  
Old 08-24-2008, 04:57 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
It's not the voting user that Digg and Kirtsy are using for "Username made this article popular", the username is from whomever submitted the article. They are giving a timestamp to each article when it gets pushed to the front page. This took some modifications to come up with and isn't built into Pligg. If you just want to show who submitted the article followed by how long ago you can just tweak the language file and link_summary.tpl.

I think adding "made popular X time ago" might be something I will add to the feature request list.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
The Following User Says Thank You to Yankidank For This Useful Post:
  #5 (permalink)  
Old 08-27-2008, 08:25 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
I used {$link_published_timeago} and it worked but for the last one who made it popular then i dont know
__________________
www.drivensource.net

Driven Source is a community driven resource for all webmasters. Find cool scripts, read tutorials, dicuss news or submit
Reply With Quote
  #6 (permalink)  
Old 08-27-2008, 11:01 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Holy moly, I completely forgot that we added in {$link_published_timeago} a while ago. Thanks for reminding me micxuy
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #7 (permalink)  
Old 08-28-2008, 02:57 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
For some reason unpublished stories are showing that they were published 3194 days ago (November 30, 1999). I suggest you wrap {if $story_status eq "published"} and {/if} around this code if you use it so it doesn't display on your upcoming posts.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #8 (permalink)  
Old 08-28-2008, 03:27 AM
ozlegolas's Avatar
Casual Pligger
Pligg Version: 9.9.0
Pligg Template: Teknikim
 
Join Date: Apr 2008
Posts: 36
Thanks: 4
Thanked 6 Times in 4 Posts
Maybe the last voter can be selected from database when the story is published
__________________
http://teknikim.com
Reply With Quote
  #9 (permalink)  
Old 09-07-2008, 09:01 PM
New Pligger
Pligg Version: 9.9.5
Pligg Template: yget
 
Join Date: Aug 2008
Location: Cali
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
where would i put in that code?

{$link_published_timeago}
Reply With Quote
  #10 (permalink)  
Old 09-08-2008, 09:02 AM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 89
Thanks: 2
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by ffnstuff View Post
where would i put in that code?

{$link_published_timeago}
in link_summary.tpl
__________________
www.drivensource.net

Driven Source is a community driven resource for all webmasters. Find cool scripts, read tutorials, dicuss news or submit
Reply With Quote
The Following User Says Thank You to micxuy For This Useful Post:
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
Show time as "xx minutes ago" related to publish moment, as digg osd Suggestions 3 01-10-2007 05:31 PM


Search Engine Friendly URLs by vBSEO 3.2.0