SimplePortal

Support => English Support => Topic started by: digit on October 08, 2011, 08:17:20 AM

Title: sp_attachmentRecent - outside standalone
Post by: digit on October 08, 2011, 08:17:20 AM
 I am using the portal in stand alone mode.  However - I REALLY like the sp_attachmentRecent function, and would like to use it on my non portal homepage.

SO - I tried adding it to SSI.php, but it crashed my site. :)

Is there any way to do this?

Thanks!
Title: Re: sp_attachmentRecent - outside standalone
Post by: [SiNaN] on October 08, 2011, 08:21:14 AM
SimplePortal files are included in pretty much every page of forum. So you can just call the function directly, where you want it:

Code: [Select]
sp_attachmentRecent(array('limit' => 5), 0);
SimplePortal 2.3.8 © 2008-2024, SimplePortal