Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2006, 06:10 PM
New Pligger
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
How to enable line break in news submitting?

How I make automatic linebreaks when a user makes a space on the story submit? I know the comments has it... :(
Reply With Quote
  #2 (permalink)  
Old 02-15-2006, 01:26 PM
New Pligger
 
Join Date: Jan 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
In MySQL line breaks are automatically recorded. You just have to output them by using nl2br();
__________________
iPhone and iPod Touch News (Coming Soon)
Home of myspace graphics codes and image effects!
Reply With Quote
  #3 (permalink)  
Old 03-13-2006, 02:50 AM
New Pligger
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
for instance?

sorry to go all n00b on you, but care to specify that some?
I mean, I tried echoing the darned thing, tried adding it as such, without the clauses, with added or mere \n:s etc., with no luck tho.
Could you hit us up with an syntax example of how you'd force pligg post submissions to implement line breaks?

Thanks a bunch.
Reply With Quote
  #4 (permalink)  
Old 03-13-2006, 04:17 PM
New Pligger
 
Join Date: Mar 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
one should alway relentlessly read up on previous entries before posting, but I might even recommend stepping away from the pc for a while and getting back at the problem with renewed spirits.
Nevermind this whole thing, pwnd the issue.

http://www.pligg.com/forum/showthread.php?t=398
Reply With Quote
  #5 (permalink)  
Old 03-25-2006, 01:11 PM
Casual Pligger
 
Join Date: Jan 2006
Posts: 33
Thanks: 37
Thanked 0 Times in 0 Posts
open libs/link.php

find
$smarty->assign('story_content', $this->content);

chg it to
$smarty->assign('story_content', nl2br($this->content));

done :D
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
Upgrading a 9.8.2 template to 9.9 AshDigg Wiki Articles 10 05-01-2008 01:38 PM
cann't vote in pligg (buliding 802) haxhax Bug Report 27 03-10-2007 06:53 AM
ERROR: my_base_url is not set. Please correct this using the admin panel. Then refres search Installation and Upgrade Help 7 11-14-2006 10:35 PM
Nabaza.info - News Searched, Categorized, Queued, Shared and Commented weblord My Pligg Site 0 02-03-2006 04:47 AM
/var/log/httpd/error_log messages gr8rcake Bug Report 3 01-28-2006 09:28 PM


Search Engine Friendly URLs by vBSEO 3.2.0