SimplePortal

Support => English Support => Topic started by: hacktec on July 06, 2010, 02:34:31 AM

Title: specific post
Post by: hacktec on July 06, 2010, 02:34:31 AM
hello

how can I add in my portal block this:

something like the boardnews but, just showing one post, I dunno if this is a custom php block

display only one post that I'd want

----------------------------
version:
smf 2.0rc3
simpleportal: 2.3.2
Title: Re: specific post
Post by: 130860 on July 06, 2010, 10:47:24 AM
you could do that with  ssi_fetchPosts  function


this particular code will show only the body of the message:

Code: [Select]
$post = ssi_fetchPosts(1, NULL, NULL);
echo $post[0]['body'], '<br />';


where 1 is the ID of the post you want it to show
Title: Re: specific post
Post by: hacktec on July 07, 2010, 09:30:27 PM
but, I need to show just, the first image, and the link

----------------------------------
|                                        |   
|             IMAGE                 | 
|                                        |   
|                                        |   
|                                        |   
|                                        |   
|                                        | 
| -----------------------------   | 
|__________LINK ______|
Title: Re: specific post
Post by: hacktec on July 07, 2010, 09:31:06 PM
not the complete post xD
Title: Re: specific post
Post by: 130860 on July 08, 2010, 12:28:35 PM
well you didn't specified on your first post didn't you?

sorry, I can't think of an easy way to do that.
SimplePortal 2.3.8 © 2008-2024, SimplePortal