phpCOIN

Forum Rules Themes: Other

For questions and issues dealing with free and/or paid themes provided by others. This forum is moderated and answered by the theme developer(s), not by phpCOIN staff

  Reply to this topicStart new topic

> page design, adding "include" don't want an iframe
odhed
Posted: February 06, 2010 05:18 am
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



I'm sorry if this is not the right room for this question, my question is can i use "include" or "header" function on a page? i want to wrap another page from another url, but i dont want to use and "iframe" ..

Thx
PMEmail Poster
Top
lightman
Posted: February 06, 2010 05:37 am
Quote Post


The Janitor
***

Group: Admin
Posts: 3,641
Member No.: 3
Joined: August 25, 2006





--------------------
***** Unless otherwise stated, all replies refer to the following *****
====================================================================
--- The latest unmodified version of phpCOIN available from the phpCOIN download page on the date and time of this post.
--- All relevant HotFix files applied - One of the four included unmodified themes - The original language files .
--- Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)
PM
Top
odhed
Posted: February 06, 2010 05:50 am
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



Thank you sir, i'll check that ,, smile.gif
PMEmail Poster
Top
odhed
Posted: February 06, 2010 06:03 am
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



I have read it and i still can find the answer ... if i'm not mistaken that docs tells how to wrap phpcoin inside my web page design ,, and what i need is to wrap another page into phpcoin.

Ex:
I make menu on main menu with name "google"
and when i click that menu .. voila.. google.com appear on phpcoin page .. smile.gif

I've tried to make a page, and put an iframe code on it, and it works .. but i dont want to use an iframe code, can i use "include" function?

Thx
PMEmail Poster
Top
odhed
Posted: February 06, 2010 08:06 am
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



i have read
CODE
http://docs.phpcoin.com/index.php/Auxpages
and i think this is what i need ..
I made 1 new page and put this code in a content ..
CODE
<?PHP include "https://www.xxx.yyy" ?>

but it shows nothing .. why? do idid something wrong?

Thx
PMEmail Poster
Top
lightman
Posted: February 06, 2010 11:28 am
Quote Post


The Janitor
***

Group: Admin
Posts: 3,641
Member No.: 3
Joined: August 25, 2006



A white page is almost always the result of a php syntax error

IN your case, I suspect you have not ended the line within the php opening and closing statements with a ; (semi-colon)


--------------------
***** Unless otherwise stated, all replies refer to the following *****
====================================================================
--- The latest unmodified version of phpCOIN available from the phpCOIN download page on the date and time of this post.
--- All relevant HotFix files applied - One of the four included unmodified themes - The original language files .
--- Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)
PM
Top
odhed
Posted: February 09, 2010 09:06 am
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



Thank You for your response, but it still show a blank page,,
so .. i think i move on with iframe ..

Thank You
PMEmail Poster
Top
lightman
Posted: February 09, 2010 01:00 pm
Quote Post


The Janitor
***

Group: Admin
Posts: 3,641
Member No.: 3
Joined: August 25, 2006



You could maybe use something like
HTML
<?php

?
>
<div id="frameContainer"></div>
<script type="text/javascript">
onload=function(){
var el=document.getElementById("frameContainer")
el.innerHTML="<iframe src=\"http://www.google.com\" height=\"600px\" width=\"100%\" frameborder=\"0\"></iframe>"
}
</script>
<?php

?
>


--------------------
***** Unless otherwise stated, all replies refer to the following *****
====================================================================
--- The latest unmodified version of phpCOIN available from the phpCOIN download page on the date and time of this post.
--- All relevant HotFix files applied - One of the four included unmodified themes - The original language files .
--- Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)
PM
Top
odhed
Posted: February 09, 2010 01:36 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



wow ,, thank you .. I'll try that now .. smile.gif
PMEmail Poster
Top
odhed
Posted: February 09, 2010 01:54 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 65
Member No.: 276
Joined: September 19, 2006



Update:

I have tried that code, and it's still showing a blank page ,,
*rolling back to traditional iframe .. smile.gif
PMEmail Poster
Top
lightman
Posted: February 09, 2010 01:55 pm
Quote Post


The Janitor
***

Group: Admin
Posts: 3,641
Member No.: 3
Joined: August 25, 2006



I tested the code - it works - ensure you have NO whitespace after the final ?>


--------------------
***** Unless otherwise stated, all replies refer to the following *****
====================================================================
--- The latest unmodified version of phpCOIN available from the phpCOIN download page on the date and time of this post.
--- All relevant HotFix files applied - One of the four included unmodified themes - The original language files .
--- Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 


Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com