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
Register button / change directory
Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 17, 2013 - 4:24 pm

Hi, 

I would like the register button of simple press to link to the register page of my theme.  

How can i do this.

Thanks

http://www.cannabismarijuana-s.....com/forum/

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 17, 2013 - 4:39 pm

also i would like to change the directory of the lost pasword link. 

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 17, 2013 - 7:49 pm

http://codex.simple-press.com/.....terbutton/

http://codex.simple-press.com/.....loginform/

the codex is your friend... 

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2013 - 2:07 pm

I see that the file sp-common-view-functions.php is not included in my costum theme

Will the changes in this file be overiden by a update ? 

Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 18, 2013 - 2:19 pm

sp-common-view-functions.php is NOT a theme file so it has no business in the theme folders.

andy-signature.png
YELLOW
SWORDFISH
Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2013 - 2:39 pm

Oke zo that means that the file will not be overriden by a update ?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 18, 2013 - 7:05 pm

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..

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2013 - 12:51 pm

Zo with call you mean the way the fille is used and not the name of the file i supose ?

In the sphead.php i find this rule : 

sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));

Only i still dont understand how to change. 

It seems like the codex dus not explain how to make use of it. Atleas not if you dont have any coding skils. 

Thanks

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2013 - 1:38 pm

answering from email so dont remember all you wanted to change... but think you said the register page... so

change to

sp_RegisterButton('tagClass=spButton spRight&link=http://mysite.com/myregister', __sp('Register'), __sp('Register'));

of course changing http://mysite.com/myregister to what you want...

these template functions are just like those in a wp theme... coding skills not needed, but you just pass the arguments and options you want...

Avatar
tjalling
Member
Free Members
sp_UserOfflineSmall Offline
Jan 19, 2013 - 2:15 pm

Oke i managed to change the register link. 

Also i would like to change the lostpassword link. When i search the sphead.php file the only thing i can find is 

'labelLostPass' => __sp('Lost password?'),

 

Can i ad my own link to this line ?

thanks

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