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

XF 1.0 Pages

Discussion in 'Have You Seen...?' started by Mike, Jul 30, 2010.

  1. Shamil

    Shamil Well-Known Member

    Wouldn't the code have to be eval()'d?
  2. Rob

    Rob Well-Known Member

    I guess that depends how it is implemented.
  3. Ashley

    Ashley Business Guy Staff Member

    It is fair to say that there is more that goes into it than just writing it...and it was a looong afternoon ;)
  4. ManagerJosh

    ManagerJosh Well-Known Member

    It's still an awesome, and unique feature Ashley :D

    This is what I call innovation :D
  5. Ashley

    Ashley Business Guy Staff Member

    Oh, did that come across as detracting from what Kier and Mike do...not on your nelly ;) There is so much more that goes into ~everything~ than just writing it as Kier so modestly puts it :)
  6. Green Cat

    Green Cat Active Member

    Wow blew my mind away.
    Great feature to have for the rules, tos, about the team etc.
    Good job
  7. feldon30

    feldon30 Well-Known Member

    Kinda late to this party, but Contact Form 7 for Wordpress is an excellent implementation of a Contact Us form that is very powerful but requires no PHP in the template. It allows the site admin to define popup menus, radio buttons, checkboxes, input boxes, text areas, and file upload fields all with bbCode like tags.
  8. Cezz

    Cezz Well-Known Member

    There is already a contact us form as standard on xenForo... it is at http://xenforo.com/community/misc/contact or if you click contact us in the footer it is Ajaxed :D
  9. Ahmed

    Ahmed Well-Known Member

    This is really handy and very useful.
  10. Floris

    Floris Guest

    Will the future include the ability to include a simple comment system for a page?
    Digital Doctor, darkangel and Shelley like this.
  11. Rob

    Rob Well-Known Member

    It will definitely enhance pages and give more control if people can use PHP. I'm sure a way could be implemented as we are in such an early stage of development.
  12. Kier

    Kier XenForo Developer Staff Member

    Mike and I are both strongly against being able to enter PHP code directly in the Admin CP, as that would (almost certainly) have to be stored in the database and then executed via evil(), but I'm formulating an idea in my head that would allow a page to make a callback to a PHP class (in an existing or uploaded file) that could be defined on a per-page basis...

    Enigma, Rob, Jeremy and 3 others like this.
  13. Brandon_R

    Brandon_R Guest

    Kier you know like how some templating systems have some "whitelist" php functions that you can use in the templating system, maybe you can create a class called xF_Whitelist etc and any function that you want executed directly in the templating system should extend from that class that way it will allow an admin to use PHP in the templating system

    /Just an idea
  14. Mert

    Mert Well-Known Member

    What i saw within the initial presentation is creating custom pages for XenForo will be pretty easy and it can also have all abilities of internal pages.
  15. Green Cat

    Green Cat Active Member

    whether it is intentional or not this is EPIC Kier.
  16. feldon30

    feldon30 Well-Known Member

    That has 4 fields. Can you add radio buttons, checkboxes, popup menus, etc.? I was not talking about "the contact form on xenForo is limited". I was saying "One of the page types that can be created by xenForo should be a form" and then explaining how this functionality can be added without allowing PHP in page content.
  17. Erik

    Erik Well-Known Member

    Pretty sure it was intentional. :D
    But then wouldn't they have to write something to parse the 'bbcode' for the form? That could get somewhat complicated quickly... :)

    Meh, I don't really know how I feel about the PHP in template thing... I guess just extending classes with your own functions would work. :)
  18. Cezz

    Cezz Well-Known Member

    I would like to see this functionality definitely but I guess if not could either add an extention to do it or use external comment systems like Disqus.
  19. Nicke

    Nicke Member

    Its a great feature for static info/content, but still a part of the forum.
  20. Brendon Meynell

    Brendon Meynell Active Member

    I think this is looking fantastic - I like the wiki type layout page and think this overall system will be a great hit.
    This is my first post here but I am going to browse around to see if this can do some of the things I have been hoping for about two years vBulletin would have and been neglected so will look around and see if this is going to be our new system :)

Share This Page