TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,140
  • Total Topics: 21,346
  • Online today: 1,074
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 140
  • Total: 141
  • @rjen

Tinyportal 1.2 Article Block?

Started by @rjen, December 04, 2015, 05:06:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

Thanks for the update! I love Tinyportal and was hoping for an update.

Install worked fine, and it seems this version has adressed the code issues I fixed myself over the last few years.


Not sure if this is the correct board to raise teh question, please feel free to move my question...

I have one annoying problem after the update. I have one block on my site "test dot fjr-forum dot nl" that links to a single article. This does not seem to work anymore: the block now shows :

Quote{blockarticle_text}
{blockarticle_moreauthor}

No matter what type of article I use (old, new, html, php or bbc)... I cannot find any other report of this issue.

Any hints?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

illori


illori

can you try this fix?
replace this in TPsubs.template.php
function blockarticle_renders()
{
$code = '
<div class="blockarticle render1">
<div class="article_info">
{blockarticle_author}
{blockarticle_date}
{blockarticle_views}
</div>
<div class="article_padding">{blockarticle_text}</div>
<div class="article_padding">{blockarticle_moreauthor}</div>
</div>
return $code;
}

@rjen

I tried that.

Replaced:
function blockarticle_renders()
{
echo '
<div class="blockarticle render1">
<div class="article_info">
{blockarticle_author}
{blockarticle_date}
{blockarticle_views}
</div>
<div class="article_padding">{blockarticle_text}</div>
<div class="article_padding">{blockarticle_moreauthor}</div>
</div>
';
}


by


function blockarticle_renders()
{
$code = '
<div class="blockarticle render1">
<div class="article_info">
{blockarticle_author}
{blockarticle_date}
{blockarticle_views}
</div>
<div class="article_padding">{blockarticle_text}</div>
<div class="article_padding">{blockarticle_moreauthor}</div>
</div>
return $code';
}


(by the way I addes the " ; " since without it I got an error:
arse error: syntax error, unexpected T_CLASS, expecting ',' or ';'

Unfortunately this did not work: now the block shows up empty...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

illori

try this instead


function blockarticle_renders()
{
$code = '
<div class="blockarticle render1">
<div class="article_info">
{blockarticle_author}
{blockarticle_date}
{blockarticle_views}
</div>
<div class="article_padding">{blockarticle_text}</div>
<div class="article_padding">{blockarticle_moreauthor}</div>
</div>
';
return $code;
}

@rjen

That did the trick!

thanks. Maybe the first fix in version 1.3?
Running Latest TP on SMF2.1 at: www.fjr-club.nl

illori

yep it will be in the next release when we get to it.

lurkalot

Moved these posts from the news board, to support.  ;)

@rjen, thanks for the report. Illori, thanks for finding the fix.  O0


Ken.

Quote from: lurkalot on December 04, 2015, 08:16:22 PM
Moved these posts from the news board, to support.  ;)

@rjen, thanks for the report. Illori, thanks for finding the fix.  O0

Thanks for that good move Mick.  O0
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

This website is proudly hosted on Crocweb Cloud Website Hosting.