Bedankomat vs. Thank you MOD

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

Hab das Mod nochmal installiert und dann wieder entfernt und die alten Dateien zurück-schreiben lassen.
Denke mal ich sollte nur diese Tabellen-Einträge löschen. Wie find ich die genau und was mach ich?
Benutzeravatar
punkface
Mitglied
Beiträge: 3579
Registriert: 12.08.2004 23:37

Beitrag von punkface »

Du hast mein letzten Beitrag gelesen?
konstantin_br hat geschrieben:Denke mal ich sollte nur diese Tabellen-Einträge löschen. Wie find ich die genau und was mach ich?
Die Tabelle befindet sich in der Datenbank die du bei der Installation des phpBBs angegeben hast. Wie du auf die Datenbank zugreifen kannst bzw. welche Tools (wie z.b. phpMyAdmin) dir von Seiten des Hosters angeboten werden musst du wissen.
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

weiß wer wie das bei funpic ist?

phpmyadmin lässt sich nach upload auf sever nicht installieren:

Code: Alles auswählen

phpMyAdmin - Fehler

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
Benutzeravatar
punkface
Mitglied
Beiträge: 3579
Registriert: 12.08.2004 23:37

Beitrag von punkface »

phpMyAdmin gibt bei funpic.de schon, das musst du nicht erst installieren.
http://www.funpic.de/webhosting_mysql_daten.php
bzw. http://phpmyadmin.do.funpic.de/
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

So, Thank-You-Tabelle mit phpMyAdmin gelöscht - die war wirklich noch drinnen.

Hab jetzt den BEdankomat installiert - darauf kam folgendes:

Code: Alles auswählen

Could not obtain topic-bedankomat information

DEBUG MODE

SQL Error : 1146 Table 'domministranten.phpbb_bedankomat' doesn't exist

SELECT b.user_id, b.topic_id, u.username FROM phpbb_bedankomat b, phpbb_users u WHERE (b.user_id = u.user_id) AND (b.topic_id = 1) ORDER BY u.username

Line : 1334
File : viewtopic.php
Wie erstell ich diese Tabelle am besten?
Benutzeravatar
punkface
Mitglied
Beiträge: 3579
Registriert: 12.08.2004 23:37

Beitrag von punkface »

konstantin_br hat geschrieben: Wie erstell ich diese Tabelle am besten?
Laut MOD Anleitung.

Code: Alles auswählen

copy bedankomat_install.php      /bedankomat_install.php

[...]

##
## bedankomat_install.php ausführen und löschen
##
KB:modsfaq
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

Ich versuch grad das update auszuführen, allerdings kann er in der Datei viewtopic folgendes nicht finden und daher nicht ersetzen:

Code: Alles auswählen

/////////////////////////////////////////////////////////
//
//   Bedankomat-Start (2)
//
/////////////////////////////////////////////////////////


// nungut - erstmal soll das Teil nur fuer registrierte Benuzer vorhanden sein.
//
// Bedankomat START (Inclusive Add-On by OXPUS)
//
$thxmat = ( isset($HTTP_POST_VARS['thxmat']) ) ? $HTTP_POST_VARS['thxmat'] : $HTTP_GET_VARS['thxmat'];

if ( $thxmat == 'less' || $thxmat == '' )
{
	$thxmat = 'more';
	$thxmat_text = $lang['Thx_more'];
}
else
{
	$thxmat = 'less';
	$thxmat_text = $lang['Thx_less'];
}

$sql = 'SELECT b.user_id, b.topic_id, u.username FROM ' .BEDANKOMAT_TABLE. ' b, ' .USERS_TABLE. ' u
	WHERE (b.user_id = u.user_id) AND (b.topic_id = ' .$topic_id. ')
	ORDER BY u.username';
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, 'Could not obtain topic-bedankomat information', '', __LINE__, __FILE__, $sql);
}

$thx_users = array();
$num_thxs = $db->sql_numrows($result);
$thx_own = 0;

if ($num_thxs > 0 && $forum_topic_data['topic_bedankomat'] == TRUE)

