AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

MrNicotine

Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?

T3CHN0

Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?
I don't believe so. after reading all the posts on this site, allot of members ask about removing all the
boards channels that auto list all the boards as channels.
this is why with the mods B and C I uploaded. only public channel is in the channel list.
but each user can still make there own private channel with there own user name.

hcfwesker

Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?

Best option for this, is create boards/sub-boards only member groups you want to have access to.  then, in the chat, only those member groups can access the channel.

Podologo

Thank you soooooooooo much! I appreciate your reply and info!

JP
The richest person is not the one who has the most, but the one who needs the least.

act4

Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:



I have attached my index.template.php and would be very grateful if somebody could help. :)

act4

Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:



I have attached my index.template.php and would be very grateful if somebody could help. :)

hcfwesker

#8546
Quote from: act4 on December 14, 2011, 12:45:43 PM
Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:



That edit isn't necessary for the MOD to work.  All it does is add a line of text under the header table of how many members are in the chat, under the new replies/unread post links up top.  It's pretty poiintless in my opinion, cause the chat button itself shows how many members are in the chat, and there's a list of users in the chat in the info center.

Look at this pic, the red arrow up top to the left, thats all the edit adds.  But as you see, the other red mark already shows a number of chat users in the chat button itself.   http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112596;image

You can install the MOD even with that install error, if that one edit doesn't concern you.  which i promise you it's really just wasted space, imo.


act4

Thanks, its working well.  :)

I've noticed that unless you visit the full screen chat, the shoutbox is white until you post something. Is there anyway to change this (i.e. so everyone sees all the messages in the shoutbox)?

MrNicotine

Quote from: hcfwesker on December 12, 2011, 06:30:34 PM
Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?

Best option for this, is create boards/sub-boards only member groups you want to have access to.  then, in the chat, only those member groups can access the channel.

Yep, that's it. Works perfectly.

Wish all the edits were this easy, lol

Thanks a lot ;)

Kreator

#8549
Hello Having a few problems with this mod, well one major one really!

I upload the mod 3.3 as per post at 8526 no problem no errors so apply the mod then when I come out of the package manager I get this fatal
Quote
ction getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); } Fatal error: Call to undefined function chatOnlineUsers() in /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/BoardIndex.php on line 128


I hav`nt even begun to set it up running smf 2.0.1

Any fix please??

hcfwesker

#8550
Are you on a custom theme.  In most cases you need to add the edits manually to custom themes, otherwise you'll get a fatal error cause the chat is running, but the theme you're on can't call for it if the edits aren't made.  Do you get this same fatal error on the smf default curve theme?

If fatal errors arent letting you get to your profile to switch themes, try this link on your site  http://www.sitename.com/index.php?theme=1   replacing sitename with your site's url

Kreator

Thanks hcfwesker,
I certainly do have a custom theme operating when this fatal pops up, so yeas I`ll need to do some manual edits, although it does add the option to add edits in the parser for these themes when installing which I check, do they not work then?


I`m using Xmas 20 theme at the moment there is no boardindex.php in that theme


T3CHN0

rename your boardindex.template.php to boardindex.index.bck
your theme will look to the index.template in the default theme instead.
just see if that fixes your error. your forum will look no correctly displayed
but thats ok. more to the point want to test if it fixes the error.
If so. simply run the mod through the package parser and remove
all boardindex edits. and rename the file back to php again.

all you will be missing out on is how many ppl are in chat displaid on the chat button
but all functions and option will still work

Kreator

#8553
Ok will try that, just out of interest I reverted the boardindex.php back to the original and it works, however at the top of the displayed forum I have...

Quotefunction getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); }

I have chat in the tab bar and upon opening it I get this long scroll before the chat opens up...
Quote
function getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); } Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 71 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 73 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 81 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303

whats next I wonder?!


Quoterename your boardindex.template.php to boardindex.index.bckyour theme will look to the index.template in the default theme instead.just see if that fixes your error. [\quote]


tried that still the same as above. I get"unable to load boardindex" error and forum just stops there.
can`t put anything into the chat box,Im not even shown as online in chat, so looks like major problems with it!


T3CHN0

having a look at your forum and i see what your talking about.
I have seen this happen a few times on other forums and it's not the mod error even though
it shows like it is.

it's a missing <head> </head> <body> or </body>
part of the index.template.php missing within the file.

or could even be something smaller like after the </body> you could be missing a ' or a ;
I had the same thing happen to my forum a long time ago and found it was because I edited
the index.template.php my self with a custom source code and made the problem happen
my self...

How to fix this will be to study the files from the theme you are using and compare
the edits from your to the unchanged theme files and try work out what part of the code
needs correcting.

Kreator

#8555
Quoteit's a missing <head> </head> <body> or </body> part of the index.template.php missing within the file.or could even be something smaller like after the </body> you could be missing a ' or a ;I had the same thing happen to my forum a long time ago and found it was because I edited the index.template.php my self with a custom source code and made the problem happenmy self...How to fix this will be to study the files from the theme you are using and comparethe edits from your to the unchanged theme files and try work out what part of the codeneeds correcting.


compared all the edits made to the originals with winnmerge, but I cannot see any problems with the offending files all seem to be correct.


Are the Ajax files up to date ? just a thought as it seems to reference these files in warnings quite a bit!

I have reverted(uninstalled it)  back to old status whilst this is all happening.

Edit: Are the parser instructions for manual edit in original 3.2.1 the same as this 3.3C version that I am using as I will go through them, if not can you provide them please.

Kreator

#8556
Just found one glaring parser error in Load.php


It calls find
>?


add before
function getShoutBoxContent($mini = false){   global $scripturl, $modSettings;    // Get the URL to the chat directory:   if (!defined('AJAX_CHAT_URL')){      if (empty($modSettings['miniChat']))         define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl));      else         define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));      }       // Get the real path to the chat directory:   if (!defined('AJAX_CHAT_PATH')){      if (empty($modSettings['miniChat']))         define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/');      else         define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/');   }



it actually parses it after the >?
therefore I get the error coming up at the top of the board , now corrected that. Still looking at why the chat box does not allow me to post anything at all just this again

Quote
Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303



hcfwesker

#8557
No, what that edit means, is it has to be added at the bottom of the file BEFORE the last ?>   at the very bottom.   that ?>  should be the very last thing in the file.

You can try using the package parser to see if you can view the edits of the package.  http://www.smfhacks.com/smf-package-parser.html

Kreator

#8558

hcfwesker:
QuoteNo, what that edit means, is it has to be added at the bottom of the file BEFORE the last ?>   at the very bottom.   that ?>  should be the very last thing in the file.


I quite understand that, but the >? was NOT at the bottom of the file where it should been, the installer had placed the code after that terminator. Parser link does not work btw.


Found some errors in the parser package  especially in the boardindex.php file.
I can get into the chat board but if I exit I get

QuoteFatal error: Function name must be a string in /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/BoardIndex.php on line 132


Now Line 132 is this
Quote$result = $smcFunc['db_query']('', '

shouldn`t this line be finished off with a closing bracket? nope I see its closed further down.

Its like looking for bugs in a Vic20 machine code list!! haha!!

Kreator

Solved most of the problems now, The only thing left now how can I echo the input to the main screen does nothing is there some thing I must add in config?


Advertisement: