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

Filtering out Forums / Section from ****** (Adv. Latest Post Block) Help Needed

Discussion in 'Styling and Customization Questions' started by faeronsayn, Jan 4, 2012.

Thread Status:
Not open for further replies.
  1. faeronsayn

    faeronsayn Well-Known Member

    So I have a lot of my members who are annoyed with threads that are coming up from another section. That section's threads do not even need to come up to the latest posts, since they aren't really discussions.

    So my question is, anyone that has any PHP knowledge could help me filter a section out?

    The category ID of that section is 114, if its possible to make it so filtering the category out would filter out all the forums underneath that category would be best.

    I actually looked through the templates for this Mod.

    For example here is a template that is related to show the latest posts...

    <div class="******AdvStats_SectionItem ******AdvStats_Thread">
    <div class="******AdvStats_SectionItemBlock ******AdvStats_SectionItemTitle ******AdvStats_ThreadTitle{xen:if '{$thread.isNew}', ' new'}">
    <a href="{xen:link '{xen:if '{$thread.isNew}', 'threads/unread', 'threads'}', {$thread}}">
    <xen:if is="@******AdvStats_ThreadTitleChars > 0">
    {xen:helper wordtrim, {$thread.title}, 55}
    <xen:else />
    <div class="forumtitle">
    <a href="{xen:link 'forums', {xen:array 'node_id={$thread.node_id}', 'title={$thread.forum_title}'}}">{xen:helper wordtrim,{$thread.forum_title}, 20}</a>
    <div class="******AdvStats_SectionItemBlock ******AdvStats_SectionItemInfo ******AdvStats_ThreadPoster">
                    <a href="{xen:link forums, $post}">{$post.node_title}</a></td>
    <xen:username user="$thread" rich="true" />
    I used the following condition to try to filter out the category I wanted by wrapping this condition

    <xen:if is="{$forum.node_id} == x">
    All the temaplate code went in here....

    That didn't work, it didn't filter it out for me.

    I then dived into the PHP code hoping to find something. I tried things but it didn't work for me, so if anyone has any idea on how to do this. Please help me.

    I attached the plugin i am talking about below so you can test it your self.

    <Removed by Brogan as there is no permission to redistribute the add-on.>
  2. faeronsayn

    faeronsayn Well-Known Member

    any help would be appreciated.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Why don't you just use the Include threads from this forum when users click "What's New?" option for the nodes?
  4. faeronsayn

    faeronsayn Well-Known Member

    I've done that already, and they are actually filtered in the Whats New page. The problem is the latest post block. They really like this latest post block because it updates the threads / latest posts without refreshing the page, which is quite nice. Problem is it won't filter out some of the sections that I don't want on it, thats why I am having some trouble.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Latest post block?
    If that's an add-on then you need to contact the developer to introduce that functionality or I can move this to development discussions if it's your own add-on which you need help with.
  6. faeronsayn

    faeronsayn Well-Known Member

    Its not my own add-on, and the developer I am sure has stopped updating this mod. His site is ******, and I he hasn't been very active there, or here for that matter.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Well you need to get permission from the add-on developer before you can start changing their code.
  8. dieketzer

    dieketzer Well-Known Member

    we do? so the fixes for twitter auth and whatnot arent allowed either?
    i thought ****** were sanctioned for using a nulled xf anyway.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    It depends on the add-on and developer.
  10. daveb

    daveb Member

    I have the exact same requirement, any pointers from anyone muchly appreciated ;)
    faeronsayn likes this.
  11. faeronsayn

    faeronsayn Well-Known Member

    Hoping there is someone that could help us with this.
  12. faeronsayn

    faeronsayn Well-Known Member

    any updates ?
  13. Brogan

    Brogan XenForo Moderator Staff Member

    As I have already stated, you will need to contact the original developer of the add-on.

    Re-factoring of add-ons is not permitted without the explicit consent of the original developer.

    Besides which, this is from a nulled site so it shouldn't have been posted anyway.
Thread Status:
Not open for further replies.

Share This Page