Set Character Limit for Meta Description Tags?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-23-2007, 06:29 PM
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Sep 2007
Posts: 192
Does anyone know how to set a limit for the meta description tags for stories? Currently it is pulling info from the summary, but the descriptions are basically pulling the entire summary in the description tag. I want to limit this to say around 75 characters. I think this is the code I need to adjust, but not sure how to place a limit on it:

Found in story.php file:

Code:
// meta tags
$main_smarty->assign('meta_description', strip_tags($link->truncate_content()));
Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 04-07-2009, 10:49 PM
New Pligger
 
Join Date: Jul 2008
Posts: 21
I know this is old, but if anyone else is wondering: go to submit_step_2.tpl (in the folder of whatever template you're using) and find the line:

<input type="text" id="tags" name="tags" value="{$tags_words}" size="60" maxlength="40" />

Change 40 to whatever you want.
Reply With Quote
  #3 (permalink)  
Old 04-08-2009, 02:09 AM
Donor
Donation Level 2 
 
Join Date: Jun 2007
Posts: 283
Code:
// meta tags
$main_smarty->assign('meta_description', strip_tags(substr($link->truncate_content(),0,250)));
change number 250 to what you want
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can set minimium limit character oigmax Questions and Comments 2 02-23-2009 12:06 PM
Tags not cloud in Pligg v9.9 bhatiacane Questions and Comments 4 05-03-2008 03:16 AM
set a minimum limit on tags? abraxas Questions and Comments 0 03-05-2008 07:13 PM
Character limit on description field projectman Questions and Comments 4 11-02-2007 11:08 PM
Problem with handling of 'n' character in description iPodness Questions and Comments 2 09-15-2007 09:11 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