Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 931
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

how to show recent posts block in wordpress like simple portal recent posts bloc

Started by bearstreet, September 29, 2012, 12:29:13 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bearstreet

hi,
we can show the recent posts from smf in a wordpress website using ssi functions

But, how can we use the code of simple portal recent posts block on my wordpress website
I mean, the recent posts block of simple portal is well formatted, and using only ssi functions, makes it look ugly, but if there would be a way to use simple portal like blocks in my wordpress website, i w would like to know.
<?php require("/home/username/public_html/forum/SSI.php");ssi_recentTopics();?>

like this is the code for recent topics on my wordpress website.
but it is not formatted neatly like it is being done in simple portal recent blocks
so, i would like to know what code to write so that the recent posts block looks neat like the one shown here in simple portal recent posts block

AngelinaBelle

Basically, Simple Portal writes out a header line, similar to what is used for categories on the SMF board list, then it wraps a block around the recent posts information, similar to what is used in SMF topics and replies.

If you would like to see how Simple Portal does this, you may look in PortalBlocks.php, and also in Portal.template.php
To see how it is called/used, please see the "blocks in blocks" blog post here at Simple Portal
http://simpleportal.net/index.php?topic=5332.0
Please remember that Simple Portal code is availble to you under a license a bit different than the one SMF uses. Please follow the rules of Simple Portal's license.


Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?