ElkArte Community

Title: Disable "Read More | Write Comment" from Articles?
Post by: cjazz on August 07, 2015, 07:40:13 pm
How do you disable the message "Read More | Write Comment" from the bottom of Article pages?
Title: Re: Disable "Read More | Write Comment" from Articles?
Post by: Flavio93Zena on August 07, 2015, 08:05:31 pm
Link please ;)
Title: Re: Disable "Read More | Write Comment" from Articles?
Post by: emanuele on August 08, 2015, 02:08:40 am
I guess it's a SimplePortal question, maybe @Spuds or @[SiNaN] ?
Title: Re: Disable "Read More | Write Comment" from Articles?
Post by: [SiNaN] on August 08, 2015, 05:11:07 am
If you are actually using the Articles module, this should do it:

themes/default/PortalArticles.template.php
Code: (Find and Remove) [Select]
 <div class="sp_article_extra">
 <a href="', $article['href'], '">', $txt['sp_read_more'], '</a> | <a href="', $article['href'], '#sp_view_comments">', $txt['sp_write_comment'], '</a>
 </div>

If you are using Board News block, which some people call articles, this should do it:

sources/subs/PortalBlocks.subs.php
Code: (Find and Remove) [Select]
 <div class="righttext">', $news['link'], ' ', $news['new_comment'], '</div>

Quote from: emanuele – I guess it's a SimplePortal question, maybe @Spuds or @[SiNaN] ?
cough You are a SimplePortal developer yourself, if I may remind you. :P
Title: Re: Disable "Read More | Write Comment" from Articles?
Post by: emanuele on August 08, 2015, 08:28:49 am
/me is not really expert of the UI
/me likes to break where he can make the biggest amount of disasters. O:-)
Title: Re: Disable "Read More | Write Comment" from Articles?
Post by: Flavio93Zena on August 08, 2015, 10:01:47 am
Well... I just wanted to disable it via css, because he may think twice about it and change his mind ;) But I guess that killing the php logic will do the trick as well ;D