Advertise Here | Advertise Here | Advertise Here | Advertise Here
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Attention buyers: Please take the time to read THIS
    Dismiss Notice
  3. I have imposed a new requirement today limiting who can start and receive private conversations. This is in an effort to thwart scammers who have a zero post count but private message others offering to sell their licenses. The restriction is not strict, a user must post at least one (1) post in the forum before being allowed to start and/or receive private conversations. Read Forum Post
    Dismiss Notice
  4. Dismiss Notice
Dismiss Notice
Introducing the new Classifieds Section

Please see HERE for more info.

Resolved Template Error

Discussion in 'Resolved Addon Discussions' started by Matthew Hawley, Jan 21, 2014.

  1. Matthew Hawley

    Matthew Hawley Formerly Know as Dave

    Local Time:
    12:06 AM
    When I try to add this to the el_portal_index
    Code:
    <xen:include template="sidebar_online_users" />
    I get this error:

    Template Errors: el_portal_index
    1. Invalid argument supplied for foreach() in /home3/mcwh/public_html/xxx/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 108:
      107: ';
      108: foreach ($onlineUsers['records'] AS $user)
      109: {
     
  2. Dan

    Dan Admin Staff Member

    Local Time:
    12:06 AM
    Are you running [bd] Widget Framework?
     
  3. Matthew Hawley

    Matthew Hawley Formerly Know as Dave

    Local Time:
    12:06 AM
  4. Dan

    Dan Admin Staff Member

    Local Time:
    12:06 AM
    use el_portal_index for the position of all the sidebar widgets you want. (and don't forget, if you haven't already, remove that xen:include from the template)
     
  5. Matthew Hawley

    Matthew Hawley Formerly Know as Dave

    Local Time:
    12:06 AM
    Which hook is the one for the sidebar?

    nvm you replied first. :p

    Thanks!
     
  6. Dan

    Dan Admin Staff Member

    Local Time:
    12:06 AM
    for the sidebar, you don't use a hook, you use the template name.
    Screen Shot 2014-01-21 at 4.46.07 PM.png Screen Shot 2014-01-21 at 4.43.44 PM.png
     
  7. Matthew Hawley

    Matthew Hawley Formerly Know as Dave

    Local Time:
    12:06 AM
    Got this error.

    nvm replied first again. :p Thanks!
    [​IMG]
     
  8. Dan

    Dan Admin Staff Member

    Local Time:
    12:06 AM
    So you got this working?
     

Share This Page