Seite 1 von 3

Complete Banner Mod

Verfasst: 25.07.2006 16:06
von ema2412
fehler beim Einbau : Parse error: syntax error, unexpected ';', expecting ')' in /www/htdocs/angelfor/forum/admin/admin_db_utilities.php on line 697


hier die verlinkte admin_db_utilities.php www.angelforum.at/admin_db_utilities.txt


Bitte kann mir wer den Fehler nennen, vielen Dank

Verfasst: 25.07.2006 16:32
von senyafin
ich habe den soeben eingebaut.
Bei mir bekomme ich keine Fehlermeldung - will ich allerdings ein
banner administrieren und klicke auf [New Banner] dann kommt diese Nachricht

User does not exist

Vielleicht können wir ja beide Probleme lösen.
btw. wegen deiner Datei - die schaue ich mir gleich mal an und vergleiche sie mit meiner

Verfasst: 25.07.2006 17:13
von senyafin
Bist Du Dir ganz sicher das mit der Links Mod alles passt?

Bitte prüfe das nochmal.

Verfasst: 25.07.2006 17:26
von ema2412
kannst du mir vielleicht deinen ausschnitt von der Datei rund um die zeile 696 posten?

Verfasst: 25.07.2006 17:33
von senyafin

Code: Alles auswählen

				include('./page_footer_admin.'.$phpEx);
			}

			$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm', 'sessions_keys');
			// Start add - Complete banner MOD
Zeile 696 fängt mit $tables an

Verfasst: 25.07.2006 17:47
von ema2412
ok danke kannst vielleicht die nächsten 10 zeilen auch noch posten. ich hab das jetzt so gemacht wie du nur erscheint im Admin Bereich kein Menü zum Steuern vom den Bannern

Verfasst: 25.07.2006 17:55
von senyafin

Code: Alles auswählen

			$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm', 'sessions_keys');
			// Start add - Complete banner MOD
			$tables[] = 'banner';
			$tables[] = 'banner_stats';
			// End add - Complete banner MOD
			
			// Start Advanced IP Tools Pack MOD
			$tables[] = 'logins';
			// End Advanced IP Tools Pack MOD
			$additional_tables = (isset($HTTP_POST_VARS['additional_tables'])) ? $HTTP_POST_VARS['additional_tables'] : ( (isset($HTTP_GET_VARS['additional_tables'])) ? $HTTP_GET_VARS['additional_tables'] : "" );

			$backup_type = (isset($HTTP_POST_VARS['backup_type'])) ? $HTTP_POST_VARS['backup_type'] : ( (isset($HTTP_GET_VARS['backup_type'])) ? $HTTP_GET_VARS['backup_type'] : "" );

			$gzipcompress = (!empty($HTTP_POST_VARS['gzipcompress'])) ? $HTTP_POST_VARS['gzipcompress'] : ( (!empty($HTTP_GET_VARS['gzipcompress'])) ? $HTTP_GET_VARS['gzipcompress'] : 0 );

			$drop = (!empty($HTTP_POST_VARS['drop'])) ? intval($HTTP_POST_VARS['drop']) : ( (!empty($HTTP_GET_VARS['drop'])) ? intval($HTTP_GET_VARS['drop']) : 0 );

			if(!empty($additional_tables))
			{
				if(ereg(",", $additional_tables))
				{
					$additional_tables = split(",", $additional_tables);

					for($i = 0; $i < count($additional_tables); $i++)
					{
						$tables[] = trim($additional_tables[$i]);
					}

				}
				else
				{
					$tables[] = trim($additional_tables);
				}
			}

			if( !isset($HTTP_POST_VARS['backupstart']) && !isset($HTTP_GET_VARS['backupstart']))
			{
				include('./page_header_admin.'.$phpEx);

				$template->set_filenames(array(
					"body" => "admin/db_utils_backup_body.tpl")
				);	
				$s_hidden_fields = "<input type=\"hidden\" name=\"perform\" value=\"backup\" /><input type=\"hidden\" name=\"drop\" value=\"1\" /><input type=\"hidden\" name=\"perform\" value=\"$perform\" />";

				$template->assign_vars(array(
					"L_DATABASE_BACKUP" => $lang['Database_Utilities'] . " : " . $lang['Backup'],
					"L_BACKUP_EXPLAIN" => $lang['Backup_explain'],
					"L_FULL_BACKUP" => $lang['Full_backup'],
					"L_STRUCTURE_BACKUP" => $lang['Structure_backup'],
					"L_DATA_BACKUP" => $lang['Data_backup'],
					"L_ADDITIONAL_TABLES" => $lang['Additional_tables'],
					"L_START_BACKUP" => $lang['Start_backup'],
					"L_BACKUP_OPTIONS" => $lang['Backup_options'],
					"L_GZIP_COMPRESS" => $lang['Gzip_compress'],
					"L_NO" => $lang['No'],
					"L_YES" => $lang['Yes'],
Zeile 696 - 751
Gruss
pascal

Verfasst: 26.07.2006 08:24
von ema2412
hallo Leute, wer kann mir helfen? Hab den Mod jetzt ganz eingebaut, es gibt auch keine Fehleranzeige mehr nur hab ich ein Problem der Mod erscheint nirgendes. Das heißt weder im Adimbereich noch sonst wo ist irgendwas von diesem Mod zu sehen. Woran kann das bitte liegen?

Verfasst: 26.07.2006 08:51
von senyafin
Hast Du die Templates in die richtigen Ordner kopiert?

Verfasst: 26.07.2006 09:45
von ema2412
ja