Page 1 of 1

Register Link

PostPosted: Tue Oct 21, 2008 12:48 pm
by zedimus
Hi Steve

I want to change the register link thats at the bottom of the login page to link to index.php?-action=tos and from that page i will link to the real register page.

I cant find what file to edit. I have been going threw the Dataface/template file but i cant seem to see it.

Thanks
David

PostPosted: Wed Oct 22, 2008 10:38 am
by zedimus
I figured this out, edit dataface/action.ini

Change this
Code: Select all
;; This should appear in beneath the login form
   category = login_actions
   mode = browse
   label = Register for an account
   url = "{$this->url('-action=register')}"


to this

Code: Select all
;; This should appear in beneath the login form
   category = login_actions
   mode = browse
   label = Register for an account
   url = "index.php?-action=tos"

PostPosted: Wed Oct 22, 2008 11:15 am
by shannah
Hi Zedimus,

Good job figuring this out. One note is that it is probably a good idea to accomplish this in the webauction actions.ini file (not the dataface/actions.ini file) in case you want to upgrade dataface at any later date.

You can do this by adding the following to your actions.ini file:
Code: Select all
[register > register]
    url="index.php?-action=tos


This essentially tells webauction to override the register action with your own action, and change the url to a custom url.

-Steve

PostPosted: Wed Oct 22, 2008 12:02 pm
by zedimus
Thanks steve I changed it back and did it the way you suggested