<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="jvb" active="1">
<title>BBpixel jvbPlugin</title>
<description>Integrate with Joomla</description>
<version>1.12</version>
<url />
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="BBpixel Redirect" templatetype="template" date="1165730371" username="kou" version="1.1"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="!$postvars">
<noscript>
<meta http-equiv="Refresh" content="0; URL=$url" />
</noscript>
<script type="text/javascript">
<!--
function exec_refresh()
{
window.status = "$vbphrase[redirecting]" + myvar;
myvar = myvar + " .";
var timerID = setTimeout("exec_refresh();", 0);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
window.location = "$js_url";
}
}
var myvar = "";
var timeout = 0;
exec_refresh();
//-->
</script>
</if>
<title>$pagetitle</title>
</head>
<body>
<if condition="$postvars">
<!-- redirect with POST -->
<script type="text/javascript">
<!--
fetch_object('click_here_p').style.display = 'none';
function submit_form()
{
window.status = "Redirecting" + myvar;
myvar = myvar + " .";
timerID = setTimeout("submit_form();", 100);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
document.forms.postvarform.submit();
}
}
myvar = "";
timeout = 18;
submit_form();
//-->
</script>
<!-- / redirect with POST -->
</if>
</body>
</html>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>jvbACPCoreInit</title>
<hookname>admin_global</hookname>
<phpcode><![CDATA[/*
| Init services
*/
require("jvb_fservices.php");
$bbpixelFAPS = new fPluginServices();]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbCopyright</title>
<hookname>global_complete</hookname>
<phpcode><![CDATA[global $bbpixelFPS;
$output .= "<div style='text-align: center; font-size: x-small;'>Integrated by BBpixel Team ".date("Y")." :: jvbPlugin {$bbpixelFPS->version} </div>";]]></phpcode>
</plugin>
<plugin active="1" executionorder="6">
<title>jvbCoreInit</title>
<hookname>global_start</hookname>
<phpcode><![CDATA[//Turn off clearing password
define('DISABLE_PASSWORD_CLEARING', true);
/*
| Init services
*/
require("jvb_fservices.php");
$bbpixelFPS = new fPluginServices();]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbPwdMigrate</title>
<hookname>login_failure</hookname>
<phpcode><![CDATA[//From 1.0.13 version
global $bbpixelFPS;
$bbpixelFPS->pwdMigrate();]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbLogin</title>
<hookname>login_redirect</hookname>
<phpcode><![CDATA[global $bbpixelFPS;
$bbpixelFPS->portalLogin();]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbLogout</title>
<hookname>logout_process</hookname>
<phpcode><![CDATA[global $bbpixelFPS;
$bbpixelFPS->portalLogout();
$redirect = $_REQUEST['redirect'];
if (!empty($redirect)) {
if ($bbpixelFPS->showMSG) {
eval(print_standard_redirect('redirect_logout', true, true));
} else {
header("location: {$redirect}");
exit();
}
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbModCPCoreInit</title>
<hookname>mod_global</hookname>
<phpcode><![CDATA[/*
| Init services
*/
require("jvb_fservices.php");
$bbpixelFAPS = new fPluginServices();]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbNewsBridgeNew</title>
<hookname>newthread_post_complete</hookname>
<phpcode><![CDATA[$newpost['thread_id'] = $threadinfo['threadid'];
$newpost['forum_id'] = $foruminfo['forumid'];
$bbpixelFPS->newsBridge->doPostNews($newpost);]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbMiscOptions</title>
<hookname>profile_updateoptions</hookname>
<phpcode><![CDATA[$ghost_send_email = 1;
if(!isset($vbulletin->GPC['options']['adminemail'])){
$ghost_send_email = 0;
}
$bbpixelFPS->portalUserUpdateFieldAdd('sendEmail', $ghost_send_email, 1);
$bbpixelFPS->portalDoUpdateUser($vbulletin->userinfo['userid']);]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbPasswordEmail</title>
<hookname>profile_updatepassword_complete</hookname>
<phpcode><![CDATA[// update password
if (!empty($vbulletin->GPC['newpassword']) OR !empty($vbulletin->GPC['newpassword_md5']))
{
$bbpixelFPS->portalUserUpdateFieldAdd('password', $vbulletin->GPC['newpassword_md5'], 1);
$bbpixelFPS->portalDoUpdateUser($vbulletin->userinfo['userid']);
}
// update email only if user is not banned (see bug 2142) and email is changed
if (!($permissions['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isbannedgroup']) AND $vbulletin->GPC['email'] != $vbulletin->userinfo['email'])
{
$bbpixelFPS->portalUserUpdateFieldAdd('email', $vbulletin->GPC['email'], 1);
$bbpixelFPS->portalDoUpdateUser($vbulletin->userinfo['userid']);
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbLogin Redirect</title>
<hookname>redirect_generic</hookname>
<phpcode><![CDATA[global $bbpixelFPS;
if (!empty($_REQUEST['redirect']) && !$bbpixelFPS->showMSG) {
$url = $_POST['redirect'];
eval('print_output("' . fetch_template('BBpixel Redirect') . '");');
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbRegister</title>
<hookname>register_addmember_complete</hookname>
<phpcode><![CDATA[$mb_account = array();
$mb_account['id'] = $userid;
$mb_account['name'] = $username;
$mb_account['username'] = $username;
$mb_account['email'] = $email;
$mb_account['md5_password'] = $vbulletin->GPC['password_md5'];
$mb_account['joined'] = time();
$bbpixelFPS->portalCreateUser($mb_account);]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbACPUserEditForm</title>
<hookname>useradmin_edit_column1</hookname>
<phpcode><![CDATA[$mb_member =array();
if(trim($user['username']) != ''){
$mb_member = $bbpixelFAPS->portalGetUserInfo($user['username']);
}else{
$mb_member['username'] = "";
$mb_member['gid'] = 0;
}
$goupinfo = $bbpixelFAPS->portalGetGroup();
print_table_break('', $INNERTABLEWIDTH);
print_table_header("Joomla options");
print_input_row('Joomla!->Normal Name', 'portal[portal_name]', $mb_member['name'], 0);
print_select_row('Joomla!->Group' , 'portal[portal_groupid]', $goupinfo, $mb_member['gid']);
if (VB_AREA == "AdminCP") {
print_yes_no_row('Joomla!->Block', 'portal[portal_block]', $mb_member['block']);
}
print_yes_no_row('Joomla!->Receive email from Admin', 'portal[portal_sendEmail]', $mb_member['sendEmail']);]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbACPPrune</title>
<hookname>useradmin_prune</hookname>
<phpcode><![CDATA[$bbpixelFAPS->portalDeleteUser($userids,1);]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbACPUserSave</title>
<hookname>useradmin_update_save</hookname>
<phpcode><![CDATA[$vbulletin->input->clean_array_gpc('p', array(
'portal' => TYPE_ARRAY
));
if ($vbulletin->GPC['userid'])
{
/*
bbpixel plugin
- update portal user info
*/
//print_r($vbulletin->GPC);
$bbpixelFAPS->portalUserUpdateFieldAdd('username', $vbulletin->GPC['user']['username'], 1);
$bbpixelFAPS->portalUserUpdateFieldAdd('name', $vbulletin->GPC['portal']['portal_name']);
$bbpixelFAPS->portalUserUpdateFieldAdd('gid', $vbulletin->GPC['portal']['portal_groupid']);
$bbpixelFAPS->portalUserUpdateFieldAdd('email ', $vbulletin->GPC['user']['email']);
if($vbulletin->GPC['password'] != ''){
$bbpixelFAPS->portalUserUpdateFieldAdd('password ', md5($vbulletin->GPC['password']));
}
$bbpixelFAPS->portalUserUpdateFieldAdd('block ', $vbulletin->GPC['portal']['portal_block']);
$bbpixelFAPS->portalUserUpdateFieldAdd('sendEmail', $vbulletin->GPC['portal']['portal_sendEmail']);
$bbpixelFAPS->portalDoUpdateUser($vbulletin->GPC['userid']);
$bbpixelFAPS->portalSetGroupForUser($vbulletin->GPC['userid'], $vbulletin->GPC['portal']['portal_groupid']);
//endbbpixel
}else {
/*
bbpixel plugin
- create new portal account
*/
$mb_account = array();
$mb_account['id'] = $bbpixelFAPS->getNextUserID();
$mb_account['name'] = $vbulletin->GPC['portal']['portal_name'];
$mb_account['username'] = $vbulletin->GPC['user']['username'];
$mb_account['usertype'] = $vbulletin->GPC['portal']['portal_name'];
$mb_account['block'] = $vbulletin->GPC['portal']['portal_block'];
$mb_account['sendEmail'] = $vbulletin->GPC['portal']['portal_sendEmail'];
$mb_account['gid'] = $vbulletin->GPC['portal']['portal_groupid'];
$mb_account['email'] = $vbulletin->GPC['user']['email'];
$mb_account['md5_password'] = md5($vbulletin->GPC['password']);
$mb_account['joined'] = time();
$bbpixelFAPS->portalCreateUser($mb_account);
//endbbpixel
}]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>jvbACPDelete</title>
<hookname>userdata_delete</hookname>
<phpcode><![CDATA[global $bbpixelFAPS;
$bbpixelFAPS->portalDeleteUser($this->existing['userid'],1);]]></phpcode>
</plugin>
</plugins>
<phrases>
</phrases>
<options>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>