Editing Templates and Defining a Callback for Pages

Discussion in 'Have You Seen...?' started by Kier, Oct 27, 2010.

  1. Kier XenForo Developer

    The template is attempting to loop through $onlineUsers['records'] but your are setting your variable as $users.

    Take this line:
    PHP:
    $response->params['users'] = $userModel->getLatestUsers(array(), array('limit'=> 5));
    and replace it with this:
    PHP:
    $response->params['onlineUsers'] = $userModel->getLatestUsers(array(), array('limit'=> 5));
  2. masterchief Active Member

    still have the same error... have no idea now..
  3. Audentio Well-Known Member

    Kier, start a radio broadcast, you'd be great :D

    Great batch of videos, so unbelievably cool what you can do.
  4. Steve10 Well-Known Member

    DON'T! We'll never get you back!
  5. a legacy reborn Well-Known Member

    "Hello, this is Kier Darby from XenBroadcast." lul...I'd listen to it everyday ;).
    A KingofSpain likes this.
  6. MGSteve Well-Known Member

    I know this is an old thread, but I ran into this issue as well. For anyone who also runs into it, you can add this into your .htaccess file and it basically removes the webdav file from the HTTP Auth protection, allowing you to get access via WebDav.

    Code:
    <Files admindav.php>
    order allow,deny
    allow from all
    satisfy any
    </Files>
    
    You can of course change it to below which should limit access to a specific IP address. (I haven't tested it though.)

    Code:
    <Files admindav.php>
    order deny, allow
    deny from all
    allow from 123.123.123.123
    satisfy any
    </Files>
    
  7. Elly Member

    Hello, I am making a page following this tutorial, but when I use "respond" I have the following error : please use a valide callback method.

    [IMG]

    Thanks.
  8. x_Stricken_x Member

    It means the callback method (either controller, or action) isn't valid - either the class can't be loaded, or the action is invalid (usually doesn't exist, or has a typo).
  9. Cory Booth Well-Known Member

    I just enabled this feature using the demo here...
    I got it all to work...

    The question is, what is the proper way to return the HTML inside the Template HTML area?
    Or do I have to insert it into the template?

    ****EDIT: Just used the PAGE_CONTAINER html.

Share This Page