Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4319
  • *Latest: thygrim

  • *Total Posts: 15779
  • *Total Topics: 2382
  • *Online Today: 4
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 1
  • *Total: 1

Author Topic: Recent Posts do not show in the block  (Read 2098 times)

0 Members and 0 Guests are viewing this topic.

Offline ActivePatriot

  • Newbie
  • *
  • Posts: 11
  • Gender: Male
Recent Posts do not show in the block
« on: 26.04.10, 21:48:43 »
For some reason recent posts don't show up in the block.

The block shows and you can collapse/expand it but, it's empty.

I can show recent posts on my frontpage using:
Code: [Select]
<?php
ssi_recentposts
();
?>

So, recent posts seems to work fine.

Could it be I have my forum put in the root, not inside a forum/  folder?
Is so, where would I go in PortaMx to change the path for recent posts to reflect my path which does not use the forum/ folder?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Recent Posts do not show in the block
« Reply #1 on: 26.04.10, 22:01:34 »
in php blocks do NOT use php start / end tags ...
simple use ssi_recentposts(); not more  ;)

Fel

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

Offline ActivePatriot

  • Newbie
  • *
  • Posts: 11
  • Gender: Male
Re: Recent Posts do not show in the block
« Reply #2 on: 26.04.10, 22:42:28 »
I figured that out in the past!

I was using it as an example of what I did in the HTML frontpage block.

In the PortaMx recent post block, it sets everything for you so there is no user input for this.

Does the PortaMx block use ssi_recentposts();?

If so why can I get it to show on my frontpage, but it doesn't show in the PortaMx block?

I was thinking it was file path related.

I can show you better by this:  ActivePatriot.Org

Left side Recent Posts block empty.
Frontpage near bottom I can pull Recent Posts.

I'm putting on frontpage until I get the Recent Posts block working.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Recent Posts do not show in the block
« Reply #3 on: 27.04.10, 11:58:20 »
You have defines the board you will see new post from?
Note the call parameter:
Code: [Select]
ssi_recentPosts($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo')You have to set a list of boards for $include_boards as array ...

Why you not use the New Post block from PortaMx ?

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

Offline Tormod

  • Newbie
  • *
  • Posts: 22
  • Gender: Male
    • Fuglepraten.no
Re: Recent Posts do not show in the block
« Reply #4 on: 27.04.10, 22:26:52 »
I use New Posts block from PortaMx, I set it to show 6 posts, but now it show only 2, one fever than yesterday. Why does it not show 6 posts? I set the block to show posts from only one board.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5586
  • Gender: Female
Re: Recent Posts do not show in the block
« Reply #5 on: 27.04.10, 22:41:02 »
SMF itself use a logic to find the number of recent posts, which is calculated by:
$modSettings['maxMsgID'] - 25 min($num_recent5)


Have this board only older posts and the other boards have many new posts, the recent post returns less then max.

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

Offline Tormod

  • Newbie
  • *
  • Posts: 22
  • Gender: Male
    • Fuglepraten.no
Re: Recent Posts do not show in the block
« Reply #6 on: 27.04.10, 22:57:48 »
Okey. Maybe I should include more than one board to get enough posts. Thank,s for very good support as usuall Feline.v :)