Loading...

WebWoW

World of Warcraft Private Development Forums

You are not logged in.

NotoriousWoW
Donator
Registered: 2010-02-10
Posts: 283
Reputation:   30 
Website

#1     2010-03-07 21:49:08

Forum Module Issues.

Hello, after about an hour of testing and messing around with your phpBB3 module... I still couldn't find the solution to this problem.

So it turns out that the phpBB3 module creates accounts, ect. ect.... BUT it doesn't put the user into a group, making it so the forum says "This Board Has No Forums", if you manually put them into "Registered Users" this fixes the problem... although doing this for every user that registers is very unpractical...

So i was trying to come up with a solution, the registered users group ID for my forum and think for all is "2", and for mine the "user_permissions" field is:

Code:

00000000006xv29nwg


i1cjyo000000
i1cjyo000000
i1cjyo000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
i1cjyo000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000




qlc4pi000000

A very long code indeed, so I tried to modify the line that registers the account in the module to this.....

Code:

mysql_query("INSERT INTO ".$table_prefix."users (user_type,group_id,user_permissions,user_regdate,username,username_clean, user_password,user_passchg,user_email,user_email_hash,webwowcms) VALUES ('0','2','00000000006xv29nwg


i1cjyo000000
i1cjyo000000
i1cjyo000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
i1cjyo000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000
qlc4pi000000




qlc4pi000000','".date("U")."','".mysql_real_escape_string($a_user['login'])."','".mysql_real_escape_string(strtolower($a_user['login']))."','".$t_hasher->HashPassword($a_user['password'])."','".time()."','".$a_user['email']."','".crc32(strtolower($a_user['email'])) . strlen($a_user['email'])."','".$a_user['acct']."')") or die(mysql_error());

It gave me identical values to what a "Registered user" would have, although they still got "This Board Has No Forums" error......

Anyone come up with a solution? Because me and Stady are completely lost....

Post edited by NotoriousWoW (2010-03-08 21:53:12)


http://storm-gaming.com/images/logo.png
Owner of SwitchGaming

Offline

  3
 
mafiaman1564
Member
Registered: 2010-03-01
Posts: 6
Reputation:   

#2     2010-03-10 00:06:48

Re: Forum Module Issues.

You can just go to the registration settings and set it so new users are put into the registered users group automatically

Offline

 
NotoriousWoW
Donator
Registered: 2010-02-10
Posts: 283
Reputation:   30 
Website

#3     2010-03-10 18:09:36

Re: Forum Module Issues.

Doesn't work, ive already tried it.


http://storm-gaming.com/images/logo.png
Owner of SwitchGaming

Offline

  3
 
bijan588
Just above Guest
Registered: 2009-05-22
Posts: 1
Reputation:   
Website

#4     2010-03-11 08:50:43

Re: Forum Module Issues.

It is working for me, So i dont know how i can help you.

Offline

 
NotoriousWoW
Donator
Registered: 2010-02-10
Posts: 283
Reputation:   30 
Website

#5     2010-03-11 17:51:23

Re: Forum Module Issues.

Could you tell me all the permissions and registration settings you use? Possibly a screenshot?


http://storm-gaming.com/images/logo.png
Owner of SwitchGaming

Offline

  3
 
FlickR
Undeadness
From: Petersburg, WV
Registered: 2010-03-03
Posts: 148
Reputation:   
Website

#6     2010-03-11 18:56:07

Re: Forum Module Issues.

ya i would like to see that as well

Offline

 
Registered: 2010-04-01
Posts: 16
Reputation:   
Website

#7     2010-04-03 01:25:20

Re: Forum Module Issues.

Try this:

        $cont2.= ' Not registered yet.<br>- Creating your account...';
        mysql_query("INSERT INTO ".$table_prefix."users (user_type,group_id,user_regdate,username,username_clean, user_password,user_passchg,user_email,user_email_hash,webwowcms) VALUES ('0','2','".date("U")."','".mysql_real_escape_string($a_user['login'])."','".mysql_real_escape_string(strtolower($a_user['login']))."','".$t_hasher->HashPassword($a_user['password'])."','".time()."','".$a_user['email']."','".crc32(strtolower($a_user['email'])) . strlen($a_user['email'])."','".$a_user['acct']."')") or die(mysql_error());
       
        // Get user_id from users table to insert into groups
        $getid = "SELECT user_id FROM ".$table_prefix."users WHERE user_email='".$a_user['email']."'";
        $extractedid = mysql_query($getid);
        $xarray = mysql_fetch_assoc($extractedid);
        $extracteduserid = $xarray['user_id'];
        mysql_query("INSERT INTO ".$table_prefix."user_group (group_id,user_id,group_leader,user_pending) VALUES ('2','".$extracteduserid."','0','0')") or die(mysql_error());
       
              unset($t_hasher); //cleanup
        $cont2.= ' Forum account created!';
       
    }
}
elseif (isset($_GET['register']) && isset($_GET['override']))
{

}

Offline

 
FlickR
Undeadness
From: Petersburg, WV
Registered: 2010-03-03
Posts: 148
Reputation:   
Website

#8     2010-04-03 04:22:19

Re: Forum Module Issues.

not to sound noobish but where do i apply that lol found it never mind

Here it is for other people who could not find where it goes

Forum Module - Just drag into m_account in module section Works like it is supposed to wink

Post edited by FlickR (2010-04-03 04:30:19)

Offline

 
eXpLoit
Hooked on WebWoW
From: localhost
Registered: 2009-04-24
Posts: 35
Reputation:   
Website

#9     2010-04-03 05:29:53

Re: Forum Module Issues.

Is it possible to create a module for synchronization of accounts with the forum IPB (2 .* | 3 .*) & vBulletin?


sorry for my bad english smile

Offline

 
 
NotoriousWoW
Donator
Registered: 2010-02-10
Posts: 283
Reputation:   30 
Website

#10     2010-04-03 22:03:33

Re: Forum Module Issues.

Obviously it would be, you would just need functions for that instead of phphBB3, it would be hard without a lot of knowledge in the way those forums work.

And thank you arcticwolf6, works like a charm


http://storm-gaming.com/images/logo.png
Owner of SwitchGaming

Offline

  3
 
Registered: 2010-04-01
Posts: 16
Reputation:   
Website

#11     2010-04-04 01:58:54

Re: Forum Module Issues.

No problem =] My username is actually Arcticwolf8, but the site keeps saying all my passwords are wrong and the change password feature doesn't work =P

Offline

 

Board footer

Modded by AXE
© 2002–2008 PunBB

Not registered yet?
Latest Posts  
How to put vote... (Rusfighter)
Table 'characte... (NotoriousWoW)
Hello People - ... (giovannalive)
paypal (kjanko)
Online Players ... (harriebob)
Flash Banner Cr... (NotoriousWoW)
need help.. (ajidtbc)
Random Fact  
MP means Money Points.
Activity  
Hesath and Arash5 just completed all steps trough WebCreator and got new websites.
MiiChael and Carlwowwow just completed all steps trough WebCreator and got new websites.
Hellfires and matty66 just completed all steps trough WebCreator and got new websites.
nowares is awarded with Badge of Axe's Approval.
droptop just completed all steps trough WebCreator and got new [website].
droptop and Ensore just completed all steps trough WebCreator and got new websites.
WebWoW Staff  
Axe - creator & administrator
Phenom - moderator & spokesman
 
 
Action logged.