Problem with some missed instruction parts of the AJAX MOD!

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Problem with some missed instruction parts of the AJAX MOD!

Beitrag von mariokaz »

Hi my friend Oxpus!! :cool:

UUfff a lot of work :eek: but I can finished all the files modifications of the Ajax Features Mod.

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. :D

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}" />&nbsp;<input type="button" onclick="AJAXEndTitleEdit({topicrow.TOPIC_FIRST_POST_ID})" value="{L_SAVE_CHANGES}" class="mainoption" />&nbsp;<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}">
In templates/xxxxx/viewtopic_poll_ballot.tpl files I didn't find only this part.

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 ----------------------------------------------------------------
So how I have to replace this?:

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;
}
And finally in this file viewtopic.php I find this part but without the }

Code: Alles auswählen

# 
#-- ---[ FIND ]------------------------------------------------ 
# 
}

$template->pparse('body');


# 
I find only this

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());
	}
Well that's all and I am very sorry for the inconvenience. :heiss:

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 ]
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Hmpf :(
I'll not "install" the hole the AJAX Features for other Forums, just take a look on "little" errors.

Sorry...

And I'll delete your files, because OXPUS.de is NOT an "install" forum!
If you will attach anything, please attach less file (if possible only ONE) and do not mix between links and attachments.
And I don't know other templates as subSilver, fisubsilversh and newly the orion template. Overall the basic templates on the most used phpbb forum systems...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
mariokaz
Beiträge: 222
Registriert: So 12.Jun, 2005 21:46

Beitrag von mariokaz »

Thanx!

I know you will don't install the AJAX to other forums in any moment I want that u do the work for me, only I just want that u tell me what I have to do in my file, only I ask some help because I studied business administration so I am not a progammer or something like that to know where I can put some code when I didn't find the instruction of the MOD, but I like very much this things, but don't worry my friend like I said you so sorry for all the inconvenience. ^q

Fiblue3d is very very similar to Fisubsilversh and sorry for mix links and attachments.

Can u just tell me where I can look for some help ?... I will look it in the site of the author I hope he can help me.

And that aren't errors, only are missed parts in the installation instructions. :(

Well.....Anyway Oxpus thank you for ur answer. ;)

Note: If u think that delete this topic is better go ahead, don't worry ok.


------------------


Somebody can help me ????
Antworten