Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Disabling the spFoot.php functionality
Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 26, 2013 - 3:21 pm

Hi Guys,

I am finding that, for my needs, the “statistics footer” at the bottom of each page takes up too much real estate and provides info that I do not want my user to see.

I believe that the display of this section is probably controlled by the file spFoot.php which is located at:

wp-content/sp-resources/forum-themes/default/templates

Since I don’t think it’s a good policy to edit or remove any “vendor files”, then, as per normal “good WP practice”, I am using a Child Theme to “modify” other vendors files when needed.

So ….. if I were to create a directory structure in my child theme to match:

wp-content/sp-resources/forum-themes/default/templates 

AND populate it with a new spFoot.php file, that being designed to override the existing spFoot.php file located at:

wp-content/sp-resources/forum-themes/default/templates), 

would that achieve my objective of removing the display of the statistics section without breaking other parts of your product?

 When I say an “empty spFoot.php file” I suspect that I would need to have only two function calls, namely:

sp_FooterBegin(); and sp_FooterEnd(); with the usual php opening and closing tags and this head:

# --------------------------------------------------------------------------------------

#

#          Simple:Press Template

#          Theme                        :           Default

#          Template        :           foot

#          Author                        :           My Name

#

#          The 'foot' template can be used for all forum content that is to be

#          displayed at the bottom of every forum view page

#

# --------------------------------------------------------------------------------------

Thanks

kenjw

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 26, 2013 - 10:30 pm

dont make a child theme... we dont have those - yet...  instead create your own theme and edit away...  any changes will be upgrade proof and should remain backward compatible... only thing you might need to do is add new template functions if we had new capability you want...

see:  http://codex.simple-press.com/.....g-a-theme/

Avatar
Kenneth Wright
Member
Free Members
sp_UserOfflineSmall Offline
Nov 27, 2013 - 4:57 am

So my questions really were  ….

(1) Is the spFoot.php file the one (and only one) I need to change to remove all the statistics at the bottom?

AND

(2) Are the changes I want to make to the spFoot.php file the correct changes to remove all the statistics at the bottom?

Thanks for the pointer to the Theme stuff ...

Best Regards

Ken

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 27, 2013 - 5:13 am

That's a yes to both questions.

We have tried to make the display function names relatively easy to identify so it should be fairly easy to trace them line by line and compare them to what you see displayed on the screen. So you can remove whole blocks or just individual components. if you comment out code lines rather than remove then then you should be fairly safe to experiment with the result.

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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625