Allow HTML TAGS in full story but not in summary

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2008, 09:22 PM
New Pligger
 
Join Date: Apr 2008
Posts: 4
Is it possible to allow some HTML tags ONLY when seeing the full story, but not in the summary (homepage and other listings)?
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 11:35 PM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 223
Send a message via MSN to xiesi
same problem.
Reply With Quote
  #3 (permalink)  
Old 04-13-2008, 12:53 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Not sure if I understand what you mean, but if you want to only show the tags on the story page, you would need an "if" statement.

Add:

Code:
{if $pagename eq "story"}
{if $enable_tags eq 'true'}
{if $tags ne ''}

<h2><strong>{#PLIGG_Visual_Tags_Link_Summary#}</strong>:</h2>
<ul class="prof-tag-list">{section name=thistag loop=$tag_array}
<li><a href="{$tags_url_array[thistag]}">{$tag_array[thistag]}</a></li>
{/section}</ul>
{/if}
{/if}
{/if}
to link_summary.tpl

Geoserv.
Reply With Quote
  #4 (permalink)  
Old 04-13-2008, 02:06 PM
New Pligger
 
Join Date: Apr 2008
Posts: 4
I'm not talking about links tags. I'm talking about HTML tags.

Example: I want that the <IMG> tag shows up on the full story, but not on the summary.

Another issue:

Also, even if the tag shows up on the summary, something must be done regarding the summary length... I have one post in that the 150 chars defined for the summary end on the middle of an <IMG> tag.
Result: the image doesn't show up, and the following HTML tags (pligg template ones) are all messed up.
Reply With Quote
  #5 (permalink)  
Old 04-14-2008, 11:27 PM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 223
Send a message via MSN to xiesi
same problem
Reply With Quote
  #6 (permalink)  
Old 04-16-2008, 07:19 AM
New Pligger
 
Join Date: Jan 2008
Posts: 3
This is also something I am looking for a solution for. If anybode knows how this is achieved, that would be great!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to Allow Html Img Tags in Summary JonniE_M Questions and Comments 1 02-20-2009 08:37 AM
Allow HTML in story only not summary XSP Questions and Comments 0 09-25-2007 03:53 PM
Mis-formed Html tags in summary text deeplygreen Questions and Comments 2 09-21-2007 12:40 AM
full story (not summary) on index page revolver Questions and Comments 2 06-24-2007 12:03 PM
HTML Tags in story submission. AshDigg Questions and Comments 9 09-23-2006 02:16 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