PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : help plz bei phpbb mod


Henrik
2004-03-20, 16:26:19
hätt da ne frage, was soll ich an der stelle machen?


#
#-----[ SQL ]------------------------------------------
# Change the prefix 'phpbb_' accordingly. 'phpbb_' is the default prefix
#
ALTER TABLE phpbb_forums ADD forum_postcount TINYINT( 1 ) DEFAULT '1' NOT NULL;
#

007
2004-03-20, 16:40:06
als sql befehl in phpmyadmin einfügen.

Henrik
2004-03-20, 17:02:06
also im admin control panel, das man in der regel über
/admin/index.php erreicht?
hab leider nicht so den plan, sry

Nase
2004-03-20, 17:18:06
Nein, über phpmyadmin. Meistens zu finden unter www.deinedomain.de/phpmyadmin. Kann aber je nach Provider anderes sein. Die Adresse bekommst du aber immer bei der Anmeldung mitgeteilt. Wenn nicht, einfach mal nachfragen oder ein Script für die oben genannte Änderung schreiben.

Henrik
2004-03-21, 11:11:21
hab ich scheinbar nicht, dann muss ich es wohl oder übel hochladen.

007
2004-03-21, 11:12:34
Original geschrieben von _3dfx_rulez
hab ich scheinbar nicht, dann muss ich es wohl oder übel hochladen.

ja, zieh dir shcnell phpmyadmin, editier die config file und dann kannste selbst hand anlegen :)

Henrik
2004-03-21, 15:14:12
habs jetzt mal mit easy mod versucht, aber bei der installation kriege ich immer folgende meldung
Step 2 (of 5): EasyMOD is now confirming your file access settings.


Testing selected write method
Testing FTP access...
1) Logged in successfully

FTP ERROR: could not cd to /
You successfully logged into the server, but could not change direcory (CD) to the easymod directory. The following is recommended:


1. Important: You have a slash (/) at the end of your FTP Path. Try removing this and retrying.
2. Are you sure you entered the correct path? Below is a directory listing of the files in the FTP root directory. The FTP root directory is simply the starting point when you connect. The path to the phpBB2 installation should begin with one of the directory names listed below.
3. Directory names are case sensitive. Be sure the easymod directory is all lowercase.
4. In some *very rare* cases it's possible that you are not connecting to the proper FTP Server. Try specifying the hostname in the FTP Server field.
5. Some servers have issues with the passive mode that EasyMOD attempts to use by default. If you have the PHP FTP extension loaded, then enable that option in step 1.


FTP root directory:
/

Directory listing: your FTP Path should start with one of the directories listed below
html
files
backup
restore
log
phptmp


ist es möglich, das easy mod nur funktioniert, wenn das forum in einem separaten verzeichnis liegt und nicht im root verzeichnis??
ich habs nämlich gleich in www.irgendwas.de/index.php
und nicht www.irgendwasanderes.de/eineschöneforensoftware/index.php

kann es daran liegen?

Henrik
2004-03-21, 17:44:02
*grrr* da wird man ja bekloppt wenn man die tausend werte in php my admin editieren muss, und das alles nur wegen dem bekloppten mod.

007
2004-03-21, 20:09:22
hä?

Das sind nur
dbname (optional)
dbpw
dbuser
dbhost und das wars... :???:

btw. der Easy Mod Dingsda ist Müll, da sich fast keiner an den Syntax hält, sodass die anderen Mods tatsächlich einfacher geschrieben werden können. Das wäre auch eine unzumutbare Qual sich an dieses Syntax zu halten als Mod Schreiber.

Henrik
2004-03-22, 18:19:44
es gibt doch listen aller easymod kompatiblen mods, bei den anderen editiert man dann halt von hand.

Henrik
2004-05-28, 21:26:38
nachdem ich das projekt zwischenzeitlich auf eis gelegt habe, hab ich es jetzt endlich noch mal probiert und dann hat es nun auch endlich mal funktioniert.
php my admin hatte ich schon, ich depp hab es nur nicht gefundne ;D - das muss man erst mal schaffen.
also, lange rede, kurzer sinn:
ich bin jetzt bei phpmyadmin eineloggt und hab in den reiter "sql" gewechselt.
dort hab ich jetzt ne box, wo ich die my sql befehle eingeben kann. was davon muss ich denn jetzt genau eingeben? da ich, wie man ja unschwer erkennt, ein total rookie bin :) , hätte ich wenig freude daran, die db wieder neu erstellen zu müssen, da ja dann alle beiträge im forum (immerhin schon 1600 :proud: ) nicht mehr zugeordnet werden könnten.
also, es ging um diesen mod :


##############################################################
## MOD Title: Disable Post Count Increase
## MOD Author: Xore < xore@azuriah.com > (Robert Hetzler) http://www.azuriah.com
## MOD Description: This mod enables you to selectively turn off post count increments on each forum
## MOD Version: 1.0.1
##
## Installation Level: (Easy)
## Installation Time: 2 Minutes
## Files To Edit: includes/functions_post.php,
## admin/admin_forums.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/forum_edit_body.tpl
## Included Files: (n/a)
##############################################################
## 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:
##
##############################################################
## MOD History:
##
## 2003-09-21 - Version 1.0.0
## - Initial release
## 2003-09-23 - Version 1.0.1
## - Comma error fixed, fixed "Files To Edit"
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
# Change the prefix 'phpbb_' accordingly. 'phpbb_' is the default prefix
#
ALTER TABLE phpbb_forums ADD forum_postcount TINYINT( 1 ) DEFAULT '1' NOT NULL;
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$sql = "SELECT forum_postcount
FROM " . FORUMS_TABLE . "
WHERE forum_id = $forum_id AND forum_postcount = 0";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
return;
}
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
#
'S_PRUNE_ENABLED' => $prune_enabled,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'S_FORUM_POSTCOUNT' => ( isset($row) && isset($row['forum_postcount']) && ($row['forum_postcount'] == 0) ) ? '' : 'checked="checked"',
#
#-----[ FIND ]------------------------------------------
#
'L_DAYS' => $lang['Days'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POSTCOUNT' => $lang['Forum_postcount'],
#
#-----[ FIND ]------------------------------------------
#
prune_enable" . $field_sql
#
#-----[ IN-LINE FIND ]------------------------------------------
#
prune_enable
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# (before the " )
#
, forum_postcount
#
#-----[ FIND ]------------------------------------------
#
intval($HTTP_POST_VARS['prune_enable']) . $value_sql
#
#-----[ IN-LINE FIND ]------------------------------------------
#
intval($HTTP_POST_VARS['prune_enable'])
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# (before the . )
#
. ", " . intval($HTTP_POST_VARS['forum_postcount'])
#
#-----[ FIND ]------------------------------------------
#
prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
, forum_postcount = " . intval($HTTP_POST_VARS['forum_postcount']) . "
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['prune_freq']
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Forum_postcount'] = 'Count user\'s posts';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_POSTCOUNT}</td>
<td class="row2">{L_ENABLED}<input type="checkbox" name="forum_postcount" value="1" {S_FORUM_POSTCOUNT} /></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


in php my admin muss ich ja nur den sql befehl eingeben und die phps per texteditor bearbeiten, richtig?
was genau ist denn davon der sql befehl?

Nase
2004-05-28, 21:29:25
Das, wo SQL drüber steht. Also der hier: ALTER TABLE phpbb_forums ADD forum_postcount TINYINT( 1 ) DEFAULT '1' NOT NULL;

Henrik
2004-05-28, 21:31:15
thx, ging ja ratzfatz