Pagina 1 van 1
Prune inactive
Geplaatst: 14 sep 2006, 16:29
door MoonCatcher
Ik heb deze mod geïnstalleerd maar die werkte niet echt goed. helemaal niet eigenlijk. Eraf gegooid, nogmaals geprobeerd, maar ik blijf deze melding krijgen
SQL PROCESSING HALTED
An error was encountered while processing the SQL commands. Further SQL processing has been halted. You may choose to complete the MOD installation anyway and perform the SQL commands manually yourself. However, at this point EM cannot guarantee the MOD will work correctly so you are best off seeking support from the Author before continuing further.
The failed line was:
ALTER TABLE phpbb_users ADD user_inactive_emls TINYINT(1) NOT NULL;;
SQL ERROR: 1060
Duplicate column name 'user_inactive_emls'
Ik snap ff niet wat dit betekend. (engels is oke, maar computertaal tot een bepaalde hoogte)

Geplaatst: 14 sep 2006, 16:42
door svenn
SQL ERROR: 1060
Duplicate column name 'user_inactive_emls'
vrij vertaald :
SQL probleem : 1060
Dubbele kolom naam 'user_inactive_emls'
m.a.w. je hebt het qeury al eens uitgevoerd...
Geplaatst: 14 sep 2006, 16:44
door MoonCatcher
dus nu? Werkt het nu wel of niet? Ik kan namelijk overal op klikken maar dan geeft het linksonderaan een fout op de pagina aan. Zelfs als ik hem eruit gooi dan kan ik nog in het ACP erbij.
Geplaatst: 14 sep 2006, 16:46
door svenn
hij hoort helemaal te werken

maar als je het met easymod wilt instaleren doe je best de SQL manueel. zo moeilijk is dat niet met onze
http://www.phpbb.nl/hulpmiddelen.php?tool=dbupdate
maar de mod hoort het wel te doen.
Geplaatst: 14 sep 2006, 16:52
door MoonCatcher
Ja en wat moet ik daar dan invullen? ben een leek met SQL en query's

Geplaatst: 14 sep 2006, 16:54
door svenn
niks niks

