Create a new membership action`

Hi

I need to create a new membership action basically I have installed Facetalk Online but I dont want it available to everyone I want it so only gold level members can use it. Is there a way to create a membership action?

 

thanks

Quote · 19 Oct 2009

Creating new membership actions in 3 steps :

1) inc/membership_levels.inc.php

after : define('ACTION_ID_COMMENTS_REMOVE_OWN', 36);

insert your new action id:

define('ACTION_ID_USE_FACETALK',     100);

2) insert to table

insert into `MemActions`(`ID`,`Name`,`AdditionalParamName`) values ( '100','use facetalk',NULL)

3) in your facetalk script insert this :

$check_res = checkAction( $_COOKIE[memberID], ACTION_ID_USE_FACETALK);

if ( $check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED )
{
$_page['header'] = "{$site['title']} "._t("_FaceTalk");
$_page['header_text'] = "{$site['title']} "._t("_FaceTalk");
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = '<center>'. $check_res[CHECK_ACTION_MESSAGE] .'</center><br />';
PageCode();
exit;
}

Jomar / DolphinBugFixing.com

Live Support http://dolphinbugfixing.com
Quote · 20 Oct 2009

Hi

 

Thanks :) Could you tell me where abouts I need to put the last bit as there are two php files for facetalk they are facetalkonline.php and facetalkeonlinedetail.php. Managed to do first two steps fine just dont quite understand last bit.

 

Thanks

Quote · 20 Oct 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.