Guest shooterg Posted June 8, 2013 Share Posted June 8, 2013 Hi! how i can add read more fuction on unreal portal? Link to comment Share on other sites More sharing options...
0 Lock Down Posted June 10, 2013 Share Posted June 10, 2013 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'> <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 More sharing options...
0 Lock Down Posted June 9, 2013 Share Posted June 9, 2013 Read more function is just a php function to show a selected number of characters from the post and add a pointer for the url. Show us the code you are using to create your block. Link to comment Share on other sites More sharing options...
0 Guest shooterg Posted June 9, 2013 Share Posted June 9, 2013 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'> <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'> <if test="showShareLinks:|:!$this->settings['portal_hide_share']"> {$topic['share_links']} </if> <span class='right'> {parse format_number="$topic['views']"} {$this->lang->words['views']} · {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 More sharing options...
0 Guest shooterg Posted June 10, 2013 Share Posted June 10, 2013 Thank you very much! it worked! Link to comment Share on other sites More sharing options...
0 Evarni Posted June 10, 2013 Share Posted June 10, 2013 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
Guest shooterg
Hi! how i can add read more fuction on unreal portal?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts