sql vraag
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

sql vraag
Wat een boel vragen.
Ik wil een mod gaan instaleren.
Nu heb ik de beschrijving van jullie goed doorgelezen.
Maar nu kom ik hier niet uit..
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
Hoe werkt dit jullie uileg werkt met phpMyAdmin.
Ik werk frontpage.
Kunnen jullie mij met dit onderdeel verder helpen?
Ik wil een mod gaan instaleren.
Nu heb ik de beschrijving van jullie goed doorgelezen.
Maar nu kom ik hier niet uit..
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
Hoe werkt dit jullie uileg werkt met phpMyAdmin.
Ik werk frontpage.
Kunnen jullie mij met dit onderdeel verder helpen?
Neem deze code:
en plak die hierin: http://www.phpbbhacks.com/forums/db_generator.php
Download het bestand, zet het op je server, en roep het aan, controleer of alles ok is, en verwijder het bestand daarna.
Code: Selecteer alles
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');Download het bestand, zet het op je server, en roep het aan, controleer of alles ok is, en verwijder het bestand daarna.
Laatst gewijzigd door Bee op 24 jul 2005, 20:05, 1 keer totaal gewijzigd.
... Maar ik modereer (nog) niet.
Re: sql vraag
wat ik doe is met deze link: http://www.phpbbhacks.com/forums/db_generator.php een bestand aan maken en die uploaden en dan 'runnen'
Neem dit stukje uit je script:
Zet die in de tekstvak van het linkje. Doe dan submit, dan komt er onder aan download te staan. klik er op, Upload daarna het bestand naar je site en runnen heb bijvoorbeeld http://www.mijnsite.nl/db_update.php. als het goed is zegt ie dat het oke is! verwijder daarna db_update.php van je site! voila zo doe ik het te minste!
edit// neem het stuk daat bee neemt aan en zet die in dat tekst vlak dat scheeld minder gedoe!
Neem dit stukje uit je script:
Code: Selecteer alles
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM; edit// neem het stuk daat bee neemt aan en zet die in dat tekst vlak dat scheeld minder gedoe!
Ik heb alles volgens mij gedaan zoals er gezegt werdt maar nu krijg ik deze fout
phpBB : Critical Error
Could not query profile field required status
DEBUG MODE
SQL Error : 1146 Table 'iven_nl_1.phpbb_profile_config' doesn't exist
SELECT * FROM phpbb_profile_config
Line : 255
File : usercp_register.php
Iemand een idee?
phpBB : Critical Error
Could not query profile field required status
DEBUG MODE
SQL Error : 1146 Table 'iven_nl_1.phpbb_profile_config' doesn't exist
SELECT * FROM phpbb_profile_config
Line : 255
File : usercp_register.php
Iemand een idee?
- WebSiteNet
- Berichten: 6524
- Lid geworden op: 20 okt 2003, 16:56
- Locatie: Wieringerwerf
- Contacteer:
Nou heb alles nog een keer opnieuw geprobeert en heb toch de eerste keer iets fout gedaan.
Deze keer is het wel gelukt, alleen nu weet ik niet waar ik de gegevens kan veranderen.
Het gaat om deze mod;
########################################################
## MOD Title: Configure Member Profile Required Fields
## MOD Version: 1.0.0
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to configure which information in member profile
## is required inside admin control panel.
## The required field will need to be filled in during registration and
## editing user's own profile.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 5
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## includes/constants.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
##
## Included Files: 2
## admin/admin_profile_field.php
## templates/subSilver/admin/admin_profile_field.tpl
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Tested on phpBB 2.0.6, however, should work on all phpBB 2.0.x versions
##############################################################
## MOD History:
##
## 2004-01-22 - Version 1.0.0
## - Initial Release
Nu komt er boven het invoer veld te staan als ik mij wil registreren
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres
Hoe en waar kan ik hier nu meerdere velden aan toevoegen?
Deze keer is het wel gelukt, alleen nu weet ik niet waar ik de gegevens kan veranderen.
Het gaat om deze mod;
########################################################
## MOD Title: Configure Member Profile Required Fields
## MOD Version: 1.0.0
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to configure which information in member profile
## is required inside admin control panel.
## The required field will need to be filled in during registration and
## editing user's own profile.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 5
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## includes/constants.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
##
## Included Files: 2
## admin/admin_profile_field.php
## templates/subSilver/admin/admin_profile_field.tpl
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Tested on phpBB 2.0.6, however, should work on all phpBB 2.0.x versions
##############################################################
## MOD History:
##
## 2004-01-22 - Version 1.0.0
## - Initial Release
Nu komt er boven het invoer veld te staan als ik mij wil registreren
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres
Hoe en waar kan ik hier nu meerdere velden aan toevoegen?
Dom had ik kunnen weten, is er ook een mogelijk heid om bv de verplichte velden bij elkaar te zetten en eventueel nog een veld toe te voegen?
Ik bedoel dan ik heb nu woonplaats ook verplicht gemaakt maar die blijft gewoon op de zelfde plaats staan.
Ik zou hem graag bij gebruikersnaam, e-mail ed willen hebben.
Ook zou ik hier graag een veld aan toevoegen met naam.
Nu komt er boven het invulformelier te staan
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres, Woonplaats
Kan dit niet weg en dat er sterretjes komen te staan achter de verplichte vakken?
Sorry voor de vele vragen
Ik bedoel dan ik heb nu woonplaats ook verplicht gemaakt maar die blijft gewoon op de zelfde plaats staan.
Ik zou hem graag bij gebruikersnaam, e-mail ed willen hebben.
Ook zou ik hier graag een veld aan toevoegen met naam.
Nu komt er boven het invulformelier te staan
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres, Woonplaats
Kan dit niet weg en dat er sterretjes komen te staan achter de verplichte vakken?
Sorry voor de vele vragen
Vraagje ik wil deze mod gaan instaleren;
########################################################
## MOD Title: Configure Member Profile Required Fields
## MOD Version: 1.0.0
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to configure which information in member profile
## is required inside admin control panel.
## The required field will need to be filled in during registration and
## editing user's own profile.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 5
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## includes/constants.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
##
## Included Files: 2
## admin/admin_profile_field.php
## templates/subSilver/admin/admin_profile_field.tpl
Nou staat er in het begin;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
Als ik mij niet vergis moet ik er dus deze code van maken;
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
en die invoeren op http://www.phpbbhacks.com/forums/db_generator.php
Nu heb ik dit gedaan, op de server gezet aangeroepen maar nu geeft hij bij alle zinnen error
CREATE TABLE `phpbb_profile_config` ( `config_name` varchar(255) NOT NULL default '', `config_value` varchar(255) NOT NULL default '', PRIMARY KEY (`config_name`) ) TYPE=MyISAM
+++ Error: Table 'phpbb_profile_config' already exists
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1')
+++ Error: Duplicate entry 'user_email' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0')
+++ Error: Duplicate entry 'user_icq' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0')
+++ Error: Duplicate entry 'user_website' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0')
+++ Error: Duplicate entry 'user_from' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0')
+++ Error: Duplicate entry 'user_sig' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0')
+++ Error: Duplicate entry 'user_aim' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0')
+++ Error: Duplicate entry 'user_yim' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0')
+++ Error: Duplicate entry 'user_msnm' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0')
+++ Error: Duplicate entry 'user_occ' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0')
+++ Error: Duplicate entry 'user_interests' for key 1
Dus wat doe ik fout?
########################################################
## MOD Title: Configure Member Profile Required Fields
## MOD Version: 1.0.0
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to configure which information in member profile
## is required inside admin control panel.
## The required field will need to be filled in during registration and
## editing user's own profile.
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 5
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## includes/constants.php
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
##
## Included Files: 2
## admin/admin_profile_field.php
## templates/subSilver/admin/admin_profile_field.tpl
Nou staat er in het begin;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
Als ik mij niet vergis moet ik er dus deze code van maken;
CREATE TABLE `phpbb_profile_config` (
`config_name` varchar(255) NOT NULL default '',
`config_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`config_name`)
) TYPE=MyISAM;
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1');
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0');
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0');
en die invoeren op http://www.phpbbhacks.com/forums/db_generator.php
Nu heb ik dit gedaan, op de server gezet aangeroepen maar nu geeft hij bij alle zinnen error
CREATE TABLE `phpbb_profile_config` ( `config_name` varchar(255) NOT NULL default '', `config_value` varchar(255) NOT NULL default '', PRIMARY KEY (`config_name`) ) TYPE=MyISAM
+++ Error: Table 'phpbb_profile_config' already exists
INSERT INTO `phpbb_profile_config` VALUES ('user_email', '1')
+++ Error: Duplicate entry 'user_email' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_icq', '0')
+++ Error: Duplicate entry 'user_icq' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_website', '0')
+++ Error: Duplicate entry 'user_website' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_from', '0')
+++ Error: Duplicate entry 'user_from' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_sig', '0')
+++ Error: Duplicate entry 'user_sig' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_aim', '0')
+++ Error: Duplicate entry 'user_aim' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_yim', '0')
+++ Error: Duplicate entry 'user_yim' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_msnm', '0')
+++ Error: Duplicate entry 'user_msnm' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_occ', '0')
+++ Error: Duplicate entry 'user_occ' for key 1
INSERT INTO `phpbb_profile_config` VALUES ('user_interests', '0')
+++ Error: Duplicate entry 'user_interests' for key 1
Dus wat doe ik fout?
De reactie van ivo2 is ook van mij voor de duidelijkheid.
Het wil mij niet lukken.
Ik heb de bovenste mod met susces geinstaleerd, alleen nu komt er boven de velden te staan
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres, Woonplaats
Dit is eingelijk niet wat ik wil, wat ik wel graag wil is:
Registratie informatie
Gebruikersnaam:*
Echte naam:*
Woonplaats*
Email adres:*
Wachtwoord:*
Bevestig wachtwoord:*
Profiel Informatie
......
......
......
......
Is dit voor elkaar te krijgen zo ja willen jullie mij hier mee helpen want ik kom er niet uit?
Het wil mij niet lukken.
Ik heb de bovenste mod met susces geinstaleerd, alleen nu komt er boven de velden te staan
Required Fields: Gebruikersnaam, Wachtwoord, Bevestig wachtwoord, Email adres, Woonplaats
Dit is eingelijk niet wat ik wil, wat ik wel graag wil is:
Registratie informatie
Gebruikersnaam:*
Echte naam:*
Woonplaats*
Email adres:*
Wachtwoord:*
Bevestig wachtwoord:*
Profiel Informatie
......
......
......
......
Is dit voor elkaar te krijgen zo ja willen jullie mij hier mee helpen want ik kom er niet uit?