Seite 2 von 4

Verfasst: 10.09.2005 16:28
von shizo
bb code on vote (daran liegts nich)
events mod | nich sicher
pjirc chat mod | nein
fully intergated shoutbox | daran auch nicht
admin priv messeges mod
birthday mod | hab ich gestern eingebaut

daten bei birthday mod zu änder:

## Files To Edit: 18
## index.php
## viewtopic.php
## admin/admin_board.php
## admin/admin_users.php
## includes/functions.php
## includes/page_header.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
## templates/subSilver/overall_header.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
##
## Included Files: 3
## birthday_db_update.php
## root/birthday_popup.php
## root/templates/subSilver/greeting_popup.tpl



beim bb code on vote options musst ich die functions post bearbeiten:

Code: Alles auswählen

#-----[ OPEN ]--------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]--------------------------------------------------
#
					$temp_option_text[$option_id] = htmlspecialchars($option_text);

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#
					$option_text = prepare_message(trim($option_text), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);

#
#-----[ FIND ]--------------------------------------------------
#
			$option_text = $temp_option_text;

#
#-----[ AFTER, ADD ]--------------------------------------------------
#
			$poll_options = $option_text;

#
#-----[ OPEN ]--------------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]--------------------------------------------------
#
		$poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0;

#
#-----[ AFTER, ADD ]--------------------------------------------------
#
		$sql = "SELECT pt.bbcode_uid FROM " . TOPICS_TABLE . " t, " . POSTS_TEXT_TABLE . " pt
			WHERE t.topic_id = $topic_id
				AND t.topic_first_post_id = pt.post_id
			LIMIT 1";
		if (!$result = $db->sql_query($sql))
		{
			message_die(GENERAL_ERROR, 'Could not read bbcode for poll_options', '', __LINE__, __FILE__, $sql);
		}
		$row = $db->sql_fetchrow($result);
		$bbcode_uid = $row['bbcode_uid'];
		$db->sql_freeresult($result);

#
#-----[ FIND ]--------------------------------------------------
#
					$template->assign_block_vars("poll_option", array(
						'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'],

#
#-----[ REPLACE WITH ]--------------------------------------------------
#
					$vote_caption_text = $vote_info[$i]['vote_option_text'];
					$vote_caption_text = (!$board_config['allow_html']) ? preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $vote_caption_text) : $vote_caption_text;
					$vote_caption_text = ($board_config['allow_bbcode'] && $bbcode_uid != '') ? bbencode_second_pass($vote_caption_text, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $vote_caption_text);
					$vote_caption_text = make_clickable($vote_caption_text);
					$vote_caption_text = ($board_config['allow_smilies']) ? smilies_pass($vote_caption_text) : $vote_caption_text;

					$template->assign_block_vars("poll_option", array(
						'POLL_OPTION_CAPTION' => $vote_caption_text,

#
#-----[ FIND ]--------------------------------------------------
#
				$template->assign_block_vars("poll_option", array(
					'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'],
					'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'])
				);

#
#-----[ REPLACE WITH ]--------------------------------------------------
#
				$vote_caption_text = $vote_info[$i]['vote_option_text'];
				$vote_caption_text = (!$board_config['allow_html']) ? preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $vote_caption_text) : $vote_caption_text;
				$vote_caption_text = ($board_config['allow_bbcode'] && $bbcode_uid != '') ? bbencode_second_pass($vote_caption_text, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $vote_caption_text);
				$vote_caption_text = make_clickable($vote_caption_text);
				$vote_caption_text = ($board_config['allow_smilies']) ? smilies_pass($vote_caption_text) : $vote_caption_text;

				$template->assign_block_vars("poll_option", array(
					"POLL_OPTION_ID" => $vote_info[$i]['vote_option_id'],
					"POLL_OPTION_CAPTION" => $vote_caption_text)
				);


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#
# EoM
aber ich hab das dann auch ausprobiert mit ner umfrage ...

Verfasst: 10.09.2005 16:31
von Markus67
Hi ...

tausche mal nacheinander die beiden Dateien ...
## includes/functions.php
## includes/page_header.php

gegen die original-Dateien aus.

Markus

Verfasst: 10.09.2005 16:34
von shizo
nachdem ichj functions getauscht hab: ^^

http://anarchist.an.funpic.de/phpBB2/index.php


also mit nur functions und functions und page header erstetzen kommt fehler, bei page header als einzige ersetzen kommt nix aber es geht halt auch nich das posten!

edit: könnte das an der db liegen

Verfasst: 10.09.2005 16:40
von Markus67
Hi ...

mit der DB hat das nichts zu tun ... da läuft was schief mit den Berechtigungen.

Dann verlinke mal die
functions.php
page_header.php

und dann bräuche ich mal noch die Einbauanleitung für den Event-Manager .. bitte auch als txt-Datei verlinken.

Markus

Verfasst: 10.09.2005 18:20
von shizo
functions.php

page_header.php

Event Manager Anleitung


ich hab einfach den text aus den php dateien rauskopiert und in ein txt dokument eingefügt, ok?

edit: wart mal ich lad wo anders hoch!

EDIT:

hier als zip runterladen:

Code: Alles auswählen

chesus.ch.funpic.de/daten.zip

Verfasst: 10.09.2005 19:04
von Markus67
Hi ...

bevor wir jetzt alles auseinandernehmen lass mal den MOD über die DB laufen ... ob da auch wirklich alles in Ordnung ist.
[2.0.15] DB Maintenance Mod

Markus

Verfasst: 10.09.2005 19:19
von shizo
soll ich jeden link klciken bei der datenbank wartung?

Verfasst: 10.09.2005 19:20
von Markus67
Hi ...

yep ... alles komplett durchchecken.

Markus

Verfasst: 10.09.2005 19:26
von shizo
Prüfe Wort-Liste-Tabelle

Sperre das Board

Warte drei Sekunden, damit Datenbanktransaktionen beendet werden können...

Prüfe auf unnötige Suchwörter

Entferne unnötige Suchwörter

7 betroffene Datensätze

Entsperre das Board

Erledigt



sonst überall in ordnung und keine arbeit nötig!

Verfasst: 10.09.2005 19:58
von Markus67
Hi ...

hast du an den php-Dateien im admin-Ordner irgendwas verändert für einen MOD?

Markus