Jump to content
WebFlake
  • 0

Read More fuction on unreal portal


Guest shooterg

Question

5 answers to this question

Recommended Posts

  • 0

This already has the read more in it...

            <div class='ipsType_textblock ipsPad'>                <if test="truncateTopic:|:$this->settings['portal_topic_truncate']">                    {IPSText::truncate( IPSText::getTextClass( 'bbcode' )->stripAllTags( strip_tags( $topic['post'], '<br>' ) ), intval( $this->settings['portal_topic_truncate'] ) )}                     <div class='ipsPad_half'>                         &nbsp;<a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' class='right clearfix'><span class='ipsButton_secondary'>Read More</span></a>                     </div>                <else />{$topic['post']}</if>                <!--IBF.ATTACHMENT_{$topic['pid']}-->            </div>

in acp > Manage Unreal Portal > Portal Main

 

Limit news to x characters?	yes NoNumber of characters to limit news to?Note that this WILL break any HTML tags if they haven't been closed at the end of x characters
Link to comment
Share on other sites

  • 0
Guest shooterg

This is in articles:

 

 

{parse js_module="topic"}<div class='ipsBox clear'>    <foreach loop="articles:$articles as $topic">        <div class='ipsBox_container ipsPad'>       		             <a href='{parse url="showuser={$topic['member_id']}" seotitle="{$topic['members_seo_name']}" template="showuser" base="public"}' class='ipsUserPhotoLink left ipsPad_half'><img src='{$topic['pp_small_photo']}' alt='{$r['members_display_name']} {$this->lang->words['photo']}' class='ipsUserPhoto ipsUserPhoto_medium' /></a>		            <h2 class='ipsType_pagetitle'><a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}'>{IPSText::truncate( $topic['title'], intval( $this->settings['portal_topic_title_truncate'] ) )}</a></h2>            <div class='desc'>{parse date="$topic['start_date']" format="DATE"}</div><br class='clear' />                    <div class='desc ipsType_smaller ipsPad_half'>		                {$this->lang->words['posted_by']} <if test="$topic['members_display_name']">{parse template="userHoverCard" group="global" params="$topic"}<else />{$this->settings['guest_name_pre']}{$topic['starter_name']}{$this->settings['guest_name_suf']}</if>                {$this->lang->words['in']} <a href='{parse url="showforum={$topic['id']}" base="public" seotitle="{$topic['name_seo']}" template="showforum"}'>{$topic['name']}</a>            </div>            <div class='ipsType_textblock ipsPad'>                <if test="truncateTopic:|:$this->settings['portal_topic_truncate']">                    {IPSText::truncate( IPSText::getTextClass( 'bbcode' )->stripAllTags( strip_tags( $topic['post'], '<br>' ) ), intval( $this->settings['portal_topic_truncate'] ) )}                     <div class='ipsPad_half'>                         &nbsp;<a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' class='right clearfix'><span class='ipsButton_secondary'>Read More</span></a>                     </div>                <else />{$topic['post']}</if>                <!--IBF.ATTACHMENT_{$topic['pid']}-->            </div>                    </div>        <div class='general_box'>            <h3 class='ipsType_smaller'>&nbsp;                            <if test="showShareLinks:|:!$this->settings['portal_hide_share']">                               {$topic['share_links']}                </if>                <span class='right'>                {parse format_number="$topic['views']"} {$this->lang->words['views']} &middot;                {parse format_number="$topic['posts']"} {$this->lang->words['replies']}	                <if test="entryHasPosts:|:$topic['posts']">                    ( {$this->lang->words['last_reply_by']} <if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if> )                </if>                </span>                	            </h3>                      	  </div></foreach></div><if test="pagesBottom:|:$pages"><div class='topic_controls'>{$pages}</div></if><br class='clearfix' /> 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...