Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
exclude a forum from recents topics
Avatar
Carlos
Spain
Member
Free Members
Offline
Jun 23, 2013 - 6:35 am

Hi Yellow Swordfish!

My english is not good enought... so maybe sometimes i dont understand ( or explain myself ) good 

 

I edited the tag because i understood that was what i should be edited...

 

so... what have i to edit?

maybe the SpGroupView.php ?

sp_RecentPostList('show=10&admins=1', __sp('Unread and recently updated topics'));

 

if is this line please let me know what shoud i put... 

 

thanks

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 23, 2013 - 1:55 pm

still not sure what you are doing....

if you use the widget, you only want to adjust the widget options in the widget itself in the wp admin...  just put the forum ids you want included in the list...

if you are not use the widget, then you would use the template tag, which is what you have been trying to edit..

see:  http://codex.simple-press.com/.....ent-posts/

you would put the function call where you want the recent posts list to show up... ie

<?php sp_RecentPostsTag();?>

then you would use the forum id list as specified in that codex page to only include specific ids... ie

<?php sp_RecentPostsTag('forumIds=1,2,3,4');?>

Avatar
Carlos
Spain
Member
Free Members
Offline
Jun 23, 2013 - 5:28 pm

On the botton of my forum there´s a place where it shows the Unread and recently updated topics

This is called from the SpGroupView.php with this code

sp_RecentPostList('show=10&admins=1', __sp('Unread and recently updated topics'));

What I´m trying is to exclude a forum from these results... but I´m not having luck...

I tried differents ways... on the "widget" works without problem but on this place no way to success...

:(

1.jpgImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 23, 2013 - 5:47 pm

Ooooohhhh.... sorry, never realized you were talking about the unread posts vs the recent posts...

out of curiosity, why do you want to exclude a forum from this list? The list will only contain forums that the user has permission to view... so they wont see private stuff...

there is currently no way to specify specific forums for this... this is because it operates on a per user basis on their unread list...

I think we could hook into the query and adjust the 'where' clause if you still wanted to do it... do you know how to use the wp api for hooks?

Avatar
Carlos
Spain
Member
Free Members
Offline
Jun 23, 2013 - 5:53 pm

Hi!

The main reason for exclude a forum is that my site is a "online guitar school" and the forum is a community, I dont want to show all the petitions of people asking for making a lesson of a song, I would like to show only those forums where the people talks about certain themes.... 

I dont have any idea of how to write code / api...

What a I need is a page where show the recent topics so people can interact quickly and "chat" 

And i want to leave a forum out of that "page" because is not a "community" page

 

( sorry again for my english ) 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 23, 2013 - 7:08 pm

no worries on language!

let me see if I can find time tonight to write the db query hook changes...  but that is the only chance right now to include only specific forums...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625