I didn't find some instruction parts of the AJAX MOD, help!!

Advertise a phpBB hack or request help with an existing one.

Moderator: TerraFrost

I didn't find some instruction parts of the AJAX MOD, help!!

Postby mariocaz » Tue Feb 28, 2006 6:54 am

Hi there!! :cool:

First congratulations for this really very nice site!! :8

I am Mario from Mexico and I have a phpbb2 Plus 1.52 2.0.19 heavly modded :D

http://www.all-reefs.com

Well I want to install the AJAX MOD in my forum. :)

Downloaded from here: http://www.alcaeus.org/filelib_file.php?file_id=27

UUfff a lot of work :oops: I spent almost all my weekend doing this, but I can finished almost all the files modifications of the Ajax Features Mod. 8)

I ask help from the author “alcaeus” and he said me:

I simply don't like phpBB2 Plus and don't want to support it, that's how easy it is. You're more than welcome to ask at the phpBB Plus site for support, but since the MOD is for phpBB2 only (cback added it to his Orion, another phpBB fork but agreed to support it himself), I can't help you with it. Sorry.

Greetz
alcaeus
:cry:

So I don't want to send to the garbage all my work. O.o

Only in the Installation instructions I didn't find a few parts, in some files just I didn't find one part of the modifications, but in others file I didn't find anything of the modifications. :cry:

I don't want that u do the work(installation) for me ok, just tell me what I have to do please. :)

Please I hope you can help me, I will be very greatful with that :D

My templates(Fiblue3d and Fisubsilversh) are very very similars so If you tell me what I have to do in one, I can do the same in the other template. ;)

In includes/page_header.php only I didn't find this part.

Code: Select all
#
#-----[ 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 :roll: ) I didn't find nothing. :cry:

Code: Select all
#
#-----[ 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: Select all
#
#-----[ 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: Select all
#
#--^^^^^^^---[ 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. :cry:

Code: Select all
#
#-----[ 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&amp;". POST_FORUM_URL .'='. $forum_data[$j]['forum_id'];
                     $mark_link .= ($viewcat != -1) ? '&amp;'. 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: Select all
#
#-----[ 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: Select all
#
#-----[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 ? O_O

Code: Select all
#
#-----[ 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: Select all
#
#-- ---[ FIND ]------------------------------------------------
#
}

$template->pparse('body');


#


I find only this

Code: Select all
#
#-- ---[ 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: Select all
#
#-----[ 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. :|

Here u can download my files and take a look. :D

http://www.all-reefs.com/Otros/index.zip

http://www.all-reefs.com/Otros/search.zip

http://www.all-reefs.com/Otros/viewtopic.php

http://www.all-reefs.com/Otros/viewtopic.zip

http://www.all-reefs.com/Otros/index_bo ... Blue3d.zip

http://www.all-reefs.com/Otros/index_bo ... lversh.zip

http://www.all-reefs.com/Otros/viewtopi ... Blue3d.zip

http://www.all-reefs.com/Otros/viewtopi ... lversh.zip


If you take a little look in my post and download the MOD you can look that are smaller problems because I was finished almost all the modifications. :wink:

Only in 3 files I didn't find anything of the code and in the rest only is 1-2 parts that I didn't find. :)

I will be waiting your preciate help. :love

Cheers, :MIB

Mario
:)
mariocaz
Traveler
 
Posts: 1
Joined: Tue Feb 28, 2006 6:43 am
Location: Mexico, city

Return to phpBB Hacks and MODs

Who is online

Users browsing this forum: No registered users and 1 guest

cron