Support Forum
I have just upgraded my version of SF to V5, and would like to show my appreciation for what appears to be a fantastic piece of software!
Congratulations guys - it's very tidy!
First impressions are that it should be a dream to work with both from an admin point of view, and from a users perspective.
I'm now going to go and try to make some changes and add some plugins - lets see how she goes!
Are sorry - assumed you meant for use in forums and groups.
Go to your new SP themes folder for the theme you are using and look at the the templates folder. With a little thought you will find they are pretty straightforward and follow the display of the different forum views.
You can add any php, html into those wherever you like.
As always we recommend you make your own theme to avoid losing customisations in future updates.
YELLOW
SWORDFISH
|
OK - i submit.
That's a whole lotta code that is no where near my ability... so i request some assistance please.
I would like to ad an additional button to the right of the member button ( when logged in ) that links to another wp page.
Judging by the code in spHead.php, I would need to add the relevant code under this line (98):
sp_MemberButton('tagClass=spButton spRight', __sp('Members'), __sp('View the members list'));
But what code would i need to change this to so that I can add a live chat button pointing to a dedicated url elsewhere in my site?
I am thinking along the lines of:
sp_MemberButton('tagClass=spButton spRight', __sp('Live Chat'), __sp('Enter the chat room'));
or something along the lines of:
<a class='spButton spRight vtip' id='spMemberButton' title='Enter Live Chat' href='http://www.racecraftmag.co.uk/?page_id=133/members'><img class='spIcon' src='http://www.racecraftmag.co.uk/wp-content/sp-resources/forum-themes/default/images/sp_livechat.png' alt=''/>Live Chat</a>
But how do i add that second line of code into the php of sphead.php file ?
I know this is not right, so some guidance would be much appriciated 🙂
That raw HTML at the end there is the way to go.
So before the position you want that just close the php tags with a :
?>
and than after the html re-open the php tags with a:
<?php
and it should work.
Except that you will need to put the sp_livechat.png onto that images file. AND you should make your own theme: http://codex.simple-press.com/.....g-a-theme/
YELLOW
SWORDFISH
|
Also - as I activated my new theme - i received this error in a popup :
Fatal error: Cannot redeclare spdefault_textdomain() (previously declared in /problem-with-post-edit-buttonome/fearofth/public_html/www.racecraftmag.co.uk/wp-content/sp-resources/forum-themes/default/templates/spFunctions.php:17) in /problem-with-post-edit-buttonome/fearofth/public_html/www.racecraftmag.co.uk/wp-content/sp-resources/forum-themes/racecraft/templates/spFunctions.php on line 18
It contiunued to work - but to test i changed the theme back to default and got this error :
Fatal error: Cannot redeclare spdefault_textdomain() (previously declared in /problem-with-post-edit-buttonome/fearofth/public_html/www.racecraftmag.co.uk/wp-content/sp-resources/forum-themes/racecraft/templates/spFunctions.php:17) in /problem-with-post-edit-buttonome/fearofth/public_html/www.racecraftmag.co.uk/wp-content/sp-resources/forum-themes/default/templates/spFunctions.php on line 18
But again the theme continues to work - apparently all ok? Though you should know 🙂
1 Guest(s)