How do you make a page in xenforo to display php

Discussion in 'XenForo Discussions' started by Brandon, Dec 9, 2011.

  1. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,707
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I have a few one page php scripts that I've like to load up on our site and make them look nice, how do I go about adding your own php code to a xenforo page?

    Thanks
     
  2. karoshio

    karoshio Regular Member

    Joined:
    May 22, 2011
    Messages:
    158
    Likes Received:
    42
    I am in the same boat with AdminPeak. I wrote a few small tools I wanted to release via the XenForo pages but I do not think it's possible in the means I wanted to use.

    Pages only support PHP callbacks which are from my understanding used to point to object methods, static methods or global functions of a class.

    So I am under how to actually go about using small scripts directly in when callbacks are only supported. From what I know, you can't but as it is I do not know enough callbacks still to know that but from what I read it seems that way.


    I tried to gain help via the XenForo forum but I had one moderator reply then no one else ever again.




    Link to my thread in case I get a reply that helps you: http://xenforo.com/community/threads/can-other-languages-be-used-in-pages.23848/
     
    Brandon likes this.
  3. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Brandon likes this.
  4. goblues

    goblues Regular Member

    Joined:
    Apr 13, 2011
    Messages:
    90
    Likes Received:
    54
    Location:
    St Louis MO
    I haven't tried but would you think a <?php include("script.php"); ?> would work?
     
  5. karoshio

    karoshio Regular Member

    Joined:
    May 22, 2011
    Messages:
    158
    Likes Received:
    42
    That won't work unfortunately. You can only use call backs. PHP tags like that won't work.
     
  6. goblues

    goblues Regular Member

    Joined:
    Apr 13, 2011
    Messages:
    90
    Likes Received:
    54
    Location:
    St Louis MO
    Of course it won't. Thats the point of this thread. It won't parse PHP. I must have had a bit to much cold medicine in me when I posted that. :P
     

Share This Page