SimplePortal

Support => English Support => Topic started by: Wallen on December 09, 2018, 05:10:34 AM

Title: [Block] Help with editing few lines on Simpleportal
Post 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
Title: Re: [Block] Help with editing few lines on Simpleportal
Post by: ccbtimewiz on December 25, 2018, 02:09:39 AM
It's in ./Themes/default/PortalArticles.template.php

In the template_articles_curve() function.
Title: Re: [Block] Help with editing few lines on Simpleportal
Post by: Mick. on December 29, 2018, 08:16:29 AM
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:
Code: [Select]
<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:
Code: [Select]
<div class="middletext">', $txt['by'], '&nbsp;', $article['poster']['link'], '  in&nbsp;', $article['board']['link'], '  ', $article['message']['time'], '</div>';
SimplePortal 2.3.8 © 2008-2024, SimplePortal