Page for paying members only

I posted this on Expertzzz but no one answered me there.  I'd like to play around with this mod but can't find the install instructions - might be really simple- like just an upload, but I don't know where.   Could someone clue me in?

--------------

The mod below is supposed to allow you to make a page that is viewable for paying members only.  It is a free mod I downloaded from here- but the "search" on this forum is so terrible I can't find the install instructions.  Could someone post the link to the download page, or just tell me how to install this.

-

Thank you

-

Rob

----

<?
/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -----------------
*     begin                : Mon Mar 23 2006
*     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 . 'prof.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profile_disp.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'modules.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );



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

$_page['name_index']    = 25;
$_page['header'] = _t('Sitemap');
$_page['header_text'] = _t('');
$_ni = $_page['name_index'];
check_logged();
$bizimID = $_COOKIE['memberID'];
$_page_cont[$_ni]['page_main_code'] = PageCompForum($bizimID);


function PageCompForum($a) {

global  $prof;
global $site;

$query2 = "SELECT IDLevel FROM ProfileMemLevels WHERE IDMember='$a'";
$sonuc = db_res($query2);
$sayi = mysql_num_rows($sonuc);
if ($sayi==0)

{
return  <<<HTML
Your current citizenship standart does not allow to view this page
HTML;
}
else
{
return  <<<HTML
<iframe src="live.html" width="100%" height="550px" border="0" frameborder="0">
</iframe>
HTML;
}


}

PageCode();
?>

Quote · 9 Nov 2008

I had a similar question and received the reply that you can read

http://www.boonex.com/unity/forums/#topic/Adding-page-viewable-for-upgraded-members.htm

Not sure if it will help you at all

Quote · 9 Nov 2008

Dartin, thanks for reminding me - Ottar does great work and I had flagged that, but forgot all about it.  I am also going to try to work with that.   The code I posted above is different than his approach I think - his is a link that leads to a secured page, while the code I posted is for a block (I think).  It was about 60 pages in on the downloads on Expertzzz and now I can't find the instructions - if anyone has any idea please let me know.

-

Rob

Quote · 10 Nov 2008

I was able to do a page with ebook & software downloads and using Ottar's instructions made it accessible only to upgraded members.  Of course if I have to do another page again I will probably be totally confused, but that is what makes this so much fun !!!

Quote · 11 Nov 2008

Hi CALTRADE

This is my mod.. actually it's not a mod. It's a blank php page.. Do you still need help with thi

Quote · 5 Feb 2009

just contact me if you do...

Quote · 5 Feb 2009
 
 
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.