11
MetalHellsAn
Re: Xoops & Dynamic Iframes - Making your Other pages Fit in

I have previousely framed pages using this script whithout needing an exact name of the page. you should be able to put in the addy

http://68.68.54.193:8080/

in the frame script as is.

Quote:
<iframe id="myframe" src="http://68.68.54.193:8080/" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>


Like that without any problems. I did it on my page here

with the address above

Angel



12
MetalHellsAn
Re: Lyrics module (need help)

Can't wait for this to come out I really Need it



13
MetalHellsAn
Re: Xoops & Dynamic Iframes - Making your Other pages Fit in

Ok I framed your page easily you can see it Here Now from what I can tell you have missed some of the instructions.

Look at the code you inserted in header.php and find

Quote:
var iframeids=["myframe"]


the Myframe is the name of the frame your using you can add multiple frame names into this to use multiple frames on your website.

in the code you insterted in header.php there were these instructions right above the code I told you to locate.

Quote:
Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:


You have to name your frame name it somethile radio2 so that it looks like this.

Quote:
var iframeids=["Radio2"]


Now you have to make name the frame code in your block by editing the block you made. the iframe code would look like this

Quote:
<iframe id="Radio2" src="http://www.imp96ss.com/shout_stats/radio2.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>


Now the next time you want to use a dynamic iframe you go into header.php find

Quote:
var iframeids=["Radio2"]


and add a new name for the new frame so it loooks like this

Quote:
var iframeids=["Radio2", "secondframe"]


then you would create another block and put the iframe code in so it looks like this

Quote:
<iframe id="SecondFrame" src="www.mywebsite.com/secondpage.php" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>



I hope this helps you

Angel



14
MetalHellsAn
Re: Xoops & Dynamic Iframes - Making your Other pages Fit in

Well this must be the strangest Thing, I'v used this iframe lot's of times in conjuction with many scripts and never ever had a problem. Very Very Strange to me.



15
MetalHellsAn
Re: Xoops & Dynamic Iframes - Making your Other pages Fit in

I don't know if your linking to a page on your own server or not but try using the entire url for the (src="") ie.. instead of putting ../radio/radiopage.php put www.mypage.com/radio.php

if this doesn't work Let me see the how your adding the code in header.php also give me a direct ling to the main page your wanting framed.

P.S. don't edit the iframe code at all except to add the address to the page (ie..src="externalpage.htm" ) and the frame id (ie..id="myframe") becuse I'm not quite sure why it isn't working for you.

Here's a link to the site I'm building the frame I used is right there on the main page.

(don't be harsh I'm still building it...lol..



16
MetalHellsAn
Re: Bringing users & posts from phpbb2 to xoops

Thanks so much and yes it does look tedious...lol



17
MetalHellsAn
Bringing users & posts from phpbb2 to xoops

How would I do this? Is there a program of some sort?


thanks in advance,
Angel



18
MetalHellsAn
Re: Xoops & Dynamic Iframes - Making your Other pages Fit in

I have framed the sam pages for the station just fine and it is a php page. Very Nice site btw. Looks good.

As I said I used the hack above and put the www.mysite.com/sam/index.php inside the frame and it worked very well. you can see the whole page clicking links that resized the page automatically resizes the frame.



19
MetalHellsAn
Xoops & Dynamic Iframes - Making your Other pages Fit in


I only Downloaded XOOPS last week and am already in love with it. I wanted use XOOPS for a radio station whose website I am designing. Due to the fact the the playist and request system is in itself a separate Entity entirely I went on spreed of searching for a way to make those pages fit in. And This is the result of that work.

What I found was a dynamic Iframe put out by Dynamic Drive and while the Iframe in itself is very beutiful and works wonders at makeing the page in the frame look as if it were apart of the site It required me to add a bit of code to header.php to get it to work in XOOPS This is probably one of the smallest and easyest hacks I'v ever done. And works great. So let me quit rambeling on and tell you how it's done.


Open Header.php

Find:
?>


and After add
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library
* (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original
* DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically
// resize to match its content height:
//Separate each ID with a comma. 
//Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't 
//support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var 
FFextraHeight=parseFloat(getFFVersion)>=0.116 

//extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var 
dyniframe=new Array()
for (
i=0i<iframeids.lengthi++){
if (
document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var 
tempobj=document.alldocument.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function 
resizeIframe(frameid){
var 
currentfr=document.getElementById(frameid)
if (
currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight//ns6 syntax
currentfr.height currentfr.contentDocument.body.offsetHeight+FFextraHeight
else if (
currentfr.Document && currentfr.Document.body.scrollHeight//ie5+ syntax
currentfr.height currentfr.Document.body.scrollHeight;
if (
currentfr.addEventListener)
currentfr.addEventListener("load"readjustIframefalse)
else if (
currentfr.attachEvent){
currentfr.detachEvent("onload"readjustIframe// Bug fix line
currentfr.attachEvent("onload"readjustIframe)
}
}
}

function 
readjustIframe(loadevt) {
var 
crossevt=(window.event)? event loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function 
loadintoIframe(iframeidurl){
if (
document.getElementById)
document.getElementById(iframeid).src=url
}

if (
window.addEventListener)
window.addEventListener("load"resizeCallerfalse)
else if (
window.attachEvent)
window.attachEvent("onload"resizeCaller)
else
window.onload=resizeCaller

</script>


NOTE: in the code you just added find:

var iframeids=["myframe"]


and follow the instructions above it to name your frame.


Save and close the file once your done.

Now in your Admin control panel create a new block with the following code:

<iframe id="myframe"
src="externalpage.htm" scrolling="no"
marginwidth="0" marginheight="0"
frameborder="0" vspace="0" hspace="0"
style="overflow:visible; width:100%;
display:none"
></iframe>



NOTE: Change Myframe to whatever you named your frame in the script.

Thats it Now you have a beautiful Iframe with your content in your site.

Notes:
Depending on the size of the page your useing in the iframe sometimes it's best to use only 2 columns instead of 3.


Enjoy,
Angel




TopTop
« 1 (2)



Login

Who's Online

211 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits