Hi,
Is it possible to make WeBid not show items in auction until the user logs in?
So the "Home" tab would only show the login and password dialog boxes, same as "Sell an Item" and "Message Board" tabs.
Thanks!
Results 1 to 4 of 4
-
26-04-2012, 12:47 AM #1Junior Member
- Join Date
- Apr 2012
- Posts
- 2
-
26-04-2012, 05:28 AM #2
'B_LOGGED_IN' => $user->logged_in
is defined in header.php so you can use that.
<!-- IF B_LOGGED_IN eq false-->
what you want to show those not logged in
<!-- ELSE -->
what you want to show to those who ARE logged in
<!-- ENDIF -->
- Read the rules. 1 question/thread.
- Search extensively before posting & read Common Answers.
Everyone should try to replicate Bugs & confirm/deny results.
- I wont respond to users who;
-Repeatedly ask for help & don't make the above simple contribution to the project -Don't follow rules or search for solutions.
-Clearly haven't reviewed the WeBid Admin. and/or haven't tested a simple scenario question on their site.
- Read the rules. 1 question/thread.
-
26-04-2012, 11:13 PM #3Junior Member
- Join Date
- Apr 2012
- Posts
- 2
Solved
Hi,
After digging around for a while I added the clause to index.php, in similar spot to msgboard.php.
Your suggestion misled me a bit but gave me the hint that I needed to do the digging (there's no settings for this option).Code:// Is the seller logged in? if (!$user->is_logged_in()) { $_SESSION['REDIRECT_AFTER_LOGIN'] = 'index.php'; header('location: user_login.php'); exit; }
Thanks.Last edited by kidkal; 26-04-2012 at 11:17 PM.
-
27-04-2012, 12:56 AM #4
What boxlot was saying is in your .tpl all you needed to do was add
where show this is the html you want displayed if they are loged in, and the dont show this is what is shown if they are not loged in.PHP Code:<!-- IF B_LOGGED_IN -->
show this
<!-- ELSE -->
dont show this
<!-- ENDIF -->
For example
PHP Code:<!-- IF B_LOGGED_IN -->
<li><a href="{SITEURL}user_menu.php?">{L_622}</a></li>
<li><a href="{SSLURL}logout.php?">{L_245}</a></li>
<!-- ELSE -->
<li><a href="{SSLURL}register.php?">{L_235}</a></li>
<li><a href="{SSLURL}user_login.php?">{L_052}</a></li>
<!-- ENDIF -->
Last edited by nay27uk; 27-04-2012 at 12:59 AM.
100%Webid Ready Hosting | Fleamart.co.uk the UK's 10p Auction Site


Reply With Quote
Bookmarks