Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2016, 05:05 AM
DesperadoN DesperadoN is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Arrowchat

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.
Reply With Quote
  #2  
Old 07-17-2016, 01:44 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

second one is footer template before </body> tag
Reply With Quote
  #3  
Old 07-19-2016, 04:54 AM
DesperadoN DesperadoN is offline
 
Join Date: Jul 2016
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah

Quote:
Originally Posted by IggyP View Post
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...
Reply With Quote
  #4  
Old 07-19-2016, 12:48 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DesperadoN View Post
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...rrors?t=297343
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 07-19-2016, 06:17 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 [DATE]1468959712[/DATE] at [TIME]1468959712[/TIME] ---------------

To add the scripts to the footer, you have to create a template hook in footer_before_body_end hook location.
Reply With Quote
Благодарность от:
MarkFL
  #6  
Old 07-20-2016, 06:55 PM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont believe a hook creation is needed....i installed it pretty simply without errors so this is a server config issue
Reply With Quote
  #7  
Old 07-25-2016, 01:18 AM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 07-25-2016, 06:27 PM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04937 seconds
  • Memory Usage 2,235KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete