What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Question Widget Placements Forum_list Does Not Work

Discussion in 'XenGallery' started by snoopy5, Feb 24, 2014.

  1. snoopy5

    snoopy5 Authorized Member Authorized

    Hi

    I want to display random images of the gallery on the top of the forum index page. But only on the forum index page, not somwhere else (not on top of the gallery or on top of threads)

    If I create a widget for it with position "forum_list", nothing shows up.

    If I chnage position to "hook:ad_above_top_breadcrumb" it shows on forum index page, but also on top of agllery etc.

    So why is the position "forum_list" not working?
     
  2. sonnb

    sonnb Administrator Staff Member

    How about thread_view? Have you try to change the widget's position?
     
  3. snoopy5

    snoopy5 Authorized Member Authorized

    with thread_viww, it would be displayed above every thread. I only want to show it once on the forum index.php page.

    It seems that the description within widgets leads to misunderstandings:

    "
    There are three types of positions:
    - The "all" position will make the widget show up in the sidebar of all pages.
    - Or you can input a comma separated list of templates that need the widget. Popular templates: forum_list (the index page), forum_view (the individual forum page), thread_view (the thread page).
    - Or you can input a comma separated list in the format of "hook:hook_name" to render the widget directly to the hook. For example: "hook:page_container_content_top" will make the widget visible at the top of the page, on every page."

    The problem is, that "forum_list" shows up on the right side of the index page, not on the top in the center. I found now in the internet a hint, that "hook:forum_list_nodes" is doing what I wanted to do.

    Best wishes.
     
  4. sonnb

    sonnb Administrator Staff Member

    Glad you found it. I thought that widget not showing up, did not think that it was in a wrong position.
     
  5. Mitch Lowther

    Mitch Lowther Authorized Member Authorized

    Hi Admin.. following on from this, i've no idea how snoopy fixed it - but i've set it to show up in the forum_list view also:

    [Gallery] Top Photos

    This didn't work.

    I then put it in 'hook:forum_list_nodes' and again this didn't work :(

    by doesn't work - it just doesn't display, not even in the default template..
     
  6. Mitch Lowther

    Mitch Lowther Authorized Member Authorized

    I've got TaigaPro running in the hook:forum_list_nodes also, and set the position to -11 - but still no luck. have PM'd you admin access.. any help would be appreciated.
     
  7. sonnb

    sonnb Administrator Staff Member

    Yes I will check it out for you.
     
  8. Mitch Lowther

    Mitch Lowther Authorized Member Authorized

    sonnb was able to fix this issue for me - it's a bug in php 5.3.x that causes the php process to crash while checking a method_exists() function.. something along those lines :) It will be corrected in the next update.
     

Share This Page