|
|
#1 |
|
Member
Join Date: Nov 2007
Location: Metro Detroit
Posts: 59
Rep Power: 9 ![]() |
I am looking to see if anybody has developed if/else statement for a telling a guest that they need to login in, in order to view the seller details? Could anybody point me onto that direction?
Thanks, Dave
__________________
David Anthony Schnoblen uSelliBuy.com My Email v 4.1.3 Developer Templates: Default 3 Col |
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,118
Rep Power: 118 ![]() |
This if statement is in the layout template file.
Code:
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
You are logged in
{else}
You are a guest
{/if}
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2007
Location: Metro Detroit
Posts: 59
Rep Power: 9 ![]() |
would this code go in viewlisting.tpl.php...I want to tell a seller they need to login to contact the owner...
__________________
David Anthony Schnoblen uSelliBuy.com My Email v 4.1.3 Developer Templates: Default 3 Col |
|
|
|
|
|
#4 | |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,624
Rep Power: 47 ![]() ![]() |
Quote:
I thought so. Here's what I do for my site: In my showlistings templates I use the following code around line 20 just above this... {* This section shows the listings in categories, search results, and user store *} PHP Code:
PHP Code:
-Mike
__________________
Mike-N-Tosh IndianaPC.org - A community website (v3.1.10 Developer - heavily modified) Sandbox (v3.1.10, v4.0.9, 4.1.3) Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as 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 |
|
|
|
|
|
|
#5 |
|
Coder
Join Date: Mar 2006
Posts: 4,564
Rep Power: 111 ![]() ![]() |
Why dont you just edit the user group so that guests (ie those not logged in) cant contact the seller? Or am I missing something?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with an if/else statement on links. | michael | HTML, CSS, and Design Help | 14 | 09-24-2007 10:00 AM |
| If statement in meta tag Title | SkGold | v3.1 Modules & Modifications | 2 | 04-12-2007 12:36 AM |