PDA

View Full Version : Arrowchat


DesperadoN
07-16-2016, 05:05 AM
Anyone knows how to insert arrowchat php code ?
for example it says that i have to insert

<link type="text/css" rel="stylesheet" id="arrowchat_css" media="all" href="/forum/arrowchat/external.php?type=css" charset="utf-8" />
<script type="text/javascript" src="/forum/arrowchat/includes/js/jquery.js"></script>
<script type="text/javascript" src="/forum/arrowchat/includes/js/jquery-ui.js"></script>

into header

and this

<script type="text/javascript" src="/forum/arrowchat/external.php?type=djs" charset="utf-8"></script>
<script type="text/javascript" src="/forum/arrowchat/external.php?type=js" charset="utf-8"></script>

into footer

but when i do that i get:

An appropriate representation of the requested resource /forum/admincp/template.php could not be found on this server.

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.

IggyP
07-17-2016, 01:44 AM
the first one goes in head_include, which is blank by default...

second one is footer template before </body> tag

DesperadoN
07-19-2016, 04:54 AM
Yeah

the first one goes in head_include, which is blank by default...

second one is footer template before </body> tag

and as I said

I get An appropriate representation of the requested resource /forum/admincp/template.php could not be found on this server.

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.


right after I do that...

Dave
07-19-2016, 12:48 PM
Yeah



and as I said

I get An appropriate representation of the requested resource /forum/admincp/template.php could not be found on this server.

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.


right after I do that...

It's most likely caused by mod_security; http://www.vbulletin.com/forum/forum/vbulletin-3-8/vbulletin-3-8-questions-problems-and-troubleshooting/vbulletin-quick-tips-and-customizations/304594-forbidden-and-not-acceptable-errors?t=297343

noypiscripter
07-19-2016, 06:17 PM
You don't have to include the jquery.js and jquery-ui.js as vB5 already includes them by default. I'm not sure what's the jQuery and jQuery UI versions Arrowchat is using but vB5 is using jQuery 2.1.4 and jQuery UI 1.11.4

--------------- Added 1468959712 at 1468959712 ---------------

To add the scripts to the footer, you have to create a template hook in footer_before_body_end hook location.

IggyP
07-20-2016, 06:55 PM
i dont believe a hook creation is needed....i installed it pretty simply without errors so this is a server config issue

noypiscripter
07-25-2016, 01:18 AM
I have not used arrowchat before but yeah that sounds a server error.

If you didn't add template hooks, how did you include the chat scripts to the page? Did you edit existing footer template?

IggyP
07-25-2016, 06:27 PM
yes they require this script addition to 2 templates as mentioned by the OP and my initial post #2...

they have only recently mentioned the proper instructions tho...to which the head_include for the first script is unique....for standard installations they will recommend putting after the <head> tag, but for vb5 this is in the preheader template and will break style if placed there...

i am confused by the error OP is reporting tho....for one thing arrowchat goes into its own directory which would be forum/arrowchat/admincp so this is talking about vb admincp?