Announcement

Collapse
No announcement yet.

What is the index.php in my Vbulletin 5

Collapse
X
  • 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=
    d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
    _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute("charset","utf-8");
    $.src="https://v2.zopim.com/?6aDOp1aZgzGGvwJgDZJw6Xjv2rIJapvy";z.t=+new Date;$.
    type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
    </script>
    <!--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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #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?

      Comment


      • #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.
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.5.2 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • #5
          Thanks

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

          thanks for your help


          Regards

          Comment

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