1
gmakstutis
XOOPS wrapper?
  • 2004/11/17 18:52

  • gmakstutis

  • Just popping in

  • Posts: 1

  • Since: 2004/11/13


Hi,

I'm a recent convert from PostNuke to Xoops. One of the modules that exists in PN, that I really liked, was the Wrapper. This allowed you to display the content from another website within the 'content' area of your site (while keeping your navigation, blocks, etc. available).

I wonder if there is such a module for Xoops? I've not come across it, but would be very happy to hear of it's existence.

Anyone know?

Thanks

2
studioC
Re: XOOPS wrapper?
  • 2004/11/17 19:08

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


hello

Quote:
here's a link to dl tinycontent v 1.5 but this is just an example for a small content modul, there are some great around here ...

http://prdownloads.sourceforge.net/xoops/xoops2-mod-tinycontent_1_5.zip?download

in which you can display content you want ...


cheers
michael

3
baerchn
Re: XOOPS wrapper?
  • 2004/11/18 20:03

  • baerchn

  • Just popping in

  • Posts: 5

  • Since: 2004/5/5 1


hi,

something like => this, maybe? It shows a field you can enter any url in, that you'd like to see 'framed'. except: some sites have security restrictions, so you will not be able to 'frame' them. But this will be the same with the nuke thing.

The script is called "framebrowser", you can get it from my
=> dl section and feel free to modify it.

When coding, you can have direct variables like .../frambrowse.php?url=example.com, so example.com will show up in your content area.

try it - all the best, baerchn

4
shaxs
Re: XOOPS wrapper?
  • 2005/1/16 10:37

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


Okay,


If you go to http://www.LegionOfDestiny.org you will se my home page with an article with a link that goes to http://www.legionofdestiny.org/framebrowser.php?urlnav=http://www.legionofdestiny.org/wow/ . Now, the odd thing is the light brown and white borders in the page where the iframe loads. Anyway to correct this? Muct be in the css somewhere to set the background image to the image being used on the site. Also, whenever you go to http://www.legionofdestiny.org/framebrowser.php?urlnav=http://www.legionofdestiny.org/wow/ , it doesnt show the main menu on the side and it shows me logged out, but as soon as I click on home, there I am logged in with all the menus. Odd, anyway to fix that?

5
carnuke
Re: XOOPS wrapper?
  • 2005/1/16 11:33

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


There is an interesting thread here about Auth PHp, HTML,CGI pages wrapper I am still trying to figure out how best to use this, but you may find it worth a look.

6
shaxs
Re: XOOPS wrapper?
  • 2005/1/16 15:18

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


I just found this moments before you replied :) Also, I have downloaded my page and will try both and see how it works.

7
carnuke
Re: XOOPS wrapper?
  • 2005/1/16 15:28

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Ok, shaxs, please let me know how you get on... bender just posted me the whole module file here http://r286.com/xoops/modules/mydownloads/visit.php?cid=4&lid=23 This one is the whols module I think.

8
shaxs
Re: XOOPS wrapper?
  • 2005/1/16 16:24

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


If you go to http://legionofdestiny.org/modules/profiles/, you will see I have successfuly integrated the roster page using "my page". However, if you click on "Shaxs", it takes you here http://legionofdestiny.org/modules/profiles/char.php?name=Shaxs&server=Elune. As you can see, the site then gets broken. This is because the page is trying to call two different css files. One for the char.php page that formats the profile of my WoW character found here: http://legionofdestiny.org/modules/profiles/default.css and then it is also calling the css file of the theme found here: http://legionofdestiny.org/themes/warcraft/style.css. I am not a pro at css and tried to integrate the two so that the site design stays in tact, but the profile design does as well. But, I could not.

Can anyone take a look at these two and try to merge them?

9
shaxs
Re: XOOPS wrapper?
  • 2005/1/16 16:31

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


Also, I thought it might be useful to include the source code for the char.php page. I couldn't figure out how to post the code without XOOPS converting php tags, So I have the open brackets deleted and replaced with a (, but not in the source code. It is below:

======================

(?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
include "conf.php";
include "lib/char.php";
include "lib/bag.php";
$xoopsOption['show_rblock'] = 1;
?>

(?php
header("Content-type: text/html; charset=utf-8");



$wowdb->connect( $db_host, $db_user, $db_passwd, $db_name );

$name = $_REQUEST['name'];
$server = $_REQUEST['server'];

if( get_magic_quotes_gpc() ) {
$name = stripslashes( $name );
$server = stripslashes( $server );
}


$char = char_get_one( $name, $server );

echo '
(html>
(head>
(title>WoW : '.$char->get('name').'
(link rel="stylesheet" type="text/css" href="'.$stylesheet.'" />

(/head>
(body>
';
$char->out();
if( $show_inventory == 1 ) {
$bag0 = bag_get( $name, $server, "Bag0" );
if( isset( $bag0 ) ) {
$bag0->out();
}
$bag1 = bag_get( $name, $server, "Bag1" );
if( isset( $bag1 ) ) {
$bag1->out();
}
$bag2 = bag_get( $name, $server, "Bag2" );
if( isset( $bag2 ) ) {
$bag2->out();
}
$bag3 = bag_get( $name, $server, "Bag3" );
if( isset( $bag3 ) ) {
$bag3->out();
}

$bag4 = bag_get( $name, $server, "Bag4" );
if( isset( $bag4 ) ) {
$bag4->out();
}
}
echo '';


?>



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

10
shaxs
Re: XOOPS wrapper?
  • 2005/1/16 16:50

  • shaxs

  • Not too shy to talk

  • Posts: 116

  • Since: 2004/6/1 2


For the time being, I have resorted to a java script pop-up window to show the profiles. The most important part is the roster being integrated as this updated automatically by a windows program. Check it out!

http://legionofdestiny.org/modules/profiles/

I think I will release this whole package as a XOOPS module. Stay tuned!

Login

Who's Online

368 user(s) are online (289 user(s) are browsing Support Forums)


Members: 0


Guests: 368


more...

Donat-O-Meter

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

Latest GitHub Commits