Verfasst: 10.09.2005 16:28
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:
aber ich hab das dann auch ausprobiert mit ner umfrage ...
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