problem with Show First Post Only To Guest (sfpo) - First Post On Every Page
problem with Show First Post Only To Guest (sfpo)
i get this:
http://peppersrusforum.nl/viewtopic.php ... 243#p45243
normally the first post would only been shown to guests.
when disabling your extension the sfpo extension works again.
Hope it can be resolved.
Thanks.

- Theriddler1
- Registered User
- Posts: 451
- Joined: Sat Aug 27, 2011 11:00 pm
- Location: NL
- Name: Theriddler❶
- Contact:
Re: problem with Show First Post Only To Guest (sfpo)
rmcgirr83\sfpo\event\listener.php
in the following manner:Code: Select all
OPEN
rmcgirr83\sfpo\event\listener.php
FIND
'core.viewtopic_get_post_data' => 'viewtopic_get_post_data',
REPLACE WITH
'core.viewtopic_get_post_data' => array('viewtopic_get_post_data', -10),
-
- Extensions Development Team
- Posts: 3473
- Joined: Wed Oct 25, 2006 12:46 pm
- Location: Siberia, Russian Federation
- Name: Ruslan
- Contact:
Re: problem with Show First Post Only To Guest (sfpo)
Appreciate the extensions/mods/support then buy me a beer

- RMcGirr83
- Former Team Member
- Posts: 21913
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: problem with Show First Post Only To Guest (sfpo)
For the OP issue, the SFPO ext listener method should be called later than the same event listener of the First Post On Every Page ext to cut the final posts list.
-
- Extensions Development Team
- Posts: 3473
- Joined: Wed Oct 25, 2006 12:46 pm
- Location: Siberia, Russian Federation
- Name: Ruslan
- Contact:
Re: problem with Show First Post Only To Guest (sfpo)
rxu wrote:That is for passing the priority when registering several listener methods for the same event. The higher the priority, the earlier the method is called: http://symfony.com/doc/current/componen ... ubscribers
Thanks rxu

Appreciate the extensions/mods/support then buy me a beer

- RMcGirr83
- Former Team Member
- Posts: 21913
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
- Contact:
Re: problem with Show First Post Only To Guest (sfpo)
rxu wrote:There're 2 ways to try fixing the issue. F.e. by editingrmcgirr83\sfpo\event\listener.php
in the following manner:Code: Select all
OPEN
rmcgirr83\sfpo\event\listener.php
FIND
'core.viewtopic_get_post_data' => 'viewtopic_get_post_data',
REPLACE WITH
'core.viewtopic_get_post_data' => array('viewtopic_get_post_data', -10),
Thanks rxu for your quick response, the problem has been solved.

- Theriddler1
- Registered User
- Posts: 451
- Joined: Sat Aug 27, 2011 11:00 pm
- Location: NL
- Name: Theriddler❶
- Contact: