Page 1 of 1

VBulletin 4 Install without template edits

PostPosted: 27 Nov 2010, 17:25
by CBooth
Create a new plugin

Product: vBulletin
Hook: global_state_check

Plugin Code: (I added the IE6 and lower check since I had problems in the past)


global $template_hook;
$template_hook['headinclude_css'].='
<!--[if gte IE 7]>
<link type="text/css" rel="stylesheet" id="arrowchat_css" media="all" href="/arrowchat/external.php?type=css" charset="utf-8" />
<![endif]-->
';

$template_hook['headinclude_javascript'] .= '
<!--[if gte IE 7]>
<script type="text/javascript" src="/arrowchat/includes/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/arrowchat/includes/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="/arrowchat/external.php?type=djs" charset="utf-8"></script>
<script type="text/javascript" src="/arrowchat/external.php?type=js" charset="utf-8"></script>
<![endif]-->
';

Re: VBulletin 4 Install without template edits

PostPosted: 26 Feb 2011, 06:54
by DMoney
Doesn't work on vb4.1 series.

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.