Register Link

A place to discuss and receive support for the Web Auction application.

Register Link

Postby 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
 
Posts: 29
Joined: Tue Jan 15, 2008 2:37 pm

Postby 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"
zedimus
 
Posts: 29
Joined: Tue Jan 15, 2008 2:37 pm

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby zedimus » Wed Oct 22, 2008 12:02 pm

Thanks steve I changed it back and did it the way you suggested
zedimus
 
Posts: 29
Joined: Tue Jan 15, 2008 2:37 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 23 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved