SimplePortal
Support => English Support => Topic started 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
-
you could do that with ssi_fetchPosts function
this particular code will show only the body of the message:
$post = ssi_fetchPosts(1, NULL, NULL);
echo $post[0]['body'], '<br />';
where 1 is the ID of the post you want it to show
-
but, I need to show just, the first image, and the link
----------------------------------
| |
| IMAGE |
| |
| |
| |
| |
| |
| ----------------------------- |
|__________LINK ______|
-
not the complete post xD
-
well you didn't specified on your first post didn't you?
sorry, I can't think of an easy way to do that.