Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2015-05-25 16:36:47

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,177
Website

[MOD] uLogin 1.0.0

https://fluxbb.org/resources/mods/ulogin/

Mod for a quick registration and authorization of new users, using accounts from other sites through a service ulogin.ru.

Currently this mod supports many popular portals (Yandex, Google, Mail.Ru, etc). And social networks (Twitter, Vkontakte and Facebook), as well as OpenID identifiers.
/////
Support: dudu, facebook, foursquare, flickr, google, googleplus, instagram, lastfm, linkedin, liveid, livejournal, mailru, odnoklassniki, openid, soundcloud, steam, tumblr, twitter, uid, vimeo, vkontakte, wargaming, webmoney, yandex, youtube.
/////

Lang: Russian/English/French

REQUIRES: PHP 5, CURL or allow_url_fopen = ON

Your actions at forum/this mod updating:
1. Go to Administration - Plugin uLogin - Uninstall button.
2. To update forum/this mod.
3. Go to Administration - Plugin uLogin - Install button.

89955dc5a76b7844aef0113a75e07e63.jpg

The algorithm is different from Loginza:
1. If the user identifier is in the database, the user login to the forum (similar Loginza). Otherwise, paragraph 2.
2. If uLogin send confirmation email and this email we have in the database, the user login to the forum under the account with this email (Fundamental difference uLogin!). Otherwise, paragraph 3.
3. Register the new user.

Last edited by Visman (2015-05-26 01:51:47)

Offline

#2 2015-05-25 22:55:22

sryidk
Member
Registered: 2015-04-04
Posts: 12
Website

Re: [MOD] uLogin 1.0.0

Great. I like it smile

Offline

#3 2016-03-03 11:06:46

abdellah
Member
From: Morocco
Registered: 2010-10-19
Posts: 32

Re: [MOD] uLogin 1.0.0

Hi,

It is possible to file changes:

'Register.php'
'Login.php'
'Admin_users.php'
'Profile.php'
'Include / functions.php'
'Include / email.php'
'Header.php'

it is to install it manually becaufe they are too altered because other mods I installed

Offline

#4 2016-03-03 13:05:40

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,177
Website

Re: [MOD] uLogin 1.0.0

Administration -> Plugins menu -> uLogin -> Click Install = Mistakes exist in the appeared message?

Offline

#5 2016-03-03 15:22:40

abdellah
Member
From: Morocco
Registered: 2010-10-19
Posts: 32

Re: [MOD] uLogin 1.0.0

Hi,

I have installed the following message:

register.php - impossible de trouver le bloc à modifier.
login.php - impossible de trouver le bloc à modifier.
include/email.php - impossible de trouver le bloc à modifier.

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

Désolé pour mon anglais j'utilise Google traduction je ne parle pas anglais sad

Cordialement.

Last edited by abdellah (2016-03-03 15:23:09)

Offline

#6 2016-03-03 15:34:03

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,177
Website

Re: [MOD] uLogin 1.0.0

See AP_uLogin.php:

$arr_files = array(
	'register.php',
	'login.php',
	'admin_users.php',
	'profile.php',
	'include/functions.php',
	'include/email.php',
	'header.php',
);
$arr_search = array(
	'				<fieldset>'."\n".'					<legend><'.'?php echo $lang_register[\'Username legend\'] ?'.'></legend>',
	'				<fieldset>'."\n".'					<legend><'.'?php echo $lang_login[\'Login legend\'] ?'.'></legend>',
	'		$db->query(\'DELETE FROM \'.$db->prefix.\'users WHERE id IN (\'.implode(\',\', $user_ids).\')\') or error(\'Unable to delete users\', __FILE__, __LINE__, $db->error());',
	'		$db->query(\'DELETE FROM \'.$db->prefix.\'users WHERE id=\'.$id) or error(\'Unable to delete user\', __FILE__, __LINE__, $db->error());',
	'					<li<'.'?php if ($page == \'privacy\') echo \' class="isactive"\'; ?'.'>><a href="profile.php?section=privacy&amp;id=<'.'?php echo $id ?'.'>"><'.'?php echo $lang_profile[\'Section privacy\'] ?'.'></a></li>',
	'function pun_mail($to, $subject, $message, $reply_to_email = \'\', $reply_to_name = \'\')'."\n".'{'."\n".'	global $pun_config, $lang_common;',
	'if (is_array($page_statusinfo))',
);
$arr_new = array(
	'<'.'?php'."\n\n".'if (!function_exists(\'ulogin_set_reglog\')) // MOD uLogin'."\n\t".'include PUN_ROOT.\'include/ulogin/functions.php\';'."\n".'ulogin_set_reglog(\'\');'."\n\n".'?'.'>'."\n".'%search%',
	'<'.'?php'."\n\n".'if (!function_exists(\'ulogin_set_reglog\')) // MOD uLogin'."\n\t".'include PUN_ROOT.\'include/ulogin/functions.php\';'."\n".'ulogin_set_reglog(empty($redirect_url) ? \'\' : $redirect_url);'."\n\n".'?'.'>'."\n".'%search%',
	'%search%'."\n\t\t".'$db->query(\'DELETE FROM \'.$db->prefix.\'ulogin WHERE user_id IN (\'.implode(\',\', $user_ids).\')\') or error(\'Unable to delete users from ulogin\', __FILE__, __LINE__, $db->error()); // MOD uLogin',
	'%search%'."\n\t\t".'$db->query(\'DELETE FROM \'.$db->prefix.\'ulogin WHERE user_id=\'.$id) or error(\'Unable to delete user from ulogin\', __FILE__, __LINE__, $db->error()); // MOD uLogin',
	'%search%'."\n".'<'.'?php if ($pun_user[\'id\'] == $id): ?'.'>					<li<'.'?php if ($page == \'ulogin\') echo \' class="isactive"\'; ?'.'>><a href="ulogin.php">uLogin</a></li>'."\n".'<'.'?php endif; // MOD uLogin ?'.'>',
	'%search%'."\n\n\t".'if (!is_valid_email($to)) // MOD uLogin'."\n\t\t".'return;',
	'if ($pun_user[\'is_guest\']) // MOD uLogin'."\n{\n\t".'if (!function_exists(\'ulogin_set_header\'))'."\n\t\t".'include PUN_ROOT.\'include/ulogin/functions.php\';'."\n\t".'ulogin_set_header($page_statusinfo);'."\n}\n".'%search%',
);

$arr_files - list of files in which there is a search substring of the $array_search array, followed by the addition of a code from an $arr_new array.
Change the $array_search array.

Offline

#7 2018-08-14 02:49:45

sas514
New member
Registered: 2018-08-14
Posts: 2

Re: [MOD] uLogin 1.0.0

I speak only Russian

А возможно ли:
1. убрать переключение с лого uLogin на кнопки соц.сетей (так, чтобы сразу открывались сами кнопки)?
2. сделать больше иконок по-умолчанию? не 4, а например 6?

Offline

#8 2018-08-14 04:58:15

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,177
Website

Re: [MOD] uLogin 1.0.0

1. убрать переключение с лого uLogin на кнопки соц.сетей (так, чтобы сразу открывались сами кнопки)?

include/ulogin/functions.php

replace

$script = 'function fluxbb_ulogin_click()
{
	var e = document.createElement("script");
	e.src = "//ulogin.ru/js/ulogin.js";
	e.type="text/javascript";
	document.getElementsByTagName("head")[0].appendChild(e);
}';

to

$script = 'function fluxbb_ulogin_click()
{
	var e = document.createElement("script");
	e.src = "//ulogin.ru/js/ulogin.js";
	e.type="text/javascript";
	document.getElementsByTagName("head")[0].appendChild(e);
}
fluxbb_ulogin_click();';

Attention!
После этого изменения скрипты с сайта ulogin.ru будут грузится сразу при открытии страниц вашего форума незарегистрированными пользователями (в том числе поисковыми ботами). ulogin будет получать полную статистику по посещениям вашего форума.

2. сделать больше иконок по-умолчанию? не 4, а например 6?

include/ulogin/functions.php

replace

		if ($i < 4)

to

		if ($i < 6)

Last edited by Visman (2018-08-14 05:02:32)

Offline

#9 2018-08-14 05:01:17

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,177
Website

Re: [MOD] uLogin 1.0.0

@sas514, русскоговорящий форум fluxbb https://fluxbb.qb7.ru/forum/index.php
P.S. Если с территории России он не открывается, то можно воспользоваться прокси сервером или vpn.

Offline

#10 2018-08-14 05:06:25

sas514
New member
Registered: 2018-08-14
Posts: 2

Re: [MOD] uLogin 1.0.0

Спасибо

Offline

Board footer

Powered by FluxBB