68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support > Printer Friendly in IE7
v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
(#1)
Old
CB CB is offline
Senior Member
CB is on a distinguished road
 
Posts: 347
Join Date: May 2006
Default Printer Friendly in IE7 - 03-09-2007, 01:51 AM

First in IE7 printer pages don't print. They work fine in FireFox

Second, is there anyway to limit only 10 extra fields from showing?

Thanks in advance.

Chris
Reply With Quote
(#2)
Old
suzkaw suzkaw is offline
Help you, I will.
suzkaw has a spectacular aura about
 
Posts: 1,814
Join Date: Mar 2006
Location: Belmont, NC
Default 03-09-2007, 09:44 AM

Chris,

I just tested your site using IE7 on windows xp and could print the listing by clicking the print button. I also tried in Firefox on a mac and it seemed to work fine as well.


--
Thanks,
Eric Barnes
68 Classifieds
Documentation - Modifications - My Blog

Reply With Quote
(#3)
Old
CB CB is offline
Senior Member
CB is on a distinguished road
 
Posts: 347
Join Date: May 2006
Default 03-09-2007, 11:30 AM

Eric gotta love Microsoft, a security setting was causing the problem. Accept or Deny :-)

Do you have a way to only show 10 extra field items? Right now when it prints on most listings it's a lot of paper.

Thanks in advance
Reply With Quote
(#4)
Old
juven14 juven14 is offline
Moderator
juven14 has a spectacular aura about
 
Posts: 1,690
Join Date: Mar 2006
Location: NJ/NYC Area
Default 03-09-2007, 05:19 PM

It has been a while since I've seen the printer friendly page, but in the past I used:

Code:
@media print { .noprint { display: none; } }
To prevent the printing of links, banners, etc elsewhere.


Regards,

John
mods.auscity.com
v3.1.5 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
(#5)
Old
CB CB is offline
Senior Member
CB is on a distinguished road
 
Posts: 347
Join Date: May 2006
Default 03-10-2007, 12:27 AM

Thanks John,

I'm not really sure what to do with that code. Right now it shows all 30 extra fields, I just want it to show 10. A lot of people are printing out their listings to advertise at super markets, bulletin boards and convention shows.

CB
Reply With Quote
(#6)
Old
Mike-N-Tosh Mike-N-Tosh is offline
Member
Mike-N-Tosh will become famous soon enough
 
Posts: 71
Join Date: Jan 2007
Default 03-10-2007, 10:14 AM

There's always a way to do it, it really comes down to how much effort do you really want to put into it.

Off of the top of my head, I think you would need to consider a few things before attempting to come up with the solution. If you actually have 30 extra fields and you limit printing to only 10 of those fields, which ten would you include? Would that be congruent with what each individual advertiser would want? Chances are no.

Are the same 30 extra fields the same for all ads? If they aren't then that opens up a whole new can of worms.

-Mike


Mike-N-Tosh
v3.1.5 Developer

IndianaPC.org Under construction
Reply With Quote
(#7)
Old
Lhotch Lhotch is online now
Moderator
Lhotch has a spectacular aura about
 
Posts: 1,472
Join Date: Mar 2006
Default 03-10-2007, 05:43 PM

All you have to do is use a counter in the loop that prints the extra fields. Of course as Mike said, you will only get the 1st ten fields (or what ever you set counter to).
Reply With Quote
(#8)
Old
juven14 juven14 is offline
Moderator
juven14 has a spectacular aura about
 
Posts: 1,690
Join Date: Mar 2006
Location: NJ/NYC Area
Default Yesterday, 06:34 PM

I think you can use section in place of foreach and utilize the max item.

Something along these lines - haven't checked to see if this works but it might.

HTML Code:
{* Extra Fields *} {section name=fields loop=$extra max=10} <tr> <td><strong> {$extras[title]}:</strong></td> <td> {if isset($extras[value])} {foreach key=key item=item from=$extras[value]} {$item}<br /> {/foreach} {/if} </td> </tr> {/section} {* End Extra Fields *}
If you want to pick which out of the list you could do it this way:

HTML Code:
{* Extra Fields *} {foreach from=$extra item=extras} {if $extras.title == 'title I want' || $extras.title == 'other title'} <tr> <td><strong>{$extras.title}:</strong></td> <td> {if isset($extras.value)} {foreach key=key item=item from=$extras.value} {$item}<br /> {/foreach} {/if} </td> </tr> {/if} {/foreach} {* End Extra Fields *}


Regards,

John
mods.auscity.com
v3.1.5 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
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
Search engine friendly? Unregistered Pre Sales 2 12-22-2006 11:01 AM
Search engine friendly urls SkGold v3.1 Questions & Support 3 06-14-2006 11:40 PM
Search friendly URL price difference detrate Pre Sales 1 06-11-2006 12:26 AM
seo friendly issues stuart v3.0 Questions & Support 0 04-29-2006 03:13 AM
Search Engine Friendly URL's suzkaw v3.1 Questions & Support 2 04-26-2006 12:16 PM



Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com