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

* Navigator

Expand - Collapse

* Statistic


  • *Total Posts: 16430
  • *Total Topics: 2522
  • *Online Today: 5
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 1
  • *Total: 1

  • *Google

* Calendar

Mo
Tu
We
Th
Fr
Sa
Su
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

Blog feed block

Started by Atheos, 17. Dec 2009, 21:33:49

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Sabrinova

#45
03. Mar 2013, 13:16:21
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
03. Mar 2013, 13:47:38
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
03. Mar 2013, 14:11:31
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
03. Mar 2013, 14:29:11
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
03. Mar 2013, 15:05:08
  That did it!  Thank you so much!!!