force login?

is there a way to make the login form show up rather than "Your current membership (Non-member) doesn't allow you to play Video (Video Gallery)"

Quote · 28 Aug 2009

I think I may have seen this somewhere...anyone remember where?

Quote · 28 Aug 2009

Yes. You need to edit the file viewVideo.php and look for this code at the top of the file and add the line i marked in red.

require_once('inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'sharing.inc.php');
require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMediaView.php');


$iFile = 0;
if (isset($_GET['fileUri']))
$iFile = getFileIdByUri($_GET['fileUri'], 'video');
elseif (isset($_GET['fileID']))
$iFile = (int)$_GET['fileID'];

$logged['member'] = member_auth( 0, true );

$member['ID'] = (int)$_COOKIE['memberID'];

check_logged();

https://www.deanbassett.com
Quote · 28 Aug 2009

alright that worked. now how about requiring a certain Membership Level? how do i make a purchase form instead of showing "You have reached your limit for now. Your current membership (Standard) allows you to play Video (Video Gallery) no more than 2 times."  ?

Quote · 28 Aug 2009

nice modernisation... thnx for this,.

Regards........ M.Chauhan U.K.
Quote · 29 Aug 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.