Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Resource icon
    xF2 Add-on
    < Previous | Next >
    This add-on allows creating any number of custom PHP pages with or without the XF layout.
    A custom page has access to the XF engine's functions, including sessions and permissions.

    All custom pages are their own PHP script with individual configuration; PHP knowledge is required.
    A custom page script can be above, below or within the XF install folder, no restrictions.

    You can optionally configure any of the following items on a per-page basis:
    • The custom <head> tag items on top of XenForo's defaults (presumably from an external script)
    • The custom page title
    • The custom page content
    • Whether or not to wrap above content in the XenForo layout
    • Whether or not to include XF's social meta tags for social media content previews
    • Whether or not to show breadcrumbs, and what breadcrumbs to show
    Installation Instructions
    1. Install the add-on zip file (this is an add-on package without extra files)
    2. Make a copy of sample.php script and name it whatever you want
    3. Point the script's XF constant value to your XenForo install folder; the default is DIR
    4. Set the $head and/or $content variables
    5. Adjust the \ScriptsPages\Setup::set parameters (below), and installation is complete
    Sample (sample.php)

    PHP:
    Please, Log in or Register to view codes content!

    Parameters

    PHP:
    Please, Log in or Register to view codes content!

    How to set parameters externally
    To set any parameter above from an external script, define the PHP constant SCRIPT_PAGE_{KEY} prior to loading XenForo, i.e.

    PHP:
    Please, Log in or Register to view codes content!

    Similar resources

    0.00 star(s) 0 ratings
    Views
    411
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    379
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    789
    Downloads
    0
    Updated
    0.00 star(s) 0 ratings
    Views
    460
    Downloads
    0
    Updated
    18,785Threads
    66,107Messages
    63,898Members
    oonniwagaLatest member
    Top