Yes oke.
Nou that you manchen it. What is an array ?
An array is a collection of values. All values have the same variable name but are referenced by either a key sub-name or a number. I.e., if the array is called $myArray then I can hold dfifferent values at $myArray[1] and $myArrayp[2] etc.
Mr Papa said
why do you want to edit or change that file???I pointed you to the codex about those functions… those functions are called from your sp theme… the codex tells you how to alter the function calls in your sp theme to achieve the desired operation… you do NOT need to modify those files… just call them differently… you will find the calls in spHead.php template file in your sp theme..
I don’t understand this post. I too want to change the register button inside my theme. You guys had me use the standard theme and not one of the unique themes of simple press due to execution errors. So now I sit here and wonder how to change this simple button. I can not find a sphead.php when i search on all files inside of simple press using filezilla so I think the only thing I can do is to hard code changes inside the simple-press/forum/content/sp-common-view-functions.php.
http://mygolfpros.com/forum
what am i missing here? I also want to change colors and use a bar for indented tabs to represent the user location on the site (like you have above) however i don’t have a clue how to do that either.
please advise and let me know if i have to hard code the links in the simple-press/forum/content/sp-common-view-functions.php. or what you are talking about in the sphead.php and how to access.
thanks
G
its not inside of simple press… its inside your custom theme… so wp-content/sp-resources/your-theme-name/templates/spHead.php
I would strongly recommend against changing core code…
but, you have not said what you actually want to do???
and be sure to check out: http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_registerbutton/
for ways you can control how the register button displays and operates…
The spHead.php file is in every Simple:Press theme custom or supplied ones. It is in the theme’s /templates folder along with the other php files. You can edit that one also using the theme editor built into Simple:Press > Themes >Edit theme. Then you won’t have to go searching for it.
Changing colors requires that you edit the theme’s overlay or CSS file and change the CSS to the colors you want.
The “indented tabs to represent the user location” you are talking about sounds like you mean the breadcrumbs arrows. That requires quite a bit of CSS changes and also possibly creating an image for the arrow itself. Multiple topics here on how to do it… for example: https://simple-press.com/suppor…..ne/page-3/ But not for the faint of heart. Will take some trial and error.
Mr Papa said
its not inside of simple press… its inside your custom theme… so wp-content/sp-resources/your-theme-name/templates/spHead.phpI would strongly recommend against changing core code…
but, you have not said what you actually want to do???
and be sure to check out: http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_registerbutton/
for ways you can control how the register button displays and operates…
It’s pretty simple I just want to change the register button to go to the default mygolfpros.com/register page vs. the wordpress login on the backend. Reading this post It looks like I need to either learn codex, hire someone or go into filezilla and make the change to the php and change simple-press/forum/content/sp-common-view-functions.php.
I did the latter and it worked great the first day. when I came back the second day all the code had been replaced back to the original. Is this something that happens automatically in the theme?
as to the second request I think Brandon C nailed it. i want to change my forum to have indented tabs to represent the user location and I can not use any of the themes other than the css default due to some conflict in simple press (per your forum direction previously) so it looks liKe i will try my hand at css coding.
Still need help / direction with the register button. I do not understand codex hooks so i have to change the file simple-press/forum/content/sp-common-view-functions.php. right?
georgina lewis said
It’s pretty simple I just want to change the register button to go to the default mygolfpros.com/register page vs. the wordpress login on the backend. Reading this post It looks like I need to either learn codex, hire someone or go into filezilla and make the change to the php and change simple-press/forum/content/sp-common-view-functions.php.
I did the latter and it worked great the first day. when I came back the second day all the code had been replaced back to the original. Is this something that happens automatically in the theme?
I think that has been pretty well covered in this thread. Brandon went to grate lengths above to explain exactly where the template spHead resides and how you can edit it with the built in template editor. And post 9 of this thread tells you exactly what to change and how. Change the theme template NOT core code. That is how it works.
If you change core code then yes -you will lose all of your changes on the next update. That is why you don’t do it.
Make changes in a ‘custom’ theme and it will NOT be changed on an update. But 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/codex/themes/theme-basics/creating-a-theme/).This is a simple matter and you can use the current SP theme you are using to copy from. This all works in the same way that WordPress themes work.
As to the second request I think Brandon C nailed it. i want to change my forum to have indented tabs to represent the user location and I can not use any of the themes other than the css default due to some conflict in simple press (per your forum direction previously) so it looks liKe i will try my hand at css coding.
I believe whatever you do is going to involve CSS. By the way the issue with needing to use the CSS only theme is actually a problem with your server and what it will and will not allow
Still need help / direction with the register button. I do not understand codex hooks so i have to change the file simple-press/forum/content/sp-common-view-functions.php. right?
No – that is still wrong.
Per Mr. Papa check out: http://codex.simple-press.com/…..terbutton/
Yellow Swordfish said
georgina lewis saidIt’s pretty simple I just want to change the register button to go to the default mygolfpros.com/register page vs. the wordpress login on the backend. Reading this post It looks like I need to either learn codex, hire someone or go into filezilla and make the change to the php and change simple-press/forum/content/sp-common-view-functions.php.
I did the latter and it worked great the first day. when I came back the second day all the code had been replaced back to the original. Is this something that happens automatically in the theme?I think that has been pretty well covered in this thread. Brandon went to grate lengths above to explain exactly where the template spHead resides and how you can edit it with the built in template editor. And post 9 of this thread tells you exactly what to change and how. Change the theme template NOT core code. That is how it works.
If you change core code then yes -you will lose all of your changes on the next update. That is why you don’t do it.
Make changes in a ‘custom’ theme and it will NOT be changed on an update. But 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/codex/themes/theme-basics/creating-a-theme/).This is a simple matter and you can use the current SP theme you are using to copy from. This all works in the same way that WordPress themes work.
Ok think this response is a little rude here on your part. i am not new to wp themes and modifications and it is taking me awhile to understand because Papa referenced core code. bottom line I believe the answer is that we can not change the link url location and will have to change the string values ” but again PaPa referenced this post… be sure to check out: http://codex.simple-press.com/…..terbutton/ “
As to the second request I think Brandon C nailed it. i want to change my forum to have indented tabs to represent the user location and I can not use any of the themes other than the css default due to some conflict in simple press (per your forum direction previously) so it looks liKe i will try my hand at css coding.
I believe whatever you do is going to involve CSS. By the way the issue with needing to use the CSS only theme is actually a problem with your server and what it will and will not allow.
My server does not have any problems with custom CSS or other themes as we have great features installed. it would be nice to have someone actually try to help me fix the problem instead of assuming I am a dumb blond and just have me turn off your themes.
Still need help / direction with the register button. I do not understand codex hooks so i have to change the file simple-press/forum/content/sp-common-view-functions.php. right?
No – that is still wrong.
well that is how PaPa responded. So now i am reading your reply and thinking that #9 reference the recommended change. would that be right?
I did NOT reference or suggest making a core code change… I reference an api in the codex that showed you how to change arguments to a display template function… the template function shown in the codex is indeed in core code in common view functions… but as Brandon pointed out, that core function is called from you spHead.php template file in the sp theme…
the template function has a list of arguments that you can alter and change to your needs to customize how it is handled… no need to change core code, just change the arguments to the template function… This is identical to how its done in wp themes… the core template function I referred to is just the wp functions the_permalink(), the_ID(), get_permalink(), etc,etc and numerous others… of course, our template functions do different operations than wp template functions…
my answer in #9 was for a different user… may still apply to you… in fact probably does… but that is not a core code change… its an sp theme change… and as always, we recommend you create your own theme to keep from losing changes on updates… see: http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/
in your spHead.php file of your sp theme (not core code), find:
sp_RegisterButton(‘tagClass=spButton spRight’, __sp(‘Register’), __sp(‘Register’));
now, that is from our default theme… but will be very close if not same in any of our themes… based on your post #21,I think you want to change it to:
sp_RegisterButton(‘tagClass=spButton spRight&link=http://mygolfpros.com/register’, __sp(‘Register’), __sp(‘Register’));
not sure where we got off on this core code changes, but we never recommend changing core code… its almost never necessary… and if it becomes, we usually add more hooks, actions and filters so it can be done without core mods…
hope that helps…