I think there's some sort of conflict between the clasa nd WordPress. I hope it works for you shahrukhbachan, but if it doesn't try using an RSS importer to import the latest threads directly from your forum's RSS feed.
i tryed the script to , to show the latest posts /treads
but i dont get a error , instead of a error it doesnt show a thing
(it shows the text latest treads and latest post but whitout info
)
Greets From The Crasher
if you have done everything as i wrote, everything would be ok.
i dont know for what version it is meaned to , probaly becouse i still use version 1.2 (becouse all the plugins
)
but i founded a other plugin already for the news i wanted
Still , Thank you for your support
Greets From The Crasher
Thanks for this nice parser but i have a problem with including it toa page. When im directly open the latest post php file it shows the latest post correctly, but integratet toanother site wont work.
i tried to include the latestposts.php
<?php
<?php include "{$_SERVER['DOCUMENT_ROOT']}/forum/latestposts.php"; ?>
but i showes nothing
any idea ?
you can use a curl methode directly to the file
thats how i do it whit my newspage
<?php
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, 'PUT HERE YOUR COMPLETE URL TO THE FILE');
$status_contents = curl_exec($c);
curl_close($c);
?>
//to execute and show the command , please use this command
<?=$status_contents;?>
i hope this works for you
for me it works
Greets From The Crasher
(2008-12-03, 09:59 PM)crowba Wrote: [ -> ]Thanks for this nice parser but i have a problem with including it toa page. When im directly open the latest post php file it shows the latest post correctly, but integratet toanother site wont work.
i tried to include the latestposts.php
<?php
<?php include "{$_SERVER['DOCUMENT_ROOT']}/forum/latestposts.php"; ?>
but i showes nothing any idea ?
Nice many thx
that worked for me.. thanks alot. but now to thesecond problem, is it possible to trim the string after x charakters because the long threadnames break my layout.
the thing you can do is putting it into a table
so it get breaked to a new line when it enter the table (see previeuw at
http://powerchaos.info)
so you keeps your layout and prevent that it mess up your lay out
how to do that ?? , cant help whit it becouse i dint design my own website
Greets From The Crasher
Well
$kurz = substr($row[2], 0, 22);
did the job an cutted the string off after 22 chars
Hey,
In the same way you can do with posts:
PHP Code:
<h3>Latest posts from forum X</h3>
echo $mybb->posts(5, 2);
is it also possible to exclude a forum from showing the newest posts ?!
its not working with me , lots of errors