PDA

View Full Version : Iframe/PLUGIN... in template


Samish
02-16-2010, 02:04 PM
If i put an iframe in a div and it included a radio... would the radio stay running or would it run when someone opens a thread etc?

Or can someone help me with making a plugin...?

Ive tried using this
ob_start();
include('http://www.trusthabbo.net/staff/_frontend/djSays.php');
$djsays = ob_get_contents();
ob_end_clean();

On global_start and forumhome_start but then the forum doesnt show? any ideas would be appreciated thanks

kh99
02-16-2010, 02:16 PM
Hmm...I think that's a problem because when you read the file from that URL you get HTML back and not php, so I don't think you can include it like that. Maybe you could try using readfile instead of include: http://us2.php.net/manual/en/function.readfile.php

Samish
02-16-2010, 02:44 PM
That doesn't work either :s

Is there anyway i can include the contents, and make them stay with refreshing everytime someone views a thread|?

kh99
02-16-2010, 02:48 PM
Well, I'm not an HTML expert, but I think you could do it with iframes if the radio and the thread were in different frames, but I don't think it helps to put the radio in an iframe if the entire page will be reloaded. Maybe just open the radio in it's own small window?

Samish
02-16-2010, 02:55 PM
yeah im thinking tht too.. thanks
ill get an image made and link a popup radio