jemmy655 / sweetcron

Automatically exported from code.google.com/p/sweetcron
0 stars 0 forks source link

How is determined if it's a blog/photo/status? #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've added feeds (like my weblog and twitter).
Posts from my (other) weblog are shown as photo. Why?

See http://www.stranger.nl/

Regards,
Stefan Stranger

Original issue reported on code.google.com by ste...@stranger.nl on 28 Aug 2008 at 10:13

GoogleCodeExporter commented 8 years ago
see the API docs

this is not a sweetcron issue, this is just a case of you needing to customise 
your theme.

please use the sandbox theme _activity_feed.php for a better understanding of 
the API.

Original comment by yongf...@gmail.com on 28 Aug 2008 at 11:55

GoogleCodeExporter commented 8 years ago
Found it ;-)

Added the next to _activity_feed.php

<!-- this item came from blogs.technet.com -->
            <?php elseif ($item->get_feed_domain() == 'blogs.technet.com'): ?>
            <li class="activity_item regular<?php if ($i % 3 == 0):?> last<?php 
endif;?>">
            <div class="activity_list_inner">
            <span class="type_label blog"></span>
                <div class="regular_container blog">

                    <p>From Microsoft Technet Blog</p>
                    <h2><a href="<?php echo $item->get_permalink()?>"><?php echo 
$item->get_title()?></a></h2>
                    <div>
                    <?php echo word_limiter(strip_tags($item->get_content()), 25)?> 
[<a href="<?php echo $item->get_permalink()?>">continue</a>]
                    </div>
                </div>

Original comment by ste...@stranger.nl on 28 Aug 2008 at 7:38