No announcement yet.

What is the index.php in my Vbulletin 5

  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the index.php in my Vbulletin 5

    I need to put a Widget (for chat support) in my vbulleting 5

    example of the widget code:

    <!--Start of Zendesk Chat Script-->
    <script type="text/javascript">
    window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
    $.src="";z.t=+new Date;$.
    <!--End of Zendesk Chat Script-->

    The instructions said that i need to put it in my index file, between the tags <head>

    In my hosting I can see the file index.php, but this file dont have head, body and anything (only php functions)

    What is the correct file where I can put this code?

  • #2
    vBulletin's files should not be manually edited. You should place that code in the head_include template of each style you have available on your site.

    In the AdminCP go to Styles -> Style Manager. Each style with its box checked is available to your end users.
    1. To edit templates click on the <<>> button on the far right.
    2. Once the template list is open, scroll down to head_include
    3. Double_click the template to edit it.
    4. Add your code.
    5. Save the template.

    Repeat for each style that is available.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API


    • #3
      Sorry I dont read the last message..

      I tried to edit my index.php puting the Widget code and it doesnt working .... Now my main page no working neither :/

      I deleted the Widget code, but the error continues, appears the next error:

      A System Error has occured.

      The software is experiencing a systems error.

      You should attempt to repeat your last action. If this error occurs again, please contact the
      site administrator.

      Please help me with this!!... What can I do?


      • #4
        You'll need to download a new copy of the download package and place a new copy of index.php on the server, or upload the original index.php again from your download package if you still have it.

        A couple of important lessons from this:

        1. Don't jump in before support have responded
        2. If you DO edit any file (even though you shouldn't) make a backup of it first. But really, don't edit them at all please.

        TalkNewsUK - My vBulletin 5.6.4 Demo
        AdminAmmo - My Cloud Demo


        • #5

          I restored the file (I had a backup) and everything is working...

          thanks for your help



          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.