1
canuck
How do I wrap a URL page ?
  • 2005/9/15 2:38

  • canuck

  • Just popping in

  • Posts: 17

  • Since: 2004/11/17


I sucessfully wrapped a HTML pag eby adding the PHP header and footer as required but within this page I have a link to an external www page and I would like to onced clicked on it that this page stays wrapped in XOOPS and not open a new window outside of xoops.

My code is

Yahoo

Thanks

2
pnppcs
Re: How do I wrap a URL page ?
  • 2005/9/15 3:42

  • pnppcs

  • Just popping in

  • Posts: 55

  • Since: 2005/1/25


Hi canuck, have a read of this:

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

I think you would be looking at the IFrame function...

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

Good luck

3
JMorris
Re: How do I wrap a URL page ?
  • 2005/9/15 3:53

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


If I'm understanding you correctly, you want the link to open in a new window. Is this correct?

If so, just use the following in your link:
<a href="http://www.yahoo.com" target="_blank">YahooA>


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.

4
canuck
Re: How do I wrap a URL page ?
  • 2005/9/15 9:23

  • canuck

  • Just popping in

  • Posts: 17

  • Since: 2004/11/17


Was looking for the link to open within the exisiting XOOPS window. Right now it opens a new page just like you wrote it and I want to keep it within xoops.

5
canuck
Re: How do I wrap a URL page ?
  • 2005/9/15 9:38

  • canuck

  • Just popping in

  • Posts: 17

  • Since: 2004/11/17


I tried the IFRAME but this is not what I want. I need to be able to make mypage.html open within the existing XOOPS block when I click on a referenced link to mypage.html.





THe above code displays right away the mypahe.html and need to modify it for a href style iframe.

Thanks for the inout so far, this last stuff of mine might make it clearer on what I need.

6
canuck
Re: How do I wrap a URL page ?
  • 2005/9/15 23:12

  • canuck

  • Just popping in

  • Posts: 17

  • Since: 2004/11/17


Still trying to figure this out !

7
pnppcs
Re: How do I wrap a URL page ?
  • 2005/9/15 23:42

  • pnppcs

  • Just popping in

  • Posts: 55

  • Since: 2005/1/25


Hello again canuck, I think I know what you need. You want a link that when clicked opens up an external website that is wrapped within your websites header and footer and that opens in the same window yeh??

Well, if this is the case you would simply create a one page module and you can find instructions on how to do it here:

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

Then once you have this new one page module you would add the IFrame code to the index.php of your new one page module with the external site as the Iframe target.

This means you will be able to link to your new one page module which will open in the same window and be wrapped within the header and footer of your site. The link will show in your main menu as it is linking to a site module. If you choose not to have the link in your main menu and have it in a block or elsewhere on your site you will need to use the below code so it opens in the same window:

<a href="http://www.mydomain.com/modules/my_new_one_page_module/index.php" target="_self">YahooA>


Notice that target="_self"

I think this is what you want and I have done this myself on an old site and worked quite well.

Good luck man

8
canuck
Re: How do I wrap a URL page ?
  • 2005/9/16 0:01

  • canuck

  • Just popping in

  • Posts: 17

  • Since: 2004/11/17


That's exactly what I want but I can't believe this complexity ! You see I have a page with a list of LINKS on it, around 20.

Seems like a lot of work for just what I need! I will explore this further and see how it works out.

Thanks again for the help .... much appreciated.

9
pnppcs
Re: How do I wrap a URL page ?
  • 2005/9/17 1:59

  • pnppcs

  • Just popping in

  • Posts: 55

  • Since: 2005/1/25


hehehe, life sucks doesn't it........but yeh it is a bit of work although once you have it all set up then you will have what you want and it is actually quite easy once you have done it a couple of times.

Let us know how you go, I would be interested in having a look once you finish it.

10
blairbo
Re: How do I wrap a URL page ?
  • 2005/11/13 21:23

  • blairbo

  • Just popping in

  • Posts: 4

  • Since: 2004/11/8


I was looking at exactly the same thing. In my FAQ i have a link to mapquest via a form. That form collects someone's Postal Code and after submitting the form, takes them to mapquest where the directions and map are displayed. I wanted this to be wrapped in my XOOPS theme.

So, here's what I'm going to try: a one page module with an Iframe, and the link passes the url as a variable to the iframe module.

Has this already been done?

Login

Who's Online

169 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits