Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Hiding add topic button when viewing a topic?
Avatar
boborg
Member
sp_UserOfflineSmall Offline
May 3, 2012 - 6:55 am

I think I did some sort of hack on v.4 to remove the add topic button when users are reading a topic since I often find they are using add topic when replying to a topic.

How do I do hide Add Topic in V.5?

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 3, 2012 - 8:22 am

V5 is template driven so you will need to address this in the spTopicView.php template in the SP theme you are using. You can use the Theme Editor for this. Open it up and find the call that displays the add topic button (sp_PostNewTopicButton) and comment it out or remove it.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
May 3, 2012 - 12:25 pm

Hi and thanks for the answer.

I have followed the guide regarding custom theme. But upon activation I get this error

call_user_func_array() expects parameter 1 to be a valid callback, function 'spmytheme_textdomain' not found or invalid function name in /problem-with-post-edit-buttonome/digitalt/public_html/wp-includes/plugin.php

I think I have done exactly as described.

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 3, 2012 - 12:29 pm

Looks like in the spFunctions,.php file you have used a function name of 'spmytheme_textdomain' in the text domain setup but haven't named the function below it with the same name.

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
May 3, 2012 - 3:52 pm

Yes you are correct missed one change...

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 3, 2012 - 3:58 pm

So - hope all is well now.

andy-signature.png
YELLOW
SWORDFISH
Avatar
boborg
Member
sp_UserOfflineSmall Offline
May 4, 2012 - 4:06 am

Yes just also had to make a renamed mytheme version of the language file inside forum-language/sp-themes/

Maybe you should also include this element in the guide http://codex.simple-press.com/.....g-a-theme/

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 4, 2012 - 4:39 am

Good thinking. I will update that. Thanks.

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626