Loading...

WebWoW

World of Warcraft Private Development Forums

You are not logged in.

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

#1     2010-03-10 04:11:41

PHPBB3 Problem + User Name Add

For some reason when i create a new account through the cms for instance test it doesn't create the new account with the default usergroup i believe it's either newly registered or registered depending on forum settings but either way it creates the account with no affiliated usergroup. How could I fix this?

I have created a bug tracker and I would like to get it to create the bug and instert into my custom bugs db with the username automatically however, I am not sure how to code this right. See on the mod it uses a form even for the username so it must be put in manually i would like it automatically here is the code used for the insertion of data.

Where it says '".$_POST[Author]."' is where the username insert should be im not sure how to do it like the sidebars auto something like a_user er something.

Code:

$sql="INSERT INTO `bugs` VALUES (DEFAULT, 'Bugged', '<img src=\"./images/bugs/$_POST[Type].png\">','".str_replace("'","\'",$_POST[Name])."','".str_replace("'","\'",$_POST[Description])."','".$_POST[Author]."');";if (!mysql_query($sql,$con))

Offline

 
Axe
Admin
From: Croatia
Registered: 2008-09-13
Posts: 936
Reputation:   66 
Website

#2     2010-03-10 04:31:54

Re: PHPBB3 Problem + User Name Add

yea that mod doesnt insert to proper usergroup.. i will take a look in it one day.

Offline

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

#3     2010-03-10 04:35:55

Re: PHPBB3 Problem + User Name Add

ok cool thanks got anything on the second question axe?

Offline

 
Axe
Admin
From: Croatia
Registered: 2008-09-13
Posts: 936
Reputation:   66 
Website

#4     2010-03-10 13:51:26

Re: PHPBB3 Problem + User Name Add

just replace $_POST[Author] with $a_user[$db_translation['login']]

Offline

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

#5     2010-03-10 15:17:18

Re: PHPBB3 Problem + User Name Add

cool thanks wink

Offline

 

Board footer

Modded by AXE
© 2002–2008 PunBB

Not registered yet?
Latest Posts  
Table 'characte... (Hellfires)
How to put vote... (Rusfighter)
Trinity_ra- Bla... (Auzziedude)
Erroe (Axe)
paypal (Phenom)
Random Fact  
MP means Money Points.
Activity  
miki258 and bleachwow122 just completed all steps trough WebCreator and got new websites.
maryo1912 and LordRasz just completed all steps trough WebCreator and got new websites.
Hellfires and khazan just completed all steps trough WebCreator and got new websites.
khazan and Hellfires just completed all steps trough WebCreator and got new websites.
bleachwow122 added new person named "Ichigo_Kurosaki" to SpyMe.
TheCrogamer and reconsniper96 just completed all steps trough WebCreator and got new websites.
WebWoW Staff  
Axe - creator & administrator
Phenom - moderator & spokesman
 
 
Action logged.