Very nice budduke.
Its looking pretty good, and easily modified to cater to anyone's specific needs. I'm just wondering if there is a way to allow for the linking to those new threads, user names, and categories. I'm going to keep pushing to see if I could get the SSI.php to work. Maybe I'll play around with your code, and see how it goes from here.
EDIT: Having set "array" to "echo" seemed to crash my site by making the posts show up on the index page with a white background, and an error below shows up. However, the posts, user names, and categories are all linked up! I thought that was a little funny.
Fatal error: Cannot use string offset as an array in /home/sayyo1/public_html/taintedpix/includes/template.php(101) : eval()'d code on line 11
EDIT2: Alright, I figured it out, and the look is pretty nice! I'm liking it. I'm sure I'm not as well versed with code budduke, so this is what you meant to probably use in order to use "echo". I shortened the code.
<?php
$test=smf_api_recent_posts(6, null, "<ul>", " ", "echo");
$var=0;
unset($test);
flush();
?>
How it shows up...
http://taintedpix.com/testindex.phpI'm wondering what other streams of code could be used like recent "members", "new threads"? I'm guessing it all has to do with looking through the smf_api file, right?
ANOTHER EDIT/UPDATE: Wow, the code works great, and is almost exactly how I want it! Its a little bunched up, but maybe here are ways to fix all of that. That is probably the only difference between the "smf_api_2.php" seems to be different from the "SSI.php features.
Here are the examples...http://taintedpix.com/forum/smf_api_2_examples.phpvs.
http://www.simplemachines.org/community/ssi_examples.phpAs of right now, my test page I have linked above has just the raw code put directly into where I need it rather than inclusion of the smf_api_posts.html file. I have also removed the code from the page_header.php file with no problems. However, I'm trying to add two other functions... New Topics and Users Online.
Now when I tried the code you have listed above for Posts and tried to convert to "Topics", it seemed to still just show Posts on my page. Very odd. I must be missing something here. I have tried to modify the code above as shown below, but it still just shows Posts.
<?php
$test=smf_api_recent_topics(6, null, "<ul>", " ", "echo");
$var=0;
unset($test);
flush();
?>