1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create a Page node

Add basic HTML pages to your installation.

Tags:
  1. Brogan

    Brogan XenForo Moderator Staff Member

    Brogan submitted a new resource:

    How to create a Page node (version 1.0) - Add basic HTML pages to your installation.

    Read more about this resource...
     
    ARSamo, Jake Bunce, Vilandra and 12 others like this.
  2. Peggy

    Peggy Well-Known Member

    Good article, tho I'm afraid will be a bit confusing for "newbies".
     
    erich37 and Martyn like this.
  3. GofD

    GofD Well-Known Member

    I think this is pretty straightforward! Thanks for putting it together, Brogan. :D

    Any other tips and tricks on putting together pages?
     
  4. gldtn

    gldtn Well-Known Member

    Brogan, would you happen to know of any guides on how to pull the rss feeds per forum into these pages? This would be great to build my own home page
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

  6. gordy

    gordy Well-Known Member

    What can pages do and not do ?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    They support HTML and PHP.

    I've got pages on my site using JavaScript and some of Google's API's.
    I've seen others on here who have developed mini PHP applications.
     
  8. gordy

    gordy Well-Known Member

    So it's plausible they can be used as static or dynamic pages non-forum pages that match the look and feel of one's forum theme/skin? Can they exist outside of the forum root dir ?
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

  10. TerminalAddict

    TerminalAddict Active Member

    yes, no
    examples:
    http://www.fps.net.nz/community/pages/servers/
    uses some custom written php to query tf2 server and return an array per server. I then have a custom template which does all the display. Uses PageCallBack

    http://www.fps.net.nz/community/pages/Home/
    does some custom php to get steam stats. Does some custom php to get the latest post from a forum section (latest give away), does some custom php to query a forum and get a list of threads (previous give aways). Uses PageCallBack

    http://www.fps.net.nz/community/pages/thanks-for-donating/
    boring old html typed into a box

    No they cannot exist outside of the forum structure.
    For my home page I have a customer php page that simply redirects to correct url
     
  11. TerminalAddict

    TerminalAddict Active Member

    gordy likes this.
  12. gordy

    gordy Well-Known Member

    Thanks all [​IMG]
     
  13. secnam

    secnam Active Member

    so how do you put php code into the pages?
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    You use the PHP Callback function.
     
  15. secnam

    secnam Active Member

    is there a manual for this?
     
  16. erich37

    erich37 Well-Known Member

    - is there an example of how the html would look like ?
    - how to get the "Sidebar" into a page?

    the strange thing with "Pages" is, that the navigation-Tab "Forums" is still showing as active.
    This looks a bit confusing as when looking at the page, I am actually not in the Forum.
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

    Every page is different.
    You enter the html you want for your page.

    This is the designed behaviour.
     
  18. erich37

    erich37 Well-Known Member

    I know that every page is different, which is the reason I was asking for an example.

    Anyway, the designed structure of having the Forum-Tab active at a "Page" does not look very professional IMHO.
    It would be better if there would be a Main-Tab named "Pages" or something like that.
     
  19. gldtn

    gldtn Well-Known Member

    U can do something like this to get a page into it's own tab.
     
  20. erich37

    erich37 Well-Known Member

    looks quite complicated.... just to be able to create a "Page" outside of the Forum-structure.......
    :(
     

Share This Page