26 messages in com.googlegroups.sweetcron[Sweetcron] Re: Different Looks for D...
FromSent OnAttachments
Cory O'BrienNov 1, 2008 3:27 pm 
MilanNov 1, 2008 4:29 pm 
ChanNov 6, 2008 4:40 pm 
chrisskeltonNov 6, 2008 4:59 pm 
onefish2Nov 6, 2008 10:04 pm 
yongfookNov 6, 2008 10:22 pm 
onefish2Nov 7, 2008 6:21 am 
yongfookNov 7, 2008 6:40 am 
onefish2Nov 7, 2008 6:58 am 
yongfookNov 7, 2008 7:03 am 
onefish2Nov 7, 2008 7:16 am 
ChanNov 8, 2008 7:59 pm 
yongfookNov 8, 2008 8:49 pm 
Jeroen SmeetsNov 9, 2008 2:32 am 
docfloNov 9, 2008 3:10 am 
xzolianNov 9, 2008 6:30 am 
Jeroen SmeetsNov 9, 2008 10:35 am 
Jeroen SmeetsNov 9, 2008 11:42 am 
ChanNov 9, 2008 6:11 pm 
yongfookNov 9, 2008 6:24 pm 
ChanNov 10, 2008 5:37 pm 
TomakunDec 9, 2008 10:19 pm 
Jon Yongfook CockleDec 10, 2008 2:47 am 
TomakunDec 10, 2008 5:22 am 
TomakunDec 18, 2008 6:17 pm 
Jon Yongfook CockleDec 19, 2008 12:43 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[Sweetcron] Re: Different Looks for Different Feeds from Same Site?Actions...
From:onefish2 (stev@gmail.com)
Date:Nov 7, 2008 7:16:30 am
List:com.googlegroups.sweetcron

Thank you. That worked.

On Nov 7, 10:03 am, yongfook <yong@gmail.com> wrote:

your conditional statement isn't a conditional.

it should be something like

if ($item->get_feed_url() == 'whatever.com/blah') {

} On Fri, Nov 7, 2008 at 11:58 PM, onefish2 <stev@gmail.com> wrote:

Thanks for your quick help yongfook.

These are my feeds:

This is my array before:

<?php $myarray['exploitthesystem.com'] = 'I blogged on '; $myarray['onefish2.com'] = 'I blogged on '; $myarray['twitter.com'] = 'I tweeted on '; $myarray['brightkite.com'] = 'I checked in on '; $myarray['pikchur.com'] = 'I put this photo on '; $myarray['digg.com'] = 'I dugg this on '; $myarray['delicious.com'] = 'I bookmarked this on '; $myarray['furl.net'] = 'I researched this on '; $myarray['youtube.com'] = 'I watched this video on '; ?>

After the change:

<?php $myarray['exploitthesystem.com'] = 'I blogged on '; $myarray['onefish2.com'] = 'I blogged on '; $myarray['twitter.com'] = 'I tweeted on '; $myarray['brightkite.com'] = 'I checked in on '; $myarray['pikchur.com'] = 'I put this photo on '; $myarray['digg.com'] = 'I dugg this on '; $myarray['delicious.com'] = 'I bookmarked this on '; $myarray['furl.net'] = 'I researched this on '; $myarray['flickr.com'] = 'I put this photo on '; if (http://www.youtube.com/profile_videos?user=onefish2) { $myarray['youtube.com'] = 'I posted this video to'; } else { $myarray['youtube.com'] = 'I favorited this video on'; } ?>

And this is the error: Parse error: syntax error, unexpected ':' in /home/content/o/n/e/ onefish2/html/system/application/views/themes/boxy_green/ _activity_feed.php on line 30

On Nov 7, 9:41 am, yongfook <yong@gmail.com> wrote:

how about you post yours, and I tell you what you're doing wrong?

On Fri, Nov 7, 2008 at 11:21 PM, onefish2 <stev@gmail.com> wrote:

I still could not get this to work. Can some one please post the exact snippet of code that they used in their activity_feed.php.

On Nov 7, 1:22 am, yongfook <yong@gmail.com> wrote:

I posted the solution to this already, trying doing a search next time:

$myarray['flickr.com'] = 'I snapped a photo'; $myarray['digg.com'] = 'I dugg something';

and then in your item loop just echo out the array key you want using $item->get_feed_domain() as the key:

echo $myarray[$item->get_feed_domain()];

if you want to use different messages from the same site just put a conditional in when building your array:

if (some conditional) { $myarray['flickr.com'] = 'I snapped a photo';} else {

$myarray['flickr.com'] = 'I favourited a photo';}

$myarray['digg.com'] = 'I dugg something';

the conditional could be the feed url or the feed ID (if you know it, from the database).

easy.

On Fri, Nov 7, 2008 at 3:05 PM, onefish2 <stev@gmail.com> wrote:

I would like to know the answer to this as well. I tried doing this on my site to no avail.

On Nov 6, 8:00 pm, chrisskelton <ske@gmail.com> wrote:

I was wondering the exact same thing. If someone that has that setup could please upload the contents of their _activity_feed.php file it would be greatly appreciated.

On Nov 6, 7:41 pm, Chan <chan@gmail.com> wrote:

Can somebody help with this please?

How can we have a different caption for a different feed from the same domain? Example on Yongfook.com : 'I recorded a video on Youtube' // 'I favoured a video on Youtube'

Help would be really appreciated.