 | [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 8:12 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I had to fix an error so that EM could process the MOD successfully first, but it's gone on but then when loading up the homepage I'm getting this error
| Code:
|
Parse error: syntax error, unexpected T_STRING in /home/djpassio/public_html/djpassions/language/lang_english/lang_main. php on line 1056
|
I hate these Parse / Syntax error ones
The mod author only has to miss one character / symbol or have one out of place and it then causes a right nightmare
What’s causing that error guys...  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 8:19 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 3:38 AM
Location: Denver, PA
|

|
|
|
|
 |
Can we see the lang_main.php file where you added the stuff for this mod. I might not be able to help, but if I could I would need to see that edited part of that file.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 8:33 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Its ok I've just done it
The error was caused by the mod author incorrectly placing a java link, you know the one that plugs to all the visitors and members. So, I just removed the link it was causing the error. Didn't know how to correct it so I just removed it all lol
Here's part of process from the mod
//-- mod : FoxyIRCChat ---------------------------------------------------------------------- ------
//-- add
$lang['foxyfoxychat_win_not_open'] = 'Attention!\n\nUnable to open chat window.';
$lang['foxychat_no_java'] = 'This application need Java to start';
$lang['foxychat_download_java'] = 'If you've not java installed on your computer, you can found it on official Java\'s web site or you can search it on Microsoft\'s web site';
$lang['foxychat_click_to_join'] = 'Click to join chat';
$lang['foxychat_settings'] = 'FoxyIRCChat settings';
$lang['foxychat_server'] = 'IRC Server';
$lang['foxychat_port'] = 'Server port';
$lang['foxychat_channel'] = 'IRC channel with # before';
$lang['foxychat_quitmsg'] = 'Quit message';
$lang['foxychat_showsmile'] = 'Use forum\'s smile in chat';
$lang['foxychat_smilepath'] = 'Path of smile';
$lang['foxychat_smilepath_explain'] = 'Path where are the forum\'s smile, usualy images/smiles';
$lang['foxychat_showbck'] = 'Show a background in chat';
$lang['foxychat_background'] = 'Background picture path';
$lang['foxychat_background_explain'] = 'Path of background picture, example: images/bck.jpg';
//-- end mod : FoxyIRCChat ---------------------------------------------------------------------- --
I removed this bit
| Code:
|
|
$lang['foxychat_download_java'] = 'If you've not java installed on your computer, you can found it on <a href=\"http://www.java.com/\" target=\"_blank\">official Java\'s web site</a> or you can search it on <a href=\"http://www.microsoft.com/\" target=\"_blank\">Microsoft\'s web site</a>';
|
the forum loads up now but just one little problem which is 'rowspan="3"' is appearing above Who Is Online
Know that's one bugger I don't know how to fix, could be coming from anywhere. There are no clues with this one though dammit HAHA!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 8:52 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
hmmm just did a find for it in the mod install file and found this
| Code:
|
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
# <tr>
# <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
whosonline.gif" alt="{L_WHO_IS_ONLINE}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
rowspan="2"
#
#-----[ REPLACE WITH ]----------------------------------------
#
rowspan="3"
|
ok so there is a clue lol  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 8:58 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 3:38 AM
Location: Denver, PA
|

|
|
|
|
 |
| Code:
|
|
$lang['foxychat_download_java'] = 'If you've not java installed on your computer, you can found it on <a href=\"http://www.java.com/\" target=\"_blank\">official Java\'s web site</a> or you can search it on <a href=\"http://www.microsoft.com/\" target=\"_blank\">Microsoft\'s web site</a>';
|
Did it really have all the \ in it? Why, I wonder? I don't think I have ever seen that before so I would imagine that is what it was throwing the error for.
Yeah, that extra code is probably in your index_body.tpl file. Did you find it? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 9:05 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Yeah it did. Guess it's not right
As to the other error I’ve just corrected it
EM didn't process the command properly or added an extra rowspan="3" one or the two as seen below. I've just removed it and it's gone from the index page now wooohoo
| Code:
|
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
rowspan="3"
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<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>
<tr>
<td class="row1" align="left"><span class="gensmall">
[ <a href="" onclick="javascript:openchat();return false;">{L_CLICK_TO_JOIN_CHAT}</a> ]
</span>
</td>
</tr>
</table>
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 9:13 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 3:38 AM
Location: Denver, PA
|

|
|
|
|
 |
awesome, so it's all good now?  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 9:21 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
yurp, cheers  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 6:14 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:38 AM
Location: St Pete, FL
|

|
|
|
|
 |
| Chris Powell wrote:
|
|
EM didn't process the command properly or added an extra rowspan="3" one or the two as seen below.
|
Actually EM did EXACTLY what it was told to do, which wasn't correct. This is what the MOD author told EM to do:
| Code:
|
#
#-----[ IN-LINE FIND ]----------------------------------------
#
rowspan="2"
#
#-----[ REPLACE WITH ]----------------------------------------
#
rowspan="3"
|
This is what the MOD author meant for EM to do:
| Code:
|
#
#-----[ IN-LINE FIND ]----------------------------------------
#
rowspan="2"
#
#-----[ IN-LINE REPLACE WITH ]----------------------------------------
#
rowspan="3"
|
So instead of adjusting the rowspan setting in the line from the FIND statement, it replaced the line in the FIND statement with rowspan="3", which is clearly a mistake. So if all you did to correct the problem is remove the rowspan="3" line, you need to go back and restore the line that was lost by the invalid line of code from the MOD script...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] FoxyIRCChat |  |
Posted: 05/04/2007 6:36 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|