Previous Thread
Next Thread
Print Thread
Hop To
#216446 08/13/2008 12:32 PM
Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
In the Portal template:

{if $news[item].newsicon}
<img style="float:left; margin: 10px;" src="{$config.BASE_URL}/images/{$style_array.news}/{$news[item].newsicon}" alt="" />
{/if}
<br />
{$news[item].body} {if $news[item].truncated} <a href="{ubb url="ubb=showflat&Number=`$news[item].topic_id`" title=$news[item].subject}">To be continued?</a>{/if}
<br /><br />
</td></tr>
{$tbclose}
{/section}

How do I truncate a news item?

Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
Anyone?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You can use [#end_news_blurb#] at the point you want to end the announcement for the main portal page. Removing the # signs of course. wink

This is somewhat of a hidden feature at this point that I need to figure out how to make a bit more easy to use.

Last edited by Rick; 08/15/2008 11:39 AM.
Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
This is exactly what I've been wanting for a long time...thank you, thank you, thank you.

Works like a charm.

smile

Joined: Jan 2005
Posts: 186
member
member
Joined: Jan 2005
Posts: 186
There should at least be a note on this in the portal page in the control panel. I've been posting things in 2 posts recently and happened to go into the code to add a new tag and saw that there was a truncate option, then had to come here to figure out how to use it.

It would be nice if there was an option to add this tag in the markup panel in v8.something.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)