SimplePortal

Customization => Custom Coding => Topic started by: bearstreet on September 29, 2012, 12:29:13 AM

Title: how to show recent posts block in wordpress like simple portal recent posts bloc
Post by: bearstreet on September 29, 2012, 12:29:13 AM
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.
Code: [Select]
<?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
Title: Re: how to show recent posts block in wordpress like simple portal recent posts bloc
Post by: AngelinaBelle on October 01, 2012, 12:04:50 PM
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.


SimplePortal 2.3.8 © 2008-2024, SimplePortal