Support Forums

User Control Panel - redirect

This is a discussion on User Control Panel - redirect within the Technical Support forums, part of the Technical Support Forums category; Hi, I am running the version 4 with the upgrade. When a user logs in to place an ad there ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-20-2008, 11:02 AM   #1
Member
 
Join Date: Dec 2007
Posts: 51
Rep Power: 14
goin4savvy is on a distinguished road
Default User Control Panel - redirect

Hi,

I am running the version 4 with the upgrade. When a user logs in to place an ad there is a little control panel that shows up with Favorites, their listings etc. But when they leave from there it doesn't seem that they can back to that without logging back in. Is there a way to get them back there from anywhere on the site?
Thanks,
Jill
goin4savvy is offline  
Old 05-20-2008, 12:02 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Just add a link to userindex.php
<a href="userindex.php">My Account</a>
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-20-2008, 12:45 PM   #3
Member
 
Join Date: Dec 2007
Posts: 51
Rep Power: 14
goin4savvy is on a distinguished road
Default

Thank Eric,
Is there anywhere specific I add it? Sorry...this is where I am totally dumb! Just copy and paste that anywheree in userindex.php?
Thanks,
Jill
goin4savvy is offline  
Old 05-20-2008, 12:50 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

No I would add this to the layout template file. That way it accessible from any part of the site. I would probably place it in the navigation.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-20-2008, 12:55 PM   #5
Member
 
Join Date: Dec 2007
Posts: 51
Rep Power: 14
goin4savvy is on a distinguished road
Default

Ahhh...okay - just like a regular link!!! Okay I think I get it now...
Thanks!
goin4savvy is offline  
Old 05-20-2008, 01:03 PM   #6
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,092
Rep Power: 62
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by goin4savvy
Thank Eric,
Is there anywhere specific I add it? Sorry...this is where I am totally dumb! Just copy and paste that anywheree in userindex.php?
Thanks,
Jill
What I do for this is to add it to the user menu. This is shown when a user is logged in. Look for this in your layout.tpl file:
PHP Code:
<div id="sidebar">
                            <
h1>{$smarty.const.LANG_MEMBER_NAVIGATION}</h1>
                            <
div class="left-box">
                                <
ul class="sidemenu">
                                    {if 
$smarty.session.username<>'' || $smarty.cookies.username<>""}
                                        <
li><a href="{$smarty.const.URL}/userindex.php">{$smarty.const.LANG_MY_ACCOUNT}</a></li>
                                        <
li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
                                        {if 
$canSaveFavorites=="Y"}
                                        <
li><a href="{$smarty.const.URLS}/userfavorites.php">{$smarty.const.LANG_TPL_VIEW_FAVORITES}</a></li>
                                        {/if}
                                        <
li><a href="{$smarty.const.URLS}/userbrowselistings.php">{$smarty.const.LANG_TPL_MODIFY_AD}</a></li>
                                        <
li><a href="logout.php">{$smarty.const.LANG_TPL_LOGOUT}</a></li>
                                    {else}
                                        <
li><a href="login.php">{$smarty.const.LANG_TPL_LOGIN}</a></li>
                                        <
li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
                                    {/if}
                                </
ul>    
                            </
div
Add the link as an <li> within it. That way when a user is logged in and sees this menu, that will be one of the links that they will have.

<li><a href="userindex.php">My Account</a></li>

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
phpbb user share angler Pre Sales Questions 0 03-23-2007 11:42 AM


All times are GMT -4. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0