Google+

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rezolvat O mica / mare problema!
#1
Deci la unele persoane care isi fac cont pe forumul meu , le da automat grad vip !
Oare dece?
#2
Nimeni ?
#3
Cred ca tu ai setat ceva la grupuri si ai dat o imagine de V.I.P la membrii sau ceva de genu .
Este un rank incurcat de tine , caci de la mybb nu are de ce sa fie asa .
Mult noroc .
#4
Întră te rog în fișierul member.php de pe disc și arată-ne următoarea porțiunea de cod :

PHP Code:
1
2
3
4
5
6
7
8
if($mybb->settings['regtype'] == "verify" || $mybb->settings['regtype'] == "admin" || $mybb->input['coppa'] == 1)
    {
        $usergroup = 5;
    }
    else
    {
        $usergroup = 2;
    } 

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#5
Poftim

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if($mybb->input['action'] == "do_register" && $mybb->request_method == "post")
{
	$plugins->run_hooks("member_do_register_start");

	if($mybb->settings['regtype'] == "randompass")
	{
		$mybb->input['password'] = random_str();
		$mybb->input['password2'] = $mybb->input['password'];
	}

	if($mybb->settings['regtype'] == "verify" || $mybb->settings['regtype'] == "admin" || $mybb->input['coppa'] == 1)
	{
		$usergroup = 5;
	}
	else
	{
		$usergroup = 2;
	}

	// Set up user handler.
	require_once MYBB_ROOT."inc/datahandlers/user.php";
	$userhandler = new UserDataHandler("insert");




#6
Bun. Acum spune-mi ce grupuri de utilizatori au gid-ul 2 si 5.
Pentru a afla gid-ul, intri in Admin CP > Users and Groups > Groups si pui mouse-ul pe fiecare grup si ii vei afla un link de genul urmator :
Quote:index.php?module=user-groups&action=edit&gid=2
In cazul de mai sus gid-ul este 2.
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
#7
Guests

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=1


Registered User

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=2


Moderators Global

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=3


Administrators

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=4


V.I.P

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=5


Moderators

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=6


Banned

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=7


Designers

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=8


Helpers

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=9


Server Owners

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=10


Server Admins

PHP Code:
http://steamx.ro/forum/admin/index.php?module=user-groups&action=edit&gid=13

#8
Mihule ia vezi tata e bine asa ? Ce problema e?
#9
Ma ajuta careva ??
#10
Păi acolo la tine grupul 5, este cel de VIP și e grupul în care sunt adăugați în mod normal cei care așteapta înregistrarea (email-ul de înregistrare). În mod normal grupul 5 este pentru Awaiting Activation (Users that have not activated their account by email or manually been activated yet.)
În concluzie fie renumești VIP-ul în Awaiting Activation și setezi permisiunile corespunzătoare, fie creezi un nou grup cu id-ul X și în fișierul member.php în loc de :

PHP Code:
1
2
3
4
5
6
7
8
if($mybb->settings['regtype'] == "verify" || $mybb->settings['regtype'] == "admin" || $mybb->input['coppa'] == 1)
    {
        $usergroup = 5;
    }
    else
    {
        $usergroup = 2;
    } 

pui :

PHP Code:
1
2
3
4
5
6
7
8
if($mybb->settings['regtype'] == "verify" || $mybb->settings['regtype'] == "admin" || $mybb->input['coppa'] == 1)
    {
        $usergroup = X;
    }
    else
    {
        $usergroup = 2;
    }

Numai bine și scuze pentru delay-ul apărut în scrierea replicii mele. Sper că acum ai înțeles cum stau lucrurile.

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.


Forum Jump:


Users browsing this thread: 1 Guest(s)