Forums / Developer / how to call registration page from a link in home page..?

how to call registration page from a link in home page..?

Author Message

Satheesh R

Tuesday 14 November 2006 11:19:59 pm

Dear all,
in my home page a link("Register"), when a user clikes on this, a page for registration should open. how to achieve this...?

The Class is Users - id is 4,
even i created section and i made override file too but it gives an empty page even its not giving "Unavailable objects"

please anyone guide me how to create override file and how can i achive the above..?

Thanks & regards
Satheesh R

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 12:28:09 am

Hi Satheesh

The answer is the same as kracker gave you in your previous post here:
http://ez.no/community/forum/developer/how_to_call_the_created_user_registration_from_in_user_side

The href of your link needs to go to {'/user/register'|ezurl()}. By default this will call up the tempate templates/user/register.tpl.

There should be no need for any sections. You can certainly create an override for the register template but I would first try without.

If you have problems with that please tell us exactly what you are doing. I think you should first do without any sections or override as this makes any troubleshooting much easier.
If it works fine without any override and you have problems with the override please post the code of your override template here.

Greetings from Luxembourg

Claudia

Satheesh R

Wednesday 15 November 2006 2:36:55 am

Hi Claudia Kosny,
thanks for the solution
Still i'm facing some problem(i'm new to eZ).

I want to create a login page for users in the user side itsconsists of following
USER SIDE:
--------------
1.login :---------
2.password:--------
3.login(button)
4.Remember me (checkbox)
5.Register(a link - href) [for new users)

Admin Side
-------------
Modified the default class "User" with two more fields.

Now i want to call this class (as a registration form) in user side. when a new user clicks the Register link.

Pls let me know how to do this.. whether i have to create any sections or directly i can call.

Thanks and regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 2:50:13 am

Hi Satheesh

you really should just need a link like this:

<a href={'/user/register'|ezurl()}>Click to register</a>

If this does not work, please tell me exactly what is happening when you click on this link.

Claudia

Satheesh R

Wednesday 15 November 2006 3:09:14 am

Hi Claudia Kosny,

i did the same but I'm getting a blank page.

Thanks & regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Wednesday 15 November 2006 10:58:51 am

Hi Santheesh

That looks like you use an override which does not fetch any content. Please enable full debug output, clear your cache and have a look at the list of used templates. Also check whether you get any error messages.

If you use an override, remove it for now, clear the cache and try again. Then compare the original register.tpl with your override and check what might be going wrong.
If you get any error messages in your debug output, try to fix the errors first on your own. If you have any trouble, post the errors here.

Regards

Claudia

Satheesh R

Monday 20 November 2006 4:07:28 am

Hi Claudia Kosny
Still i'm facing the same problem, So i tried in a new setup, I installed a plain site. by default it has a login registration page, it works well. later i made a new pagelayout.tpl file and override the satandard.

The new pagelayout.tpl is consits of following lines
"--------- This is the test------------"}
<HTML>
</BODY>
<a href={'/user/register'|ezurl()}>Click to register</a>
<blockquote> </blockquote>
</BODY>
</HTML>

but this "Click to register" anchor is not working while clicking it dispalyes a blank page only. please tell me how to get or call the default registration from by clicking the above anchor.

Thanks and Regards
R Satheesh

Thanks and Regards
R Satheesh

Claudia Kosny

Monday 20 November 2006 5:50:14 am

Hi Satheesh

Sorry, I don't know what is going on there. You have an error in your html (the opening <body> tag must not have a slash) but I can't image that this causes this problem.

Some things to check:
Enable the original pagelayout again and click there on the link for registering a user.
Make a note of the url that is called by this link. Now go back to your test pagelayout and make a note of the link that is called there for registering a user. What is the difference between them?
Also enable full debug output so you get a list with the used templates. Try once with the original link and once with the new link and check which template is called for user registration. Please post the full path of this template (as found in this list).

Have a look at the [SiteAccessSettings] block of your site.ini for the siteaccess you use. Make sure that user/register is listed in the AnonymousAccessList[], like this (this is copied from the main site.ini):

# A list of module or module/views that don't require user login
AnonymousAccessList[]
AnonymousAccessList[]=user/register
AnonymousAccessList[]=user/success
AnonymousAccessList[]=user/activate
AnonymousAccessList[]=user/forgotpassword

Good luck

Claudia

Satheesh R

Tuesday 21 November 2006 4:29:30 am

hi Claudia Kosny,

Thanks for the solutions, i did the a fresh setup as u said and i followed all the default steps, now its working well. thanks a lot for the solutions

-
Satheesh R

Thanks and Regards
R Satheesh

eZ debug

Timing: Jan 21 2025 17:16:28
Script start
Timing: Jan 21 2025 17:16:28
Module start 'content'
Timing: Jan 21 2025 17:16:28
Module end 'content'
Timing: Jan 21 2025 17:16:28
Script end

Main resources:

Total runtime0.2511 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9375180.8125
Module start 'content' 0.00620.0065 768.7500101.9766
Module end 'content' 0.01270.2383 870.7266530.6719
Script end 0.2510  1,401.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.3580200.0002
Check MTime0.00130.5309200.0001
Mysql Total
Database connection0.00040.153710.0004
Mysqli_queries0.199179.30361410.0014
Looping result0.00130.53141390.0000
Template Total0.238094.810.2380
Template load0.00080.332610.0008
Template processing0.237194.434110.2371
Override
Cache load0.00060.223810.0006
Sytem overhead
Fetch class attribute can translate value0.00080.324510.0008
XML
Image XML parsing0.00040.147410.0004
General
dbfile0.00913.6419200.0005
String conversion0.00000.002430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs