On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Is it possible to have private topics show up in the sidebar widget?

UserPost

5:18 am
27 Sep 2008


jasculs

Member

posts 3

1

Hello,

I really enjoy your forum plugin.  I was wondering if it was possible to have private topics of my private forums be visible in the most recent post section of my sidebar.

It is a good way for visitors to see activity on the site without actually being able to access it.

Thanks for your reply

Jason

5:34 am
27 Sep 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

2

private topics will show up in the sidebar if the user has permissions to view the forum…  the template tags are governed by the same rules as the forum itself… 

you are not currently able to not allow viewing a forum, but allow viewing of the topics in a sidebar…  not sure I understand that reasoning…

that said, it would be simple enough for you to pick the template tag you want to use and edit the code in sf-tags.php and remove the permissions check… take a look and see if you can figure it out… if not, post back here with the tag you want to use and I can help with which code to remove…

5:43 am
27 Sep 2008


jasculs

Member

posts 3

3

Mr Papa said:

private topics will show up in the sidebar if the user has permissions to view the forum…  the template tags are governed by the same rules as the forum itself… 

you are not currently able to not allow viewing a forum, but allow viewing of the topics in a sidebar…  not sure I understand that reasoning…

that said, it would be simple enough for you to pick the template tag you want to use and edit the code in sf-tags.php and remove the permissions check… take a look and see if you can figure it out… if not, post back here with the tag you want to use and I can help with which code to remove…


Thank you for your reply.  The reason I want to do this is becuase I would like my members to be able to see some of the recent topics on the front without having to log in to see them.  Then can view what was recent right away.  It also helps the site look more lively as most of my forums are private.

It would be great if you could help me remove the permissions from the tag I am trying to use…I would really appreciate it.  The tag I'm trying to use is the one:

sf_recent_posts_tag

Thanks a lot!

Jason

6:06 am
27 Sep 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

4

In file, sf-tags.php, around line 58, remove the following code:

            if(sf_can_view_forum($sfpost->forum_id))
            {

and dont forget to remove the closing brace around line 94

            }

personally, I like the sf_recent_posts_alt_tag() a bit better because of styling, but the choice is yours…  If you were to switch the alt tag, just find the same lines of code and remove them… these lines verify permission to view the forum..

a couple of notes…  first, If someone clicks on one of these recent topic links, they will go to the forum and will be shown an error message…  you would probably like a better message about registering, but you would have to hack some more code for that…  second, keep your changes handy because you will need to make the same change any time you upgrade spf - and you will want to get the v4.0 upgrade in the near future… Cool

6:20 am
27 Sep 2008


jasculs

Member

posts 3

5

Thank you very much…that worked exactly how I wanted it to…Thanks again!

6:23 am
27 Sep 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

6

np… enjoy…



Reply to Topic: Is it possible to have private topics show up in the sidebar widget?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 10        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

9 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)