1 cindyrae Mar 12, 2008 13:57
3 cindyrae Mar 14, 2008 00:50
Guess I was confusing. :-/
Actually, I wasn't talking about plugin or widget code; I was referring to using the built-in Free HTML widget.
I want to add my own Free HTML via the built-in Free HTML widget from the back office. The free html I want to add references an image in the rsc directory, and I don't know how to do so correctly with my parked domain.
For example,
<li><a href="http://www.thewildlifeporch.com?tempskin=_rss2"><img src="http://www.thewildlifeporch.com/rsc/icons/myrssfeedicon.gif"/>RSS Feed</a></li>
does not work as free html. Neither does
<li><a href="http://www.thewildlifeporch.com?tempskin=_rss2"><img src="rsc/icons/myrssfeedicon.gif"/>RSS Feed</a></li>
I could write my own widget to do this, but it's frustrating to go to those lengths instead of just dumping it into a Free HTML widget in the backoffice.
Thanks,
Cindy Rae
4 afwas Mar 14, 2008 01:01
Make sure the icon is where you say it is. There is no icon at http://www.thewildlifeporch.com/rsc/icons/myrssfeedicon.gif but (example) there is an icon at http://www.thewildlifeporch.com/rsc/icons/feed-icon-16x16.gif
I think your problem is really simple. ;)
5 edb Mar 14, 2008 01:02
Free HTML is for HTML but ?tempskin=_rss2 is PHP stuff, so yeah it's not going to work that way.
Visit your page in a browser. Point to the image you want. Right click and select "properties". Now copy the "Location" bit and paste that into your free HTML block. That should work...
6 cindyrae Mar 14, 2008 02:52
Okay, don't ask me what was broken originally that had me stumped for so long... but it works now.
Thanks for the responses, guys.
You can see this in action at www.thewildlifeporch.com.
I added the free html to the menu section of my skin.
The free html:
<li>
<a href="http://www.thewildlifeporch.com?tempskin=_rss2">
<img src="http://www.thewildlifeporch.com/rsc/icons/feed-icon-12x12-light-orange.png" alt="" />
RSS Feed</a>
</li>
(Yes, the "nbsp;" isn't pretty, but I'll get around to styling the free html later).
Hope this saves someone else some time,
Cindy Rae
Hi CindyRae,
From within widgets and plugins you use one of the several variables where paths are stored. That will internally generate an absoulte path from the root of your server. This snippet is from the smilies plugin to demonstrate:
Good luck