Register Link
Archived from the Web Auction Discussion forum.
zedimus — Tue Oct 21, 2008 12:48 pm
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
zedimus — Wed Oct 22, 2008 10:38 am
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"
shannah — Wed Oct 22, 2008 11:15 am
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
zedimus — Wed Oct 22, 2008 12:02 pm
Thanks steve I changed it back and did it the way you suggested