Membership Levels

OK, I will try my best to explaini what I am looking for. Before the page access was added as a default module, I vaguely remember having to add code to the top of custom pages in order for the page access to be used on those pages. So, if what I am thinking was true, does that still apply. I have pages that I have created for the mobile app - not in a module, but handwritten php pages - and I want them to be restricted if a user does not have a certain membership level.

I would greatly appreciate any assistance on this matter

Thanks in advance.

caredesign.net
Quote · 14 Feb 2013

OK, to expand on this a lil more - i have a test account at mytherapysession.net username = demo1 - pword = 54321. This account has access to all of the videos - as a membership option. But yet these videos do not show up in the mobile app. I am guessing that only a users personally uploaded videos are those shown in the videos section.

So, my first thought would be to create a new videos button (as users will not be uploading videos themselves anyways), make the default videos button inactive, then create a cutsom php page that pulls in the videos. How can I do this so that if a user does not have the streaming videos membership, then they dont get the videos button. Is there a but of standard code that dolphin uses for mobile apps pages that would pull in membership levels

caredesign.net
Quote · 14 Feb 2013

Currently, pages added to mobile app don't automatically sign-in current user. You need to do it manually.

It is possible to do it using redirect, try to create mobile_redirect.php page, and add link to it in mobile homepage, with the following content:

<?php

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
require_once( BX_DIRECTORY_PATH_ROOT . 'xmlrpc/BxDolXMLRPCUtil.php' );

$sUser = bx_get('user');
$sPwd = bx_get('pwd');

if ($iId = BxDolXMLRPCUtil::checkLogin ($sUser, $sPwd)) {
    bx_login($iId);
    header("HTTP/1.1 301 Moved Permanently"); 
    header("Location: " . BX_DOL_URL_ROOT . "pages/for/logged/in/user/using/standard/dolphin/authentication");
    exit;
} else {
    echo 'access denied';
}

You need to pass user and password hash to the page, for for info see: http://www.boonex.com/trac/dolphin/wiki/DolModMobile

Rules → http://www.boonex.com/terms
Quote · 16 Feb 2013

I am not usre if i totally understood what you are saying. My comprehension tends to get a bit speculative at times. But what I did notice is that if I log into the mobile app using an account that does not have permission to view profiles - I do get a message saying that your membership level whatever does not allow you to view this".

Now - let me try to clarify what I am doing. there are a bunch of videos that we have uploaded in which a user with the Unlimited Streaming Account can view these videos - on the desktop. So, I want to create a page that has all the videos listed in which only those with the unlimited streaming membership will be able to view in the mobile app.

Unfortunately, I have handwritten all of my code to display the album folders, and want to know how i can apply the default dolphin membership checks to this page.

Not only would this help with the mobile site, but also with the desktop site, as there are a bunch of pages that I handwrote the php code for that I also need to apply the membership levels to.

Before someone says "You can just use the BxDolPageView Template" - Yes, I know this. But as these pages came from our first website, it is alot easier using them as is than to have ot redo each and every one to the dolphin template - plus dolphin only allows for a single colum form, and the client likes the 3 and 4 column forms.

EDIT

One more thing - I dont want a user to access these pages without going through the mobile app. EX: www.mydomain.com/video-list.php - should yield a "can not be acessed" message

caredesign.net
Quote · 17 Feb 2013

http://www.boonex.com/doc/d3/d45/membership__levels_8inc_8php.html#a9b28f1ac74e061bbf08d102b29620a39

Rules → http://www.boonex.com/terms
Quote · 17 Feb 2013

Thanks Alex - I am going to byoass the mobile site for now and get some new ideas that were just sent to me put together on regular site. I may have to revisit this thread later to get some more clarification.

But I thank you for your time and assistance thus far.

caredesign.net
Quote · 18 Feb 2013
 
 
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.