1
iolai
Opening an html in a block.
  • 2004/6/30 22:23

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


I have a link in block X, and when I click on it, I want to open the html page it links to in block Y.

How can I do it?

2
brash
Re: Opening an html in a block.
  • 2004/6/30 22:35

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


You would open in a new window with something like;

<a href="http://yourdomain.com" target="_blank">Name of link</a>

No idea what you'd need to do to specify opening inside another XOOPS block inside your own site though.

3
Bassman
Re: Opening an html in a block.
  • 2004/6/30 23:48

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


You would need to use a module like Tiny Content and use the link to a particular Tiny Content page.

4
jw716
Re: Opening an html in a block.
  • 2004/7/1 0:07

  • jw716

  • Just popping in

  • Posts: 64

  • Since: 2004/5/1 2


Write your html and leave the html and body tags out.
start with

Quote:
<?php
include("mainfile.php");
include("header.php");
$xoopsOption['show_rblock'] = 1; //0 for no right block
?>

All html without the head and body tags here.

<?php
include("footer.php");

?>
name it whatever.php
upload it to your host

In the block you want to point to it
<a href="{X_SITEURL}whatever.php">Whatever</a>

Now, I am not that smart so here is where ya go to find those little tricks
XOOPS for Dummies