URL to your eFiction: http://www.endless.animara.org/index.php
Your version of eFiction: 3.3.1
Latest Patche(s): Yes
Any mods installed?: No
Have you modified your eFiction?: No.
Version of PHP: 4.4.2
Version of MySQL: 4.1.21-standard
Have you searched for your problem: Yes
Other Notes: none
State the nature of your problem: I'm trying to insert radio.blog into a custom page, but I've had no luck figuring out how to get the code to work.
Here is the code that's supposed to be put on the page:
<script type="text/javascript" src="" http://stat.radioblogclub.com/radio.blog/radio.blog.js"></script> [/code"]
and this:<script type="text/javascript">
RadioBlog.playlist = 'URL OF YOUR PLAYLIST.PHP';
RadioBlog.width = '200px';
RadioBlog.height = '200px';
RadioBlog.color.body = '#ECECEC';
RadioBlog.color.border = '#BBBBBB';
RadioBlog.color.button = '#999999';
RadioBlog.color.player_text = '#666666';
RadioBlog.color.playlist_text = '#666666';
RadioBlog.start();
</script>But the page looks like this: http://endless.animara.org/viewpage.php?page=test I've turned off tinymce to avoid it messing with the code but I still can't get it to work. And I have added in the URL for my playlist. And as a warning my grasp of efiction is still very shaky. Please don't use too many big words. π
According to the radio.blog instructions the first script needs to be in the <head> tags. You'll need to use an extra_header.php file to add it.
What's an "extra_header.php file"?
you create a file in your skin that you call extra_header.php ... and you put your code in it. π
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Okay, that's done. But I've found that a square grey box appears on the index page of my site. And how do you link back to the extra_header.php file on the custom page?
The box.... is your radio.blog box... if you look in the source code for the page, you'll see this:
<script type="text/javascript" src="" http://stat.radioblogclub.com/radio.blog/radio.blog.js"></script> ;"
<script type="text/javascript">
RadioBlog.playlist = ' http://www.endless.animara.org/skins/CSSZen/sounds/playlist.php';
RadioBlog.width = '200px';
RadioBlog.height = '200px';
RadioBlog.color.body = '#ECECEC';
RadioBlog.color.border = '#BBBBBB';
RadioBlog.color.button = '#999999';
RadioBlog.color.player_text = '#666666';
RadioBlog.color.playlist_text = '#666666';
RadioBlog.start();
</script>
And you don't need to link to eztra_header.php as all that file does is include more stuff in the header of each page of your efiction install (using that skin anyways).
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
And you don't need to link to eztra_header.php as all that file does is include more stuff in the header of each page of your efiction install (using that skin anyways).
But I want the radio.blog to only appear on one page, not the entire site.
Just took a look and I don't see the box on the index of your site..did you figure it out?
Also looked at the test page and the gray box is there.
Even though the extra_header file loads that info on each page...that line of code for the redio blog will only be invoked if called [i.e. should only have a box wherever you post that second bit of code.] Make sense?
The reason the box doesn't appear on the index page is because I deleted the extra_header file. I wasn't sure how long this would take and couldn't stand to see the box there.
But now I created it again with only this part of the code in it:
<script type="text/javascript" src="" http://stat.radioblogclub.com/radio.blog/radio.blog.js"></script> [/code"]
And the rest:<script type="text/javascript">
RadioBlog.playlist = ' http://www.endless.animara.org/skins/CSSZen/sounds/playlist.php';
RadioBlog.width = '200px';
RadioBlog.height = '200px';
RadioBlog.color.body = '#ECECEC';
RadioBlog.color.border = '#BBBBBB';
RadioBlog.color.button = '#999999';
RadioBlog.color.player_text = '#666666';
RadioBlog.color.playlist_text = '#666666';
RadioBlog.start();
</script>I placed in the custom file: http://endless.animara.org/viewpage.php?page=test .
Is that what you were talking about Chelle when you said that the blog should be invoked? But the information for the blog still isn't coming through.
Unrelated I am sure but.... you would be much better off creating the sounds folder OUTSIDE of the skins folder... since I doubt you have a different playlist for each different skin. Once again, I do not think this is the issue, but just an observation. π
I can see the radio.blog just fine with the URL but I also see it's not being pulled into your skin and THAT I don't quite understand. *scratches head*
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Yeah that's what I was talking about. Like Jacynthe, not sure why it isn't initializing on your custom page though...it's like something's keeping the javascript from working...
At least when viewing in Firefox..and I don't have java disabled.
hmmmm....
I moved the sounds folder outside the skin, Jacynthe, just because I'm sure you're right and this way the URL is a little smaller.
But I have no idea why the information isn't being received. π₯
I am using Firefox right now at home and when I do a right-click on the grey box, I see the contextual menu for Flash... I thought to do that because I thought I saw a flicker as I was loading the page... the exact same contextual menu I get from the radio blog when I pull up that playlist.php page.
I'm wondering if in your playlist.php file, you shouldn't put the whole URL to the xml file since the page you are trying to call that from is not in the sounds folder... so instead of
<?xml-stylesheet href=""template.xsl"" type="text/xsl"?>
maybe try
<?xml-stylesheet href="" http://www.endless.animara.org/sounds/template.xsl" ;" type="text/xsl"?>
Because you DO see something flicker in there so either it's too small or the xml issue is it...?
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
I know what you're talking about. I've seen the flicker, too. I tried the new code, but unfortunately it's still the same.
Could this maybe have something to do with the main code, with the background and such, needing to be in <body> tags? Or does the custom page automatically add that attribute?
have you tried making the box bigger to see if we maybe see the rest of the "radio"? cause it's like it's too small to see it.. or at least we could rule this explanation out if you did do that.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community