How to add a custom page with int vbulletin 5.1.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pntruongan
    New Member
    • Nov 2014
    • 3
    • 5.1.x

    How to add a custom page with int vbulletin 5.1.3

    Hi everyone.

    I've just upgraded from vbulletin 4 to the latest 5.1.3 and still learning how to use it.

    I want to add a custom page that only admin can access into vbulletin. This page should have access to vbulletin environment and run my custom PHP code. I found the "Edit site" button that allow me to add new page with PHP module. The problem when I add code into the PHP module, the slightest error in the code result in a blank page, just a missing semicolon will result in a blank page and I can't access the page anymore so there is no way to edit the code.

    It was very frustrating. I wonder what's the right way to add page to vbulletin, did I do anything wrong?
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    You're doing it right.

    If you mess up the php and it won't load, go to the admincp and change this setting:
    AdminCP > Settings > Options > General Settings > Disable PHP and Static HTML rendering
    Set this to "Yes" and it stops the "rogue" php or html from running.
    You can then go in and correct it. When you're done, set the above setting back to "No".
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • pntruongan
      New Member
      • Nov 2014
      • 3
      • 5.1.x

      #3
      @Mark.B thank you for support. And by the way, is there anyway to view a list of all custom pages? Currently I have to either the address of every page. I know I can add them to navbar but this is surely not the way to get the list

      Comment


      • jdj
        jdj commented
        Editing a comment
        You can look at all the custom pages via phpmyadmin as a list. vB don't support making database changes but if all that you want to do is VIEW a list you can do it in phpmyadmin. If you want to download a list you can download it easily into excel.
    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24286
      • 6.0.X

      #4
      There's no list at the moment but I believe it's due to be added at some point.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      Related Topics

      Collapse

      Working...