Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
RSS2 Add-on - Icon in Panel Header
Hi,
Does anyone know and therefore tell me, what the code is to put a Web Feed icon next to the Panel Title in the RSS2 add-on?
Everything I try doesn't seem to work, but I'm rubbish at PHP!
I'd like the Panel to say "Feeds " I've tried putting in various different code into this line of the default.php:
I know that this would put the image next to the word RSS in the list, but I thought if I could get it to do that then I might be able to get it to appear in the Panel Header.
Thanks in advance.
S
Does anyone know and therefore tell me, what the code is to put a Web Feed icon next to the Panel Title in the RSS2 add-on?
Everything I try doesn't seem to work, but I'm rubbish at PHP!
I'd like the Panel to say "Feeds " I've tried putting in various different code into this line of the default.php:
$Head->AddString("<link rel=\"alternate\" type=\"application/rss+xml\"
href=\"".$FeedUrl."\" title=\"".$Context->GetDefinition("RSS2Feed")."\" />");
I know that this would put the image next to the word RSS in the list, but I thought if I could get it to do that then I might be able to get it to appear in the Panel Header.
Thanks in advance.
S
0
This discussion has been closed.
Comments
Any other suggestions.
Thanks
$FeedText = $Context->GetDefinition("Feeds").' <a href="'.$FeedUrl.'"><img src="http://www.mydomain.co.uk/images/rss.png"></a>'; $Panel->AddList($FeedText, 100); $Head->AddString("<link rel=\"alternate\" type=\"application/rss+xml\" href=\"".$FeedUrl."\" title=\"".$Context->GetDefinition("RSS2Feed")."\" />");
and this is the original code:
$FeedText = $Context->GetDefinition("Feeds"); $Panel->AddList($FeedText, 100); $Panel->AddListItem($FeedText, $Context->GetDefinition("RSS2Feed"), $FeedUrl); $Head->AddString("<link rel=\"alternate\" type=\"application/rss+xml\" href=\"".$FeedUrl."\" title=\"".$Context->GetDefinition("RSS2Feed")."\" />");
Have I missed something?
Thanks for your time on this Minisweeper.
I'm cleaning the cache each time and tried it in multiple browsers.
$Context->Dictionary['Feeds'] = 'Feeds <img src="IMAGE URL" alt="" />';
(inside the php tags, obviously)If you can add the logo to the list item, you edit line 55:
$Panel->AddListItem($FeedText, $Context->GetDefinition("RSS2Feed"), $FeedUrl, "", " class=\"RSS2Feed\");
Dinoboff, thanks for your reply, I might experiment with that.
Minisweeper, Thanks for your time on this.
Hooray it works.
I'm looking at the code and I can't figure out how to do it.
I'd really appreciate if someone could just point out where I could put the image tag.
Thanks.
$Panel->AddList($channel_title.' <img src="SOME IMAGE" alt="" />', 10);
Ok, that doesn't seem to work. It does however move the panel to the top page. I have the feedreader panel set at 12, I changed the panel ordering but I don't think that will effect this though.
$channel_title .= ' <img src="IMAGE" alt="" />';
Thanks again SirNot.
I was doing this all on a mac in safari earlier and all looked lovely. I've just managed to have a look at the newly added icons in IE6 and firefox on mac and PC. In those browsers the icons came out like this:
but on the mac they look like they are supposed too:
I admit that I am using align="right" in the image code that SirNot gave to me, but I couldn't think of a quick way of doing this differently.
How do I go about fixing this problem? Do I wrap the img tags in div's then alter them in the css file?
Thanks again