Forums / Setup & design / Reach to the required link after login.

Reach to the required link after login.

Author Message

nga patel

Wednesday 18 May 2005 9:58:39 am

In my site, there is one advertiser space and for that I want to create the system of login and password for that I had give the link to this space by "/user/login" and its works fine but at the same time, after login when advertiser click on "OK" he should reach exactly on his profile session which I had created in side the same section of advertiser.

For more information, here in my website I want to created one portion from where if any advertiser want to advertise he can built his website through this portion, so it is necessary for him to login which I had obtain but at the same time how advertiser reach to his profil that I don't know and this profil section, I had created inside the same folder of Advertiser.

Any hint ? Thanks

Ekkehard Dörre

Wednesday 18 May 2005 10:59:48 am

Hi, give him the direct link to his space, login promt will come, then after login he'll be redirected to this page.

eg: example.com/advertise_nice (protected)
login promt will come,
example.com/user/login
after login back in
example.com/advertise_nice

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

nga patel

Thursday 19 May 2005 1:20:29 am

No, its not working, Accetually I had user the standard/user/login file and I had add the line as per below in above file:

<form method="post" action={"/user/login/"|ezurl}>
<form method="post" action={"espace_annonceurs/profil"|ezurl}>

<div class="maincontentheader">
<h1>{"Login"|i18n("design/standard/user")}</h1>
</div>

{section show=$User:warning.bad_login}
<div class="warning">
<h2>{"Could not login"|i18n("design/standard/user")}</h2>
<ul>
    <li>{"A valid username and password is required to login."|i18n("design/standard/user")}</li>
</ul>
</div>
{section-else}

{section show=$site_access.allowed|not}
<div class="warning">
<h2>{"Access not allowed"|i18n("design/standard/user")}</h2>
<ul>
    <li>{"You are not allowed to access %1."|i18n("design/standard/user",,array($site_access.name))}</li>
</ul>
</div>
{/section}

{/section}

<div class="block">
<label for="id1">{"Username"|i18n("design/standard/user",'User name')}</label><div class="labelbreak"></div>
<input class="halfbox" type="text" size="10" name="Login" id="id1" value="{$User:login}" tabindex="1" />
</div>
<div class="block">
<label for="id2">{"Password"|i18n("design/standard/user")}</label><div class="labelbreak"></div>
<input class="halfbox" type="password" size="10" name="Password" id="id2" value="" tabindex="1" />

<input class="defaultbutton" type="submit" name="LoginButton" value="{'OK'|i18n('design/standard/user','Button')}" tabindex="1" />
</div>

{section show=ezini( 'SiteSettings', 'LoginPage' )|eq( 'custom' )}
    <p><a href={'/user/forgotpassword'|ezurl}>{'Forgot your password?'|i18n( 'design/standard/user' )}</a></p>
{/section}

<input type="hidden" name="RedirectURI" value="{$User:redirect_uri}" />
</form>
</form>

So, as you can see in above, to redirect the page I had put one link but it is not working.
Any other change?
Thanks

eZ debug

Timing: Jan 20 2025 20:09:28
Script start
Timing: Jan 20 2025 20:09:28
Module start 'content'
Timing: Jan 20 2025 20:09:28
Module end 'content'
Timing: Jan 20 2025 20:09:28
Script end

Main resources:

Total runtime0.1794 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.0059 587.8281180.8281
Module start 'content' 0.00590.0067 768.656398.0234
Module end 'content' 0.01250.1668 866.6797526.5781
Script end 0.1793  1,393.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.9584200.0002
Check MTime0.00140.7526200.0001
Mysql Total
Database connection0.00090.519510.0009
Mysqli_queries0.128571.63181410.0009
Looping result0.00130.71681390.0000
Template Total0.166392.710.1663
Template load0.00090.507810.0009
Template processing0.165492.178110.1654
Override
Cache load0.00060.355010.0006
Sytem overhead
Fetch class attribute can translate value0.00150.817210.0015
XML
Image XML parsing0.00030.141510.0003
General
dbfile0.00864.8211200.0004
String conversion0.00000.003530.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