HTML Code and Joomla!

Status
Not open for further replies.

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
Hello All

Quick question, Can anyone tell me how to add the Radio Reference API key HTLM code for a feed into Joomla?

Thanks
 

AK9R

Lead Wiki Manager and almost an Awesome Moderator
Staff member
Super Moderator
Joined
Jul 18, 2004
Messages
11,194
Reaction score
10,866
Location
Central Indiana
I don't know Joomla, but I do know Drupal which is similar in some respects.

In Drupal, I created a block and added this code to the block:

Code:
<script language="JavaScript" 
 src="http://api.radioreference.com/js/?key=xxxxxxxx&feedId=yyyy&as=0&width=80px">
</script>

The trick in Drupal is that you have to tell it that the block contains HTML otherwise Drupal will try to display it as formatted text and that doesn't work because of the Javascript call.

With the block created, it's then a matter of assigning the block to a region on the page.

Don't know if this helps, but it may spark some thinking.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
Bezking

I'd like to either create a menu box and put it below the "Who's online" area, but if that isn't possible the second choice is to put it at the bottom of the front page. above the footer.

W9RXR

I'll have a look and see if I can do this. I know it can be done, I've seen HTML code imbedded on other Joomla pages. I have a fear though that it is a 1.6 thing and I am running 1.5. easy fix after I update my server php version (Which won't be an easy task)

I'd like to at least try to make this work, but later this fall I do plan to purchase vBulletin and completely re-build my site again so it might almost not be worth it to add if it proves to be a task.

Thanks for the replies - will give it a shot!
 

bezking

Member
Joined
Aug 5, 2006
Messages
2,656
Reaction score
26
Location
On the Road
You have to create a new Module. (Extensions->Module Manager->New) Give it a title, change the Position and Order to fit your liking and paste that code that RXR posted into the "Custom Output" field (if you see a little button there that says HTML you have to press it and paste the code into the resulting popup).
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
Interesting, Forgot about that menu

I keep getting "your browser doesn't support iFrames" However the new menu box is being displayed on the front page now.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
Guys

Well you both got me to where I need to be, I just have to figure out this iFrames issues. Thanks for the help and point in the right direction I'm sure this is something simple i am over looking.

Thanks again!
 

bezking

Member
Joined
Aug 5, 2006
Messages
2,656
Reaction score
26
Location
On the Road
Yeah, I looked at your page, the code is gone and it was replaced by the actual text "your browser does not support iframes" - which tells me you need to go back and re-add the code.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
I pulled it down while I researched the problem. I even moved it to the footer, still no luck. to verify it is not my browser I pasted it into a HTML Text box on WordPress and it worked just fine. I've been reading some things about iFrame and HTML versus DHTML (Joomla uses DHTML) That DHTML says that "your browser doesn't support iFrames" is depreciated.

I viewed it in IE7, Firefox, Chrome and Opera and it refuses to display. I'm looking at my plug-in's now to see if they hold the solution. I did read that with Joomla 1.5 this is supposed to be a piece of cake, but so far NOTHING about php has been a piece of cake. It seems to always have some hidden little glitch.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
OK, So Bez ....

I followed your step-by-step instructions tonight to slap in another script. compliments of weather underground. It worked fine. in fact when I clicked update on the HTML editor the sticker appeared perfectly in the module. I did this also with a web calendar and again success.

I am not a HTML rocket scientist so I am not even going to begin to question why the Radio Reference API isn't working (yet) but I did want to update you and rule out my web server. Maybe you can think of something else I can try.

Thanks for all your help, The both of you!
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Reaction score
113
Location
Virginia
kb32 Saved the day! Thanks kb32

This was the fix and it was both a snap to load and use! Like it so much I just downloaded the YouTube module for Joomla!

kb32, Again Thank you! :p
 
Status
Not open for further replies.
Top