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...
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....
<xen:if>
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.>
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...
Code:
<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 />
{$thread.title}
</xen:if>
</a>
</div>
<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>
<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" />
</div>
</div>
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....
<xen:if>
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.>