To use this website completely, it is necessary to store cookies on your computer.
 

Blog feed block

Started by Atheos, 7 years ago

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Sabrinova

#45
4 years ago
Any help with this?  I ended up recreating my test forum from scratch, but this code still produces the same fatal error, even with template evaluation disabled!  I thought I had it cracked when I saw the option in PmxBlog admin to count teaser characters, but no, still the same error.  The first code that displays the entire blog post works fine though, so the problem is somewhere related to the Post_Teaser() function.

feline

#46
4 years ago
The function name is changed ...
Replace this line:
Code Select

$article['body'] = Post_Teaser($article['body']); // call the teaser


with:
Code Select

$article['body'] = PmxBlogTeaser($article['body']); // call the teaser

Many are stubborn in relation to the path, a few in relation to the target.

Sabrinova

#47
4 years ago
Thanks Feline, I just made that change and now I'm getting this:

Fatal error: Call to undefined function PmxBlogTeaser() in /home/content/**/*****/html/******/Sources/PortalBlocks.php(3561) : eval()'d code on line 55

feline

#48
4 years ago
Ahh ... yes .. sorry

Modify your blockcode as follow...
Replace:
Code Select

include_once('PmxBlogSSI.php');
global $context, $smcFunc, $user_info, $txt, $scripturl;


with:
Code Select

global $context, $smcFunc, $user_info, $txt, $scripturl, $sourcedir;
include_once('PmxBlogSSI.php');
include_once($sourcedir .'/PmxBlogTeaser.php');
Many are stubborn in relation to the path, a few in relation to the target.

Sabrinova

#49
4 years ago
  That did it!  Thank you so much!!!