frame a site in mine

hello I want to frame a site in my dolphin site anyone know how I followed the steps from http://www.eyeway.gr/article.php?category_id=30&page=3&article_id=49 but I dont see the site framed just the tab for it.

 

some one please help!

Adding in a NEW Page from a html page
Printer FriendlyTell a Friend

If you start a NEW html page or want to add in another page or script into your Dolphin script you will need to add to files.

Yourname.php

yourname.js

And here's how:

First go into your cpanel account and start a NEW File where you have your dolphin script hosted.( Your name.php )    for this  Example we will call it Business.php

Once you start a NEW file ( Business.php ) you will need to change 3 areas in the code below:

Line 35 and 36 and the  line showing;

$out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";

Change the word Business to what ever you want displayed in the browser and page title.

$_page['header'] = " Business";
$_page['header_text'] = " Business";

Next Change the file name (if needed) Business.js to whatever the NEW php file name that was given.

$out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";

Once you add the code below to your NEW php file you Just created Example: Business.php

You will then need to add one more file into your area of;

/inc/js/

For the NEW js code please click HERE.

 

<?

/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -----------------
*     begin                : Weds Feb.07 2008
*     copyright            : (C) 2006 BoonEx Group
*     website              : http://www.boonex.com/
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details.
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'members.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );

// --------------- page variables / login

$_page['name_index']  = 28;
$_page['css_name']  = 'links.css';
$_page['header'] = " Business";
$_page['header_text'] = "Business";
//$_page['header_text'] = ('g4' != $tmpl) ? _t( "_LINKS_H1", $site['title'] ) : "<img src=\"{$site['images']}links.gif\">";
//$logged['member'] = member_auth( 0 );
// --------------- page components

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();

// --------------- [END] page components

PageCode();

// --------------- page components functions

/**
 * page code function
 */
function PageCompPageMainCode()
{
 global $tmpl;

 //$links_res = db_res( "SELECT * FROM `Links`" );
 
 //if ( !mysql_num_rows( $links_res ) )
  $out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";


 return $out;
}

?>

Adding in a NEW Page from a html page
Printer FriendlyTell a Friend

If you start a NEW html page or want to add in another page or script into your Dolphin script you will need to add to files.

Yourname.php

yourname.js

And here's how:

First go into your cpanel account and start a NEW File where you have your dolphin script hosted.( Your name.php )    for this  Example we will call it Business.php

Once you start a NEW file ( Business.php ) you will need to change 3 areas in the code below:

Line 35 and 36 and the  line showing;

$out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";

Change the word Business to what ever you want displayed in the browser and page title.

$_page['header'] = " Business";
$_page['header_text'] = " Business";

Next Change the file name (if needed) Business.js to whatever the NEW php file name that was given.

$out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";

Once you add the code below to your NEW php file you Just created Example: Business.php

You will then need to add one more file into your area of;

/inc/js/

For the NEW js code please click HERE.

 

<?

/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -----------------
*     begin                : Weds Feb.07 2008
*     copyright            : (C) 2006 BoonEx Group
*     website              : http://www.boonex.com/
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details.
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'members.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );

// --------------- page variables / login

$_page['name_index']  = 28;
$_page['css_name']  = 'links.css';
$_page['header'] = " Business";
$_page['header_text'] = "Business";
//$_page['header_text'] = ('g4' != $tmpl) ? _t( "_LINKS_H1", $site['title'] ) : "<img src=\"{$site['images']}links.gif\">";
//$logged['member'] = member_auth( 0 );
// --------------- page components

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();

// --------------- [END] page components

PageCode();

// --------------- page components functions

/**
 * page code function
 */
function PageCompPageMainCode()
{
 global $tmpl;

 //$links_res = db_res( "SELECT * FROM `Links`" );
 
 //if ( !mysql_num_rows( $links_res ) )
  $out .= "<div class=\"no_links\"><SCRIPT SRC=\"/inc/js/Business.js\"></SCRIPT></div>\n";


 return $out;
}

?>

Quote · 9 Feb 2010

Like this?

http://towjobs.com/page/TowTalk

Why not just put the site in an html block with an IFrame?

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 9 Feb 2010

Can you explain how you did it in detail for me I would realy apreciate

Quote · 10 Feb 2010

Here's one way to do it without having to mess with page builder or anything else.  Put this code in somefile.php.  Change the url, and height to whatever you want.  Then just upload it to your sites root. (Don't overwrite anything!)  Then you can add the page in navigation menu builder.


<?php
require_once( './inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
PageCode();
function PageCompPageMainCode()
{
$ret = '<iframe src="http://google.com" width="100%" height="1000px" scrolling="auto" frameborder="0"</iframe>';
return DesignBoxContent( '', $ret );
}
?>

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 10 Feb 2010

beat me to it.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 10 Feb 2010

Thank You it workd beautifully you guys rock! But myspace and facebook wont let me do it U wanted to frame there games like mafia wars, poker, farmville ect. you guys know how I can frame those it keeps sending me to there site out of frame.

Quote · 10 Feb 2010

RE:

Thank You it workd beautifully you guys rock! But myspace and facebook wont let me do it U wanted to frame there games like mafia wars, poker, farmville ect. you guys know how I can frame those it keeps sending me to there site out of frame.

So.... you want to rip off a bunch of other peoples copyrighted content?

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 10 Feb 2010

You will not be able to iframe those. Zynga writes a version of these specifically for facebook and myspace and other sites. The facebook version for instance is always talking to facebook to make wall updates and other things. The links inside the game are also linked to facebook. Because of these things, the game will keep breaking out of the frame.

I was going to write a Vampire Wars clone for Dolphin because i like that game. But i decided it was not worth the risk of being sued by zynga.


https://www.deanbassett.com
Quote · 10 Feb 2010

so am I doing something elegal by frameing a site in mine?

Quote · 10 Feb 2010

Well maybe but that's not then issue. It is a very simple task to place a 'frame buster' code in each of their pages. It is designed to keep people from doing what you are trying to do and it's very difficult to defeat.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 10 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.