Support Forum
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/.....terbutton/
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/.....g-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.
YELLOW
SWORDFISH
|
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/.....g-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/.....g-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...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)