{
	$l_thx_userlist = '';
	$l_thx_user = sprintf($lang['Thanking_user'], $num_thxs);

	$thx_users = array();
	while ( $row = $db->sql_fetchrow($result) )
	{
		$thx_own += ($row['user_id'] == $userdata['user_id'] ) ? 1 : 0;
		$thx_users[] = $row['username'];
	}

	$template->assign_block_vars('switch_bedankomat', array());

	if ( $num_thxs == 1 )
	{
		$l_thx_userlist = $thx_users[0];
	}
	else if ( $thxmat == 'more' )
	{
		$tuser = '';
		$count_users = ( count($thx_users) < 25 ) ? count($thx_users) : 25;
		for( $i = 0; $i < $count_users; $i++ )
		{
			$tuser .= ( $tuser == '' ) ? $thx_users[$i] : ', '.$thx_users[$i];
		}
		$l_thx_userlist .= $tuser;
	}
	else
	{
		$l_thx_userlist .= implode(', ', $thx_users);
	}
}
else
{
	$l_thx_userlist = '';
	$l_thx_user = '';
}

if ( count($thx_users) > 25 )
{
	$l_thx_userlist .= '<br>' . $thx_users[$i];
}

if ($userdata['session_logged_in'])
{
	if ($forum_topic_data['topic_bedankomat'] == TRUE)
	{
		$template->assign_block_vars('switch_bedankomat_on', array());
	}

	if ($thx_own != 0)
	{
		$l_bedankomat = '';
      $u_bedankomat = '';
	}
	else
	{

$l_bedankomat = '<img src="'.$images['Say_thanks'].'" border="0" alt="Dankeschön sagen" align="middle" />';
		$u_bedankomat = append_sid('viewtopic.'.$phpEx.'?mode=add_thx&u='.$userdata['user_id'].'&t='.$topic_id);
		$a_bedankomat = $lang['Say_thanks'];
	}
}
else
{
	$l_bedankomat = '';
	$u_bedankomat = '';
}

unset( $num_thxs );
unset( $thx_users );
//
// Bedankomat END (Inclusive Add-On by OXPUS)
//

/////////////////////////////////////////////////////////
//
//   Bedankomat-Ende (2)
//
/////////////////////////////////////////////////////////
wo sollte das denn ca sein damit ich es noch einfügen kann?
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

wenn ich bedankomat_install.php ausführe, kommt folgendes:

Code: Alles auswählen

Warning: main(./extension.inc) [function.main]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/domministranten/admin/mods/Bedankomat 0.2.2/bedankomat_install.php on line 23

Warning: main() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/domministranten/admin/mods/Bedankomat 0.2.2/bedankomat_install.php on line 23

Warning: main(./common.) [function.main]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/domministranten/admin/mods/Bedankomat 0.2.2/bedankomat_install.php on line 24

Warning: main() [function.include]: Failed opening './common.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/domministranten/admin/mods/Bedankomat 0.2.2/bedankomat_install.php on line 24

Fatal error: Call to undefined function: session_pagestart() in /usr/export/www/vhosts/funnetwork/hosting/domministranten/admin/mods/Bedankomat 0.2.2/bedankomat_install.php on line 29
Benutzeravatar
punkface
Mitglied
Beiträge: 3579
Registriert: 12.08.2004 23:37

Beitrag von punkface »

bedankomat_install.php muss, wie in der MOD Anleitung steht, in das Hauptverzeichnis des Forums kopiert und dort im Browser aufgerufen werden.

Und wenn EasyMOD etwas nicht finden kann musst du den MOD eben selbst einbauen.
konstantin_br
Mitglied
Beiträge: 69
Registriert: 11.02.2007 21:22

Beitrag von konstantin_br »

so, install wurde ausgeführt - tabelle ist auch vorhanden.

neues problem:

ich log mich als ein anderer user ein, bedankomat-funktion ist für ein forum aktiviert - beim posten eines beitrages kommt diese meldung wenn ich dann auf Abesenden gehe:

Code: Alles auswählen

 
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0)' at line 1

INSERT INTO phpbb_topics (topic_title, topic_bedankomat, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('', 1, 3, 1187531338, 1, 0, , 0)

Line : 227
File : functions_post.php 
  
fehler tritt auf auf wenn bedankomat ausgeschaltet ist
Antworten

Zurück zu „phpBB 2.0: Mod Support“