1
albertdebrui
Help with wrapping

Help. I need to include external web pages into my XOOPS environment. I've played with the various modules that claim they do this but they all seem to require the html page to be stored locally.

I need functionality like the "PostWrap" module for PostNuke. A module that displays an externally hosted page inside a XOOPS block or Frame. I don't want to create a local html file and "wrap" it, I want to point at an external web address and have that page (or pages) displayed inside my XOOPS pages.

Can someone help?

2
albertdebrui
Re: Help with wrapping

Anybody???

Please . . . . .

3
krystinevo
Re: Help with wrapping

Wouldn't iframe work for you? Instead of using a custom block, just wrap it right in tinyd (or whatever mod you're using).

https://xoops.org/modules/smartfaq/faq.php?faqid=270

Also see: https://xoops.org/modules/smartfaq/faq.php?faqid=151

Course, what do I know, I'm still a n00b, even 18 months later...

kristine
Everything is as it should be

4
JMorris
Re: Help with wrapping
  • 2005/11/28 21:04

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Use the following with the MyPage module. Adjust as needed.

Quote:
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>



//include_once XOOPS_ROOT_PATH."/ads/randomads.php";
include(XOOPS_ROOT_PATH."/footer.php");
?>


For more information, see the FAQ krystinevo pointed out.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
Goober
Re: Help with wrapping
  • 2005/11/28 22:10

  • Goober

  • Not too shy to talk

  • Posts: 101

  • Since: 2003/3/30


top of page:
include ("mainfile.php");
include(
"header.php");
?>

body of page:
include 'http://www.example.com/file.txt?foo=1&bar=2';
?>

bottom of page:
include ("footer.php");
?>


name the file what ever you want.php and wa la.
Dispelling the Mystical belief of Web Standards and tableless CSS.
Nobody gets excited about the tools used to build a house, people get excited about how the house looks and performs

6
albertdebrui
Re: Help with wrapping

Fantastic!!! Thanks Krystinevo, JMorris and Goober, your responses are much appreciated!

I've found I can even put this code in a block. That just rocks! It makes the use of this even more flexible. I am a happy guy

7
riclanders
Re: Help with wrapping
  • 2006/1/13 17:20

  • riclanders

  • Just popping in

  • Posts: 60

  • Since: 2005/11/7


Quote:

Goober wrote:
top of page:
include ("mainfile.php");
include(
"header.php");
?>

body of page:
include 'http://www.example.com/file.txt?foo=1&bar=2';
?>

bottom of page:
include ("footer.php");
?>


name the file what ever you want.php and wa la.


I tried the above and I got the page wrapped alright, but then the links in the page didn't work right.

ric

Login

Who's Online

313 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

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

Latest GitHub Commits