SimplePortal
Support => English Support => Topic started by: Wallen on December 09, 2018, 05:10:34 AM
-
As title says, i need a help to edit one line of code in php inside the source of simpleportal.
(It's nothing about copyright removal or anything like this).
I am interested to make the block looking like this:
(https://i.imgur.com/xovwejh.png)
instead of this
(https://i.imgur.com/Wh0bpP8.png)
A help will be really appreciated it's needed for the community, if you are willing to help me, can you tell me inside what function do i need to edit and what folder in /Sources
-
It's in ./Themes/default/PortalArticles.template.php
In the template_articles_curve() function.
-
Go to the Default theme folder and find the PortalArticles.template.php file... Just passed this line "function template_articles_curve()" you'll see what to edit.
Find:
<div class="middletext">', $article['message']['time'], ' ', $txt['by'], ' ', $article['poster']['link'], '<br />', $txt['sp-articlesViews'], ': ', $article['topic']['views'], ' | ', $txt['sp-articlesComments'], ': ', $article['topic']['replies'], '</div>';
Replace with:
<div class="middletext">', $txt['by'], ' ', $article['poster']['link'], ' in ', $article['board']['link'], ' ', $article['message']['time'], '</div>';