Automatically Populate Story Description

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2009, 12:02 AM
New Pligger
 
Join Date: Jun 2009
Posts: 24
Is there any way to automatically populate the story description with the link's meta description, similar to how it works for the title? I know most social bookmarking sites do this, I'm not sure why it wouldn't happen in Pligg by default.
Reply With Quote
  #2 (permalink)  
Old 07-16-2009, 12:36 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I hadn't thought of trying to do this before. Meta descriptions aren't set on a lot of sites, but it's not a bad idea.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #3 (permalink)  
Old 07-16-2009, 03:38 AM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
not a bad idea, not bad
Reply With Quote
  #4 (permalink)  
Old 07-16-2009, 09:04 PM
New Pligger
 
Join Date: Jun 2009
Posts: 24
I'm guessing it wouldnt be too hard, since it already does this for the title. I'm new to pligg so havent had a chance to dig into the code yet...
Reply With Quote
  #5 (permalink)  
Old 07-17-2009, 10:31 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I just wrote some code to make this possible. Here's what you will need to do to make your Pligg templates compatible with this feature on the next Pligg CMS update:

Open: /templates/wistie/submit_step_2.tpl
Find:
Code:
{$submit_content}
Replace with:
Code:
{if $submit_url_description}{$submit_url_description}{/if}{$submit_content}

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #6 (permalink)  
Old 08-21-2009, 02:43 PM
New Pligger
 
Join Date: Jun 2009
Posts: 24
So this looks like it's working for some sites but not others. For example, this works for Pligg.com but not buy.com, which has a description. Any ideas why it works for some but not others?
Reply With Quote
  #7 (permalink)  
Old 01-22-2010, 04:33 PM
New Pligger
Pligg Version: 8
Pligg Template: Kez
 
Join Date: Dec 2007
Posts: 21
Works fine
Reply With Quote
Reply

Tags
description, meta, story

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Story Meta Description ffarhann Questions and Comments 3 01-26-2010 03:58 PM
Truncated Story Description on story page, version 9.9 krylen Questions and Comments 5 01-11-2008 08:39 PM
Can you submit a story without a description? qwik3r Questions and Comments 0 12-18-2007 01:47 PM
adding a link to story description codefreaq Questions and Comments 1 10-31-2007 12:52 PM
Story Description Keep line breaks? daled Questions and Comments 3 10-13-2006 04:00 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development