 | Re: ChatBox MOD |  |
Posted: 09/12/2007 4:09 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 2:44 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
Oh I will, you can beleive that. I accidentally hit the install for the new chat when I was trying to do something else. So if there is a reference for 3, then this is why.
But I see a chatbox_front.php in the root folder. I am checking to see which version this is in now. (Done - it's in this new version)
Ok, me is back and here's my error for version 3:
| Code:
|
FIND FAILED: In file [index.php] could not find:
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
MOD script line #112
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/12/2007 5:04 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:44 AM
Location: St Pete, FL
|

|
|
|
|
 |
Once again, this is an example where the MOD author included far too much information in the FIND command, making it likely to fail on more boards than not...
Ok, try this:
OPEN
ChatBox Mod Install.txt
FIND
| Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$template->assign_vars(array(
'TOTAL_POSTS'
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/13/2007 12:30 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 2:44 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
Ok, I am reading the install.txt and I found what seems to be a typing error:
| Quote:
|
|
copy support_files/cht_login.php to phpbb/chatbox_login.php
|
Shouldn't it read cht_login.php to phpbb/cht_login.php or even chatbox_login.php to phpbb/chatbox_login.php ?
Please explain why of no NR. Thank youuu!
| Code:
|
FIND FAILED: In file [templates/subBlack/index_body.tpl] could not find:
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subBlack/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
MOD script line #170
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/13/2007 5:47 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:44 AM
Location: St Pete, FL
|

|
|
|
|
 |
Based only on the COPY command, it is difficult to determine whether this is a problem or not. If you look in the support_files folder, there is a file named cht_login.php, so EM would be able to find the file and copy it into the new name phpbb/chatbox_login.php, which is probably a mistake. I imagine that the MOD author intended to copy the files to the root of the phpBB forum folder. So next to determine whether the new filename is correct, I ran a search to see if the MOD author ever defined it in any of the other files, which he didn't. Strangely, he didn't define cht_login.php either. So it appears that the file is never used...
I would correct the COPY commands though by removing phpbb/ from the destination path. Also, I would add the missing wildcard values in the destinations too. The copies won't work without them...
OPEN
ChatBox Mod Install.txt
FIND
| Code:
|
#
#-----[ COPY ]--------------------------------------------
#
copy chatbox_front.php to phpbb/chatbox_front.php
copy support_files/cht_login.php to phpbb/chatbox_login.php
copy chat/*.* to phpbb/chat/
copy chat/logs/*.* to phpbb/chat/logs/
|
REPLACE WITH
| Code:
|
#
#-----[ COPY ]--------------------------------------------
#
copy chatbox_front.php to chatbox_front.php
copy support_files/cht_login.php to chatbox_login.php
copy chat/*.* to chat/*.*
copy chat/logs/*.* to chat/logs/*.*
|
This whole section is sure to fail too:
FIND
| Code:
|
#
#-----[ FIND ]--------------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
#
#-----[ REPLACE WITH ]------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
#
#-----[ FIND ]---------------------------------------------
#
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]--------------------------------------------
#
rowspan="3"
#
#-----[ IN-LINE FIND ]--------------------------------------------
#
rowspan="3"
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------
#
rowspan="4"
#
#-----[ FIND ]---------------------------------------------
#
{TOTAL_USERS_ONLINE}
#
#-----[ FIND ]---------------------------------------------
#
</tr>
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/13/2007 5:53 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:44 AM
Location: St Pete, FL
|

|
|
|
|
 |
You might as well fix these too while you're at it:
OPEN
ChatBox Mod Install.txt
FIND
| Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
$message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
return false;
}
//
// Update post stats and details
//
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]---------------------------------------------
#
$meta = '<meta http-equiv="refresh"
|
FIND
| Code:
|
#
#-----[ OPEN and EDIT ]---------------------------------------------
#
# chat/chatbox_config.php,
# Set the Settings in this file to suite your needs. everything is labeled.
# Also you can edit the chatbox css file to change the look if you wish.
|
REPLACE WITH
| Code:
|
#
#-----[ DIY INSTRUCTIONS ]---------------------------------------------
#
chat/chatbox_config.php,
Set the Settings in this file to suite your needs. everything is labeled.
Also you can edit the chatbox css file to change the look if you wish.
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/13/2007 8:46 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 2:44 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
It installed fine NR after your heavy tweaking. I can see I am going to be very busy "tweaking' it to my site. Plus I'll check on the MOD forum and see what he's offering for the "donationware" support.
'add chatbox to overall header' is not being recognized by EM. I'll hand code that tmorrow. Looks painless.
Abdulbasit - this MIGHT be the one... NOW  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/13/2007 10:39 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:44 AM
Location: St Pete, FL
|

|
|
|
|
 |
You should be able to modify the add chatbox to overall header MOD so that EM can install it...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/15/2007 12:19 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 2:44 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
Well I did it manually and it is not working.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/15/2007 5:35 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:44 AM
Location: St Pete, FL
|

|
|
|
|
 |
So why not restore your backups and install it using EM? I can fix the MOD script so that EM will recognize it...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ChatBox MOD |  |
Posted: 09/15/2007 10:56 PM |
|
|
|
|
|
| Citation |
| Posts |
826 |
| Word Cnt. |
37,329 |
| BDay |
Oct 2 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Apr 03, 2007
Local time: 2:44 AM
Location: Somewhere in Maryland
|

|
|
|
|
 |
While you fix the MOD script so that it is EMC, I will upload the original files.  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|