Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Getting image into blog code?
Old 03-07-2009, 03:40 PM Getting image into blog code?
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
I have this code:

PHP Code:
<?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
I'm trying to use an image in it instead of the text link. Something such as this:

PHP Code:
<img alt="RSS" src="<?php bloginfo('template_directory'); ?>/images/feed-icon-16x16.gif" style="vertical-align:-3px;"  />
I'm new to php and have been struggling for hours with this. Any suggestions greatly appreciated.
andrew99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-07-2009, 04:14 PM Re: Getting image into blog code?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Couldn't you just replace the text with the image code?

PHP Code:
<?php 
comments_rss_link
(__('<img alt="RSS" src="/images/feed-icon-16x16.gif" style="vertical-align:-3px;"  />')); 
?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 03-07-2009, 06:01 PM Re: Getting image into blog code?
Skilled Talker

Posts: 62
Name: Andrew
Trades: 0
Nullpointer - That's what I thought, but it's no go. I tested it over and over with no success. Let me know if you have any other ideas.
andrew99 is offline
Reply With Quote
View Public Profile
 
Old 03-08-2009, 05:38 PM Re: Getting image into blog code?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Maybe this works...?
PHP Code:
<?php 
comments_rss_link
(__('<img alt="RSS" src="'.bloginfo('template_directory'); .'/images/feed-icon-16x16.gif" style="vertical-align:-3px;"  />')); 
?>
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Getting image into blog code?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.50121 seconds with 12 queries