ssi_fetchPosts to display images?

Started by vrdict, July 22, 2013, 02:32:53 PM

Previous topic - Next topic

vrdict

I'm trying to incorporate posts into a jquery slider, the following works but it only displays the text of the message and not the images contained in the body as well:
<?php $post ssi_fetchPosts(3NULLNULL);
echo 
$post[0]['body'], '<br />'?>


If I use <?php ssi_boardNews(); ?> then it displays the images, but I only want to hand pick a couple posts out to display.

So I tried <?php $post_info ssi_fetchPosts(3falseNULL); ?> but panel-wrapper just shows up blank then.

Kindred

looks like ssi_fetchPosts does not run the post through the BBC parser...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

vrdict

So I can't use fetchPosts for my purposes? What would be the best way for me to get the images to display? Is there a way to use ssi_boardNews to display a specific post by ID? Something like

<?php ssi_boardNews(3NULLNULL); ?>

vrdict

Nevermind I got it working after I understood what you meant. I used parse_bbc instead and they're showing up now. Thanks.

Kindred

yup... that's what I was going to suggest. :) it looks like the content need to be run through the parse_bbc fucntion is you read it out an an array. :)

Glad you got it working
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: