форум vBSupport.ru > Камчатка > Pocket PC vBulletin.net.ru
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
ФилосOFF
Продвинутый
Default Группа пользователей относительно пола
0

Нужно,чтобы при регистрации и указывания пола пользователь попадал в группу мальчиков или девочек... очень нужно,т.к есть разделы для девочек и для парней, но все пишут туда и сюда... я поставил хак приватности сообщений. И теперь мне нужно,чтобы если пользователь не хочет,чтобы его тему смотрели парни или девченки,то он пишет id этой группы. Но проблема в том,чтобы при регистрации пользователи попадали автоматически в эти группы(мальчики или девочки). Зарание спасибо.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
ARNi
Простоузер
Wink
0

Присоеденяюсь!
Но мне нужен минимум облазил все что можно, но не нашел как отображать пол Пользователя?
желательно под аватаркой.
кто поделится кодом?
 
 
diSmiSS
Специалист
 
diSmiSS's Avatar
Default
1

ФилосOFF, если у вас на дополнительных группах то
_http://www.vbulletin.org/forum/showthread.php?t=82993
если для основных то
_http://www.vbulletin.org/forum/showthread.php?t=82992
Quote:
Originally Posted by ARNi
Но мне нужен минимум облазил все что можно, но не нашел как отображать пол Пользователя?
желательно под аватаркой.
кто поделится кодом?
ARNi, а вам нужно вот это
_http://www.vbulletin.org/forum/showthread.php?t=97386

Если нужны аттачи отпишитесь.
 
 
ФилосOFF
Продвинутый
Default
0

А можешь сам скачать его и повесит или русский вариант нарыть
 
 
diSmiSS
Специалист
 
diSmiSS's Avatar
Default
1

Quote:
Originally Posted by ФилосOFF
или русский вариант нарыть
сори.... а вот с кодом Вам помочь смогу.......
Quote:
This version is for the PRIMARY group. Here is the one for secondary groups:

_http://www.vbulletin.org/forum/showthread.php?t=82993

As far as plugins goes, this one is an advanced plugin because you WILL need to make some tweaks to suit your needs.

What this plugin does: If you have a custom profile field, for example one for gender, it checks to see if the user has selected a specific value and then assigns them to a primary user group based on that selection. This happens at the time the user activates their email account after registering.

Instructions for installation:
A. Create your custom profile field and make a note of the field number. (Or simply make a note of the field number of an existing field.)

B. Make a note of the value you are checking for. For example, you may be looking to see if your member selected "male" in your custom gender field.

C. Make a note of the usergroup number that you want to set the user to.

D. Here you have two options:
Option 1: Edit the attached XML file before you import it to change the field number, the value that you check for and the usergroupid. In my XML file, I am checking field5 to see if the value is yes and changing the usergroup to 10.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
<plugin active="1" product="vbulletin">
<title>Put User In User Group Based on Field Value</title>
<hookname>register_activate_process</hookname>
<phpcode><![CDATA[// Get the value for field 5
        $user = $db->query_first("
SELECT field5
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");


if ($user['field5'] == 'yes')
{
$userdata->set('usergroupid', 10);
}]]></phpcode>
</plugin>
</plugins>
If, for example, you want to check the value of field6, change field5 in the XML file to field6. If you are looking for "male" instead of "yes", change
Code:
if ($user['field5'] == 'yes')
to:
Code:
if ($user['field5'] == 'male')
And, finally, change the usergroup as appropriate. Instead of 10 in this line:
Code:
$userdata->set('usergroupid', 10);
substiture your usergroupid of choice.

Option 2: Import the XML file as is, open the plugin manager, and make your edits there.


NOTE: This mod works for forums that require users to verify their email address upon registration. If your forum does not require users to verify their email address, you will need to use a different hook. If I have time, I'll test that variation.
Attached Files
File Type: xml usergroup1.xml (536 Bytes, 12 views)
 
 
ARNi
Простоузер
Default
0

Quote:
Originally Posted by diSmiSS
Если нужны аттачи отпишитесь.
Нужны Заморсикие товарищи не пускають.
 
 
diSmiSS
Специалист
 
diSmiSS's Avatar
Default
1

Quote:
Originally Posted by ARNi
Нужны Заморсикие товарищи не пускають.
Прикрепил ТУТ
 
 
ARNi
Простоузер
Default
0

Ничего не понимаю....
дело в том что у меня стоит ник в ответ....
куда что добавлять непонятно! про postbit_legacy, но это пол беды.
Я непонял откуда он берет ссылочки на Картинки мужской женский?
подскажите люди добры, не судите нуба.

добавлено через 1 час 1 минуту
Уф разобрался.
Заодно и русифицировал

добавлено через 10 часов 44 минуты
Кстати.. что-то не то с IE на лисе(firefox) все ровно.
картинку не видит кто сможет помочь ?

Last edited by ARNi : 03-18-2006 at 11:02 AM. Reason: Добавлено сообщение
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:15 AM.


Powered by vBulletin® Version 3.0.7
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.