1
Anonymous
Creating Menu Button that puts outside website in center block
  • 2003/10/31 2:01

  • Anonymous

  • Posts: 0

  • Since:


I want to have a button eithert in Tiny Menu or the Main Menu that links to an external website and produces the page inside the center of xoops. I didn't want to do it as a blank_page (new browser window). How might I acheive this?
Alex

aschroeder@sharptechnology.com

2
Mithrandir
Re: Creating Menu Button that puts outside website in center block

You can do that with frames - but since XOOPS is using tables for banners and blocks, this is (AFAIK) not possible without modifying the external website to use the header and footer from your site (which is rather hard to do, since the external site is... external - again as far as I know)

3
wtravel
Re: Creating Menu Button that puts outside website in center block

Hi Alex,

You can create your own basic module in which you include the external file.

In this module make sure you have the following files (add the php opening and closing tags as well).

index.php:
Quote:

include "../../mainfile.php";
include "../../header.php";
include "yourfile.php";
include("../../footer.php");


xoops_version.php:
Quote:

$modversion['name'] = "yourname";
$modversion['version'] = 1.00;
$modversion['description'] = _MI_YOURNAME_DESC;
$modversion['credits'] = "xxxx";
$modversion['author'] = "";
$modversion['help'] = "top.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 1;
$modversion['image'] = "yourname_slogo.png";
$modversion['dirname'] = "yourname";

//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";

// Menu
$modversion['hasMain'] = 1;


mainfile.php:
Quote:

include "../../mainfile.php";


yourfile.php:
Quote:

<?php
echo '<table align="right" border="0" width="100%"><tr><td valign="top"><table summary="welcome" width="100%" border="0"><tr><td align="center" width="100%" valign="top"><iframe marginwidth="0" marginheight="0" width="540" height="600" scrolling="no" frameborder="0" src="http://www.worldtravelpublishers.com/modules/news/">
</iframe></td></tr></table></td></tr></table>';
?>

Change the external website name in the above to the site you desire.

Also in the subfolder language\english add a file modinfo.php:
Quote:

define("_MI_YOURNAME_NAME","Name of your module");
define("_MI_YOURNAME_DESC","Your description of the module");


After you have prepared the files and the logo for the module, upload them as a new module and install the module using the admin section. Make the module visible for the groups you desire in the edit groups section.

Good luck!

Martijn

Login

Who's Online

175 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

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

Latest GitHub Commits