Support Forums

Old 03-07-2008, 09:59 AM   #1
Member
 
Join Date: Nov 2007
Location: Metro Detroit
Posts: 59
Rep Power: 9
LittleRascal is on a distinguished road
Default Disabling the User name when Print this Ad

How do you disable the user name when a guest goes to print the ad...

Thanks, Dave
__________________
David Anthony Schnoblen
uSelliBuy.com
My Email
v 4.1.3 Developer
Templates: Default 3 Col
LittleRascal is offline   Reply With Quote
Old 03-07-2008, 10:11 AM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,624
Rep Power: 47
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Wow, I never even noticed that before!

I haven't done this, but I would suggest that you put some logic in the printlisting.tpl.php file in your template/printer directory that checks if they are a "Guest" like this:
PHP Code:
{if $smarty.session.userlevel==5//they are a guest
   
put your text here within the table
{else}
Whats already there
{/if} 
Hope that helps! Now I think that I want to do this as well.

-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
Mike-N-Tosh is offline   Reply With Quote
Old 03-08-2008, 11:38 AM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,624
Rep Power: 47
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

OK, I came up with this and tested this in my sandbox (local copy) and it appears to work.
You will need to modify the the following file:
yoursite.com/templates/yourtemplatedirectory/printer/printlisting.tpl.php

I have attached the complete file if you would like to simply replace your existing one. Otherwise you can modify yours if you have already made other modifications.

Around line 63 you will find this line of code:
PHP Code:
<tr>
   <
td><strong>{$smarty.const.LANG_SELLER}:</strong></td>
   <
td>{$listingname}</td>
</
tr
Just ABOVE that insert this code:
PHP Code:
{if $smarty.session.userlevel==5} {* modification to disallow seller info to guest *}
<
tr>
   <
td colspan="2">You must be registered and logged in to view or print the seller information</td>
</
tr>
{else} 
After you insert this code go to around line 78 and find this code (the last of the seller information):
PHP Code:
{if $viewcountry=="Y"}
<
tr>
   <
td><strong>{$smarty.const.LANG_COUNTRY}:</strong></td>
   <
td>{$listingcountry}</td>
</
tr>
{/if} 
Right AFTER the {/if} add an additional {/if}, so that there are to of those in a row.

Cheers,
-Mike
Attached Files
File Type: zip printlisting.tpl.php.zip (1.8 KB, 0 views)
__________________
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

Last edited by Mike-N-Tosh; 03-08-2008 at 12:07 PM. Reason: Added attached file
Mike-N-Tosh is offline   Reply With Quote

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspending a user racingjon v4 Questions & Support 1 02-19-2008 03:55 PM
User checkout and verification of cat/subcat.. margaretm v3.1 Questions & Support 1 08-30-2007 03:16 PM
View user name when not logged in redmtnex v3.1 Questions & Support 3 01-29-2007 11:03 AM
User: See's Membership listing package garysr v3.1 Questions & Support 23 11-04-2006 01:08 PM
Direct link to user listing in contact email SkGold v3.1 Questions & Support 2 07-10-2006 02:42 PM


All times are GMT -4. The time now is 06:52 PM.


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