Apr 19th by Neil under Hints and Tips, Product, Reviews, Software, Wordpress
SPF was born in 2006 after creator Andy Staines found existing forum plugins to be sub-standard and set about creating a simple yet effective forum plugin for his website. People started asking about it and for it and it was released as a plugin, from then on its gone from strength to strength with more features being added by request of SPF users.
I personally have been using SPF since 2008 and for me it is the most complete and feature rich forum plugin available today and Andy and Steve should be congratulated for all their hard work and unrivalled support (remember and donate too)!
SPF seemlessly integrates with WordPress, meaning users need only log in once to the website. You can also write posts in the usual way in WP admin and create Forum topics using said post. Even the comments on the WP Post and SPF Topic can be integrated. Users can build a comprehensive profile with an Avatar (although for a small minority of people this could become an issue…Ive explained more below) and expect all the features that the dedicated Forum scripts deliver like phpBB and vBulletin.
Well all in all SPF for me is THE best forum plugin for WP and has unrivalled functionality and support; Andy, Steve and helpers really do a fantastic job. However as mentioned above Avatars could cause a slow down issue for a minority of SPF users. I discovered this when I changed servers for one of my sites running SPF. I asked in the SPF Support forum and both Andy and Steve have been extremely helpful in trying to solve this problem (the full support thread is here). I also asked my server support guys and they said that the site is making loopback requests that are being blocked by the firewall???? Doi?
Andy eventually got me to try switching of the forums Avatar display. This resulted in my 10+ post topics to load in 4-5secs compared with the 35secs they were taking!! Of course I was thrilled to have a quick forum again but I had lost functionality which I like and users like; its a personal identifier which can portray a little about you or simply puts a face to a name.
So I kept annoying Steve and Andy over on the SPF support forum and they have been very patient and keen to solve the issue even if it is for a small minority of users!! So we tested varying sequences of Avatar calls and for me the tests revealed that the SPF Default Avatars and ther Uploaded Avatars seemed to be causing the slow down for some reason (which is still a mystery).
Andy then directed me to here: /library/sf-common-display/php and the function is sf_render_avatar() which is where the Avatar code is. I noticed the two case statements which seemed to be causing my slow down shared this variable: SFAVATARURL. After a number of bumbling tests I actually found something that worked!! It now displays the offending Avatars and does it quickly….so here it is; in Case 2 I changed line 257 from this:
$url = SFAVATARURL.$avfile;
to this:
$url = "www.mywebsite.com/wp-content/forum-avatars/".$avfile;
And in Case 3 I changed line 284 from this:
$url = SFAVATARURL.$image;
to this:
$url = "www.mywebsite.com/wp-content/forum-avatars/".$image;
Im still trying to work out exactly why this works for me and so are Andy and Steve, if we can determine why this is working then Im sure they will release a bug fix with this included. However I would be really interested in knowing if this fix works for others suffering a topic load slow down!! Then Steve, Andy and I will know its not just me and my server being weird!!
So I hope this helps the few SPF users which may be experiencing slow topic loading and hopefully a bug fix can be intergrated into the next release of SPF. Please if this does help you report back here and let me know as it will be a big help!!
Below are my forum avatar settings just incase you need these too:

My forums avatar settings found in Forum->Profiles->Avatars



I am wanting to add google adsense code for every new forum topic in simple press. Please can you help.
Yes bj you have to use hooks. Check out the wiki pages, they are well documented: http://wiki.simple-press.com/plugin-api/program-hooks/topic-view-hooks/
Just put the adsense code in the “return” bit