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
Hats off to the Developers!
Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 8:18 am

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! laugh

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! kiss

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2012 - 9:10 am

oooh. Now I do hope nothing goes wrong when you do that!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 10:40 am

Well whaddya know! It's all working fine!

Thank you guys for such a wonderful upgrade.

 

Can i ask how i would go about adding in Custom icons? i see the menu link has gone, and there is no plugin? or have i missed it ?

 

Thanks once again!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2012 - 10:53 am

Moved to the manage Forums menu.
Check your storage locations as we were unable to move the old custom icons folder so just check it exists and is writable.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 11:00 am

All my storage location are working fine - but the custom icon menu only allows me to upload an icon - not assign it to a position with a URL?

How do i place custom icons into my theme ?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2012 - 11:37 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 12:03 pm

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 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2012 - 12:52 pm

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/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 1:06 pm

Thank you swordfish. That has worked a treat!

And i have made my own theme as you have recommended.

Final question.

Would it be possible to only show that custom icon when a member is logged in? Or would that require some coding madness ?

Avatar
Monkfish
London, England
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2012 - 1:17 pm

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 🙂

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