Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
sph_TopStats filter in sp_NewMembers section
Avatar
Chris Smith
Member
Free Members
sp_UserOfflineSmall Offline
May 17, 2012 - 2:41 pm

I am using the sph_TopStats filter to add a custom stat to my forum, but realized that the filter is applied twice in the forum\content\sp-content-view-functions.php file. This causes my custom stat to be shown twice in the spStatsSection. The filter is applied on line 2118 in the function sp_TopPostersStats() and then also on line 2178 in the function sp_NewMembers(). I was wondering if this was on purpose or if there should be a filter with something like sph_NewMembers in the function sp_NewMembers().

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 17, 2012 - 2:45 pm

Whoops! That's a bug.
Well spotted.
Change the new members one to sph_NewMembers in your code and I will also make sure that change is made in 5.1
Thanks for the find.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625