Results 1 to 2 of 2
  1. #1
    Casual Pligger wachaz's Avatar
    Joined
    Nov 2009
    Posts
    30

    Unhappy Quick question: how to remove line breaks from summary

    Hi,

    I'd like to automatically remove line breaks, empty lines from all the submitted links' description/summary. I know I have to do something similar to this below, but I can't find the exact location where to put it.

    Code:
    $linkres->link_summary = str_replace("<br />", " ", $linkres->link_summary);
    $linkres->link_summary = str_replace("  ", " ", $linkres->link_summary);
    I'm still using a version with submit_step_3.tpl - do I need to modify that, or is it somewhere in submit.php?

    Thank you in advance!

  2. #2
    Casual Pligger wachaz's Avatar
    Joined
    Nov 2009
    Posts
    30
    I have made several changes to different files, but still no luck. Any ideas?

Similar Threads

  1. Disable line breaks in stories ?
    By pediw in forum Questions & Comments
    Replies: 4
    Last Post: 02-01-2010, 07:52 AM
  2. Line Breaks in Imported Feeds
    By peosteve in forum Questions & Comments
    Replies: 1
    Last Post: 09-25-2009, 01:26 PM
  3. minor annoyance with line breaks
    By abcdefgary in forum Questions & Comments
    Replies: 2
    Last Post: 09-10-2009, 08:56 AM
  4. Force line breaks in description,summary,and comments forms
    By method20 in forum Questions & Comments
    Replies: 2
    Last Post: 07-01-2008, 06:39 PM
  5. Story Description Keep line breaks?
    By daled in forum Questions & Comments
    Replies: 3
    Last Post: 10-13-2006, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting