Hi
i want to show updated blogs same as blogger.com on header !
i have found some javascripts that do it but i can't use them on WPMU home's theme.
who can help me....
you can get related java script here:
http://www.dynamicdrive.com/dynamicindex2/
and
http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm
Please help me !
In the download file is a theme called HOME. In that theme there's a page called home.php.
It has a piece of code in it to show last 5 updated blogs.
If you want more that that, please search for "most recent posts'. we've covered it extensively.
Yes,andrea i've found this codes:
------------------------------------
<?php $blogs = get_last_updated();
if( is_array( $blogs ) ) {
?>
<?php foreach( $blogs as $details ) { ?>
"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?>
<?php } ?><?php } ?>
--------------------------------------
but i tried to mix it with a javascript , unfortunately it doesn't work.
please guide me how to use "updated blogs" codes on java scripts !
or anyone can do it and share with us !
cafespain
Member
Posted 17 years ago #
"javascripts"? You are going to have to explain in a bit more detail what you are trying to achieve.
The code Andrea pointed to you get's the updated blogs and outputs them in a set format. If your javascript needs them in another format then you either have to change the javascript or change the php code so that they match and work together.
ok , you can find related javascript codes here:
http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm
Please test it with "latest blogs" codes...
i've test it but it didn't work..