, je moet enkel de SQL uit de mod halen, een SQL kan vb lijken op dit :
Code: Selecteer alles
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('site_keywords', 'some, keywords, here');
maar het enige wat jij moet doen is dat eruithalen en easymod het verder laten doen, en in het vervolg dit in dat kader zetten. en daarna het onderstaande uploaden naar een nieuw leeg bestand.
Code: Selecteer alles
INSERT INTO `phpbb_config` (config_name, config_value) VALUES ('site_keywords', 'some, keywords, here');
Geplaatst: 14 sep 2006, 16:57
door MoonCatcher
#
#-----[ COPY ]------------------------------------------
#
copy admin_users_inactive.php to admin/admin_users_inactive.php
copy user_inactive_body.tpl to templates/subSilver/admin/user_inactive_body.tpl
copy user_inactive_contact.tpl to language/lang_english/email/user_inactive_contact.tpl
copy user_inactive_delete.tpl to language/lang_english/email/user_inactive_delete.tpl
#
#-----[ SQL ]------------------------------------------
#
# If you don't know how to execute sql queries, then copy
# mysql_install.php into your phpbb directory and run it.
# (assuming you use mysql)
# After process delete it.
#
# If you don't use mysql, you'll have to edit these queries accordingly
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
ALTER TABLE phpbb_users ADD user_inactive_emls TINYINT( 1 ) NOT NULL ;
ALTER TABLE phpbb_users ADD user_inactive_last_eml INT( 11 ) NOT NULL ;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('removed_users', '0') ;
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
//
// Begin program
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// Set username
//
if( isset( $HTTP_GET_VARS['username'] ) )
{
$HTTP_POST_VARS['username'] = $HTTP_GET_VARS['username'];
}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//Beginning Inactive Users
$lang['Users_Inactive'] = 'Inactive Users';
$lang['Users_Inactive_Explain'] = 'If in "Enable account activation" you have selected "User" or "Admin", in this list you will have the Users who have never been activated.<br /><br />By clicking on "Contact" you will send a contact e-mail to all the selected Users.<br />By clicking on "Activate" you will activate all the selected Users.<br />By clicking on "Delete" you will send an e-mail and delete all the selected Users.';
$lang['UI_Check_None'] = '"Enable account activation" is on <b>None</b>.';
$lang['UI_Check_User'] = '"Enable account activation" is on <b>User</b>';
$lang['UI_Check_Admin'] = '"Enable account activation" is on <b>Admin</b>.';
$lang['UI_Check_Recom'] = '%sChange it%s.';
$lang['UI_Removed_Users'] = 'Removed Users';
$lang['UI_User'] = 'User';
$lang['UI_Registration_Date'] = 'Registration Date';
$lang['UI_Last_Visit'] = 'Last Visit';
$lang['UI_Active'] = 'Active';
$lang['UI_Email_Sents'] = 'Email Sents';
$lang['UI_Last_Email_Sents'] = 'Last Email';
$lang['UI_CheckColor'] = 'Check';
$lang['UI_CheckAll'] = 'Check All';
$lang['UI_UncheckAll'] = 'Uncheck All';
$lang['UI_InvertChecked'] = 'Invert Checked';
$lang['UI_Contact_Users'] = 'Contact';
$lang['UI_Delete_Users'] = 'Delete';
$lang['UI_Activate_Users'] = 'Activate';
$lang['UI_select_user_first'] = 'You must to select a User before';
$lang['UI_return'] = 'Click %sHere%s to return to the Inactive Users';
$lang['UI_Deleted_Users'] = 'The Users has been removed';
$lang['UI_Activated_Users'] = 'The Users has been actived';
$lang['UI_Alert_Days'] = "days";
$lang['UI_with_zero_messages'] = "with zero messages";
$lang['UI_Alert_Every'] = "Every";
$lang['UI_Alert_UpTo'] = "Up to";
$lang['UI_Alert_Over'] = "Over";
//End Inactive Users
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Dit is de mod. De SQL moet ik kopieren en ergens anders plakken en in de mod verwijderen? hahaha ik snap er geen jota van.
Geplaatst: 14 sep 2006, 17:01
door svenn
dit bedoelde ik :
Code: Selecteer alles
#
#-----[ SQL ]------------------------------------------
#
# If you don't know how to execute sql queries, then copy
# mysql_install.php into your phpbb directory and run it.
# (assuming you use mysql)
# After process delete it.
#
# If you don't use mysql, you'll have to edit these queries accordingly
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
ALTER TABLE phpbb_users ADD user_inactive_emls TINYINT( 1 ) NOT NULL ;
ALTER TABLE phpbb_users ADD user_inactive_last_eml INT( 11 ) NOT NULL ;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('removed_users', '0') ;
dit best ook als je wilt Easymod gebruiken :
Code: Selecteer alles
#
#-----[ COPY ]------------------------------------------
#
copy admin_users_inactive.php to admin/admin_users_inactive.php
copy user_inactive_body.tpl to templates/subSilver/admin/user_inactive_body.tpl
copy user_inactive_contact.tpl to language/lang_english/email/user_inactive_contact.tpl
copy user_inactive_delete.tpl to language/lang_english/email/user_inactive_delete.tpl
Geplaatst: 14 sep 2006, 17:02
door svenn
// edit maar zo'n klein modje doe je toch beter zelf :p
Geplaatst: 14 sep 2006, 17:03
door MoonCatcher
Dus ff kopieren en ergens anders plakken, die stukjes deleten, dan uploaden en dan nogmaals installeren op het forum?
Geplaatst: 14 sep 2006, 17:03
door Paul
svennson schreef:dit bedoelde ik :
dit best ook als je wilt Easymod gebruiken :
Code: Selecteer alles
#
#-----[ COPY ]------------------------------------------
#
copy admin_users_inactive.php to admin/admin_users_inactive.php
copy user_inactive_body.tpl to templates/subSilver/admin/user_inactive_body.tpl
copy user_inactive_contact.tpl to language/lang_english/email/user_inactive_contact.tpl
copy user_inactive_delete.tpl to language/lang_english/email/user_inactive_delete.tpl
Onzin, goed geschreven copy command kan easymod gewoon aan. Dat het bij de album mod uit het andere topic niet werkt, komt omdat die command niet goed is

Geplaatst: 14 sep 2006, 17:05
door svenn
Jah natuurlijk en SQL ook hoor, maar uit ondervinding verwijder je die dingen gewoon beter, ze zijn eenvoudig zelf te doen en dan weet je sowieso dat ze goed zijn gedaan
Geplaatst: 14 sep 2006, 17:06
door MoonCatcher
Maar moet ik dat SQL geval dan nog met de hand doen ofzo?
Geplaatst: 14 sep 2006, 17:09
door Paul
svennson schreef:Jah natuurlijk en SQL ook hoor, maar uit ondervinding verwijder je die dingen gewoon beter, ze zijn eenvoudig zelf te doen en dan weet je sowieso dat ze goed zijn gedaan
Uit mijn ondervinding moet je heele easymod niet gebruiken

.
wanneer een mod gewoon goed geschreven is, dat werkt die met easymod, en hoef je dus niet dingen te gaan verwijderen, anders moet je het dus gewoon met de hand uitvoeren, simpel.
Geplaatst: 14 sep 2006, 17:09
door svenn
neen want het bestaat al

Geplaatst: 14 sep 2006, 17:10
door MoonCatcher
Nou als ik de dagen wil veranderen van 5 in 7 en ik ga weer terug staat die weer op 5 en als ik op check klik dan nog steeds een fout op de pagina.
Iemand een andere mod die inactieve gebruikers verwijderd?