UUfff a lot of work
Like u know I have a phpBB2 Plus 1.52 2.0.19
Only in the Installation instructions I did'nt find a few parts, in some file just I didn't find one part of the modifications, but in others file I didn't find anything of the modifications. ^q
Please I hope you can help me.
In includes/page_header.php only I didn't find this part.
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
if ( $board_config['gzip_compress'] )
#
#-----[ IN-LINE FIND ]----------------------------------------
# Note the leading space!
)
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
&& !defined('AJAX_HEADERS')In templates/xxxxx/index_body.tpl and templates/xxxxx/index_body_plus.tpl files (I have 2 templates ^q ) I didn't find nothing.
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<script type="text/javascript" src="includes/javascript/ajax_forumfunctions.js"></script>
#
#-----[ FIND ]------------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
height="50">
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
{catrow.forumrow.S_MARK_LINK_START}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
src="{catrow.forumrow.FORUM_FOLDER_IMG}"
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
# Note the leading space!
id="forumimage_{catrow.forumrow.FORUM_ID}"
#
#-----[ IN-LINE FIND ]----------------------------------------
#
title="{catrow.forumrow.L_FORUM_FOLDER_ALT}"
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
# Note the leading space!
border="0"
#
#-----[ IN-LINE FIND ]----------------------------------------
#
</td>
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{catrow.forumrow.S_MARK_LINK_END}In templates/xxxxx/viewforum_body.tpl files I didn't find anything.
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
<form method="post" action="{S_POST_DAYS_ACTION}">
#
#-----[ REPLACE WITH ]----------------------------------------
# This is not an error, just replace the form tag, we'll add it back in later
<script type="text/javascript" src="includes/javascript/ajax_topicfunctions.js"></script>
#
#-----[ FIND ]------------------------------------------------
#
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
valign="middle" width="20">
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
{topicrow.S_MARK_LINK_START}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
src="{topicrow.TOPIC_FOLDER_IMG}"
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
# Note the leading space!
id="topicimage_{topicrow.TOPIC_ID}"
#
#-----[ IN-LINE FIND ]----------------------------------------
#
title="{topicrow.L_TOPIC_FOLDER_ALT}"
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
# Note the leading space!
border="0"
#
#-----[ IN-LINE FIND ]----------------------------------------
#
</td>
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{topicrow.S_MARK_LINK_END}
#
#-----[ FIND ]------------------------------------------------
#
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
#
#-----[ REPLACE WITH ]----------------------------------------
#
<td {topicrow.S_AJAX_EDIT_TITLE} class="row1" width="100%">
<span class="topictitle"><span id="topicnewest_{topicrow.TOPIC_ID}">{topicrow.NEWEST_POST_IMG}</span>{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" id="topiclink_{topicrow.TOPIC_FIRST_POST_ID}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
<!-- BEGIN can_edit_title -->
<span id="title_{topicrow.TOPIC_FIRST_POST_ID}" style="display:none;"><input type="text" class="post" name="topictitle_{topicrow.TOPIC_FIRST_POST_ID}" id="topictitle_{topicrow.TOPIC_FIRST_POST_ID}" value="{topicrow.TOPIC_TITLE}" size="40" onkeyup="AJAXTitleEditKeyUp(event, {topicrow.TOPIC_FIRST_POST_ID})" /><input type="hidden" id="orig_topictitle_{topicrow.TOPIC_FIRST_POST_ID}" value="{topicrow.TOPIC_TITLE}" /> <input type="button" onclick="AJAXEndTitleEdit({topicrow.TOPIC_FIRST_POST_ID})" value="{L_SAVE_CHANGES}" class="mainoption" /> <input type="button" onclick="AJAXCancelTitleEdit({topicrow.TOPIC_FIRST_POST_ID})" value="{L_CANCEL}" class="liteoption" /></span>
<!-- END can_edit_title -->
</span><span class="gensmall"><br />
#
#-----[ FIND ]------------------------------------------------
#
<!-- END switch_no_topics -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<form method="post" action="{S_POST_DAYS_ACTION}">Code: Alles auswählen
#
#--^^^^^^^---[ FIND ]------------------------------------------------
#
<td class="row2" colspan="2"><br clear="all" /><form method="POST" action="{S_POLL_ACTION}"><table cellspacing="0" cellpadding="4" border="0" align="center">
#
#--^^^^^^^---[ IN-LINE FIND ]----------------------------------------
#
class="row2" colspan="2"
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
# Note the leading space!
id="pollbox"In index.php I dind't find anything.
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array();
$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array();
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Marking a single forum as read - ajax_features by alcaeus
if ($mark_read == 'forum')
{
// Get forum_id
if (isset($HTTP_POST_VARS[POST_FORUM_URL]) || isset($HTTP_GET_VARS[POST_FORUM_URL]))
{
$forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]);
}
else
{
$forum_id = 0;
}
if ($userdata['session_logged_in'] && !empty($forum_id))
{
if ((count($tracking_forums) count($tracking_topics)) >= 150 && empty($tracking_forums[$forum_id]))
{
asort($tracking_forums);
unset($tracking_forums[key($tracking_forums)]);
}
$tracking_forums[$forum_id] = time();
setcookie($board_config['cookie_name'] .'_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
}
#
#-----[ FIND ]------------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$mark_link = "index.$phpEx?mark=forum&". POST_FORUM_URL .'='. $forum_data[$j]['forum_id'];
$mark_link .= ($viewcat != -1) ? '&'. POST_CAT_URL .'='. $viewcat : '';
$mark_link_start = ($userdata['session_logged_in']) ? '<a onclick="return AJAXMarkForum('. $forum_data[$j]['forum_id'] .');" href="'. $mark_link .'">' : '';
$mark_link_end = ($userdata['session_logged_in']) ? '</a>' : '';
#
#-----[ FIND ]------------------------------------------------
#
'MODERATORS' => $moderator_list,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'FORUM_ID' => $forum_data[$j]['forum_id'],
#
#-----[ FIND ]------------------------------------------------
#
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
'S_MARK_LINK_START' => $mark_link_start,
'S_MARK_LINK_END' => $mark_link_end,In this part of the search.php fileI have a little question.
I only find this one, but with //
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
$search_cat = ( isset($HTTP_POST_VARS['search_cat']) ) ? intval($HTTP_POST_VARS['search_cat']) : -1;
$search_forum = ( isset($HTTP_POST_VARS['search_forum']) ) ? intval($HTTP_POST_VARS['search_forum']) : -1;Like this:
Code: Alles auswählen
#
#-----[ORIGINAL PART]------------------------------------------------
#
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
[b]// $search_cat = ( isset($HTTP_POST_VARS['search_cat']) ) ? intval($HTTP_POST_VARS['search_cat']) : -1;
// $search_forum = ( isset($HTTP_POST_VARS['search_forum']) ) ? intval($HTTP_POST_VARS['search_forum']) : -1;[/b]
//-- add
$search_where = ( isset($HTTP_POST_VARS['search_where']) ) ? $HTTP_POST_VARS['search_where'] : 'Root';
//-- fin mod : categories hierarchy ----------------------------------------------------------------Code: Alles auswählen
#
#-----[ REPLACE WITH ]----------------------------------------
#
if (isset($HTTP_POST_VARS['search_cat']) || isset($HTTP_GET_VARS['search_cat']))
{
$search_cat = (isset($HTTP_POST_VARS['search_cat'])) ? intval($HTTP_POST_VARS['search_cat']) : intval($HTTP_GET_VARS['search_cat']);
}
else
{
$search_cat = -1;
}
if (isset($HTTP_POST_VARS['search_forum']) || isset($HTTP_GET_VARS['search_forum']))
{
$search_forum = (isset($HTTP_POST_VARS['search_forum'])) ? intval($HTTP_POST_VARS['search_forum']) : intval($HTTP_GET_VARS['search_forum']);
}
else
{
$search_forum = -1;
}Code: Alles auswählen
#
#-- ---[ FIND ]------------------------------------------------
#
}
$template->pparse('body');
# Code: Alles auswählen
#
#-- ---[ ORIGINAL PART ]------------------------------------------------
#
if ($plus_config['show_quickreply'] == 1 && ($userdata['user_id']!= -1) && $forum_topic_data['topic_status'] == TOPIC_UNLOCKED)
{
include($phpbb_root_path . 'quick_reply.'.$phpEx);
$template->assign_block_vars('switch_show_quickreply', array());
}
$template->assign_vars(array(
"TELL_LINK" => append_sid("http://".$HTTP_SERVER_VARS['HTTP_HOST'].$HTTP_SERVER_VARS['PHP_SELF']."?t=$topic_id", true)));
[b]$template->pparse('body');[/b]
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>So, where I have to put this ?
Code: Alles auswählen
#
#-----[ BEFORE, ADD ]-----------------------------------------
# Make sure to add these lines before the closing curly bracket!
if ($can_edit)
{
$template->assign_block_vars('postrow.can_edit', array());
}I attach here some of the files an put a link to the rest.
-- Links deletes by ADMIN --
[ Attachments deleted on So 19.Feb, 2006 23:26 by oxpus ]