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

    6,602
    1,707
    918
    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

    158
    42
    364
    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

    1,031
    500
    818
    Brandon likes this.
  4. goblues

    goblues Regular Member

    90
    54
    394
    I haven't tried but would you think a <?php include("script.php"); ?> would work?
     
  5. karoshio

    karoshio Regular Member

    158
    42
    364
    That won't work unfortunately. You can only use call backs. PHP tags like that won't work.
     
  6. goblues

    goblues Regular Member

    90
    54
    394
    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