68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult.

 
Thread Tools Display Modes
  #1  
Old 11-04-2007, 01:13 AM
VanWertAds*com VanWertAds*com is offline
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 49
Arrow Adding IF Statement

I would like to add the following IF statement in the viewlisting.tpl.php file. I want this to ONLY show if a member is NOT logged In. (guest & awaiting email confirmation)

Could someone show me how to make this work? Please

Here is the text I want to show up:

PLEASE NOTE: In an effort to protect our members, you must be registered and logged in to view sellers contact info.

Thanks,
Josh
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
  #2  
Old 11-04-2007, 11:36 AM
Mike-N-Tosh's Avatar
Mike-N-Tosh Mike-N-Tosh is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Default

This is what I use:
PHP Code:
    {if $smarty.session.userlevel==5}
    <
tr>
        <
td>In an effort to protect our members, you must be registered and logged in to view sellers contact info.</td>
    </
tr>
    {/if}
The userlevel==5 is for a guest not logged in.

Hope that helps!

-Mike
__________________
Mike-N-Tosh
v3.1.7 Developer

IndianaPC.org

I can what I can and I can't what I can't.

Last edited by Mike-N-Tosh : 11-04-2007 at 11:39 AM.
Reply With Quote
  #3  
Old 11-04-2007, 11:38 AM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,777
Default

If you take a quick peek at the layout.tlp.php template where you know that only certain nav options are displayed when logged in you can see an example of what to use and modify it to suite your needs.

example...
Quote:
{if $smarty.session.username=='' || $smarty.cookies.username==<>""}
PLEASE NOTE: In an effort to protect our members, you must be registered and logged in to view sellers contact info.
{/if}
__________________
Larry.
Reply With Quote
  #4  
Old 11-04-2007, 11:42 AM
VanWertAds*com VanWertAds*com is offline
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 49
Default

Thanks for the help!
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement in meta tag Title SkGold v3.1 Modifications 2 04-12-2007 01:36 AM
thumbnail statement. wel-usa v3.1 Questions & Support 9 07-15-2006 01:35 PM
Adding Internal Navigation Menu sleepy HTML, CSS, and Design Help 1 04-13-2006 10:12 AM
adding a google adsense and paypay image garysmith v3.0 Modifications 5 04-11-2006 11:10 PM
adding a simple banner rotator From old forum calaf6 v3.0 Modifications 0 03-30-2006 05:47 PM


All times are GMT -4. The time now is 05:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.