68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications > Display Sellers First & Last Name on Print Ad
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
VanWertAds*com VanWertAds*com is offline
Junior Member
VanWertAds*com is on a distinguished road
 
Posts: 8
Join Date: Feb 2007
Arrow Display Sellers First & Last Name on Print Ad - 04-26-2007, 02:52 PM

when printing out the classified ad I want to replace the sellers {$listingname} with their First and last name. What tag would I use to do this. Thanks!


V3.1.5b Hosted
vanwertads.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
(#2)
Old
motoenth motoenth is offline
My Red Light is blinking
motoenth is on a distinguished road
 
Posts: 229
Join Date: Mar 2006
Default 04-26-2007, 08:03 PM

Hi-

You'll have to open up printer.php and modify the SQL query on line 23 so that it pulls out the customers first and last name.

Then assign the values to the $class_tpl in the same way as the other values are assigned.

something like:
PHP Code:
$class_tpl->assign('firstname', safeStripSlashes($rs['fname']));
and then place it it the template with {$firstname}

Hope this helps.


---------
Blair
Eric's favorite business partner since 2002!
Reply With Quote
(#3)
Old
VanWertAds*com VanWertAds*com is offline
Junior Member
VanWertAds*com is on a distinguished road
 
Posts: 8
Join Date: Feb 2007
Default 04-26-2007, 10:39 PM

Quote:
Originally Posted by motoenth View Post
Hi-

You'll have to open up printer.php and modify the SQL query on line 23 so that it pulls out the customers first and last name.

Then assign the values to the $class_tpl in the same way as the other values are assigned.

something like:
PHP Code:
$class_tpl->assign('firstname', safeStripSlashes($rs['fname']));
and then place it it the template with {$firstname}

Hope this helps.
Thanks, I give that a try.... another problem I am having is on my listing detail pages the Sellers user name does not show up at all. Do I make changes in viewlisting.tpl.php or viewlisting2.tpl.php also why are their two of these files? Thanks


V3.1.5b Hosted
vanwertads.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
(#4)
Old
midi510 midi510 is offline
Member
midi510 is a jewel in the rough
 
Posts: 99
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Default 04-27-2007, 01:43 AM

In admin the top right section is "front end settings". In there is "listing view settings". You have the choice of photos on the side (format 1 thus viewlisting.tpl.php) or photos on the top (format 2 thus viewlisting2.tpl.php).

Those are the templates where your seller is displayed, but try dragging your cursor over the area where it should be (in your browser). You might have the font color set to the same color as your background, check your css file.

{$smarty.const.LANG_SELLER} should be in your viewlisting template. It is defined in your language file in the language folder.


Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy

Last edited by midi510 : 04-27-2007 at 01:46 AM.
Reply With Quote
(#5)
Old
gregbatch gregbatch is offline
Senior Member
gregbatch is on a distinguished road
 
Posts: 164
Join Date: Jun 2006
Default 04-27-2007, 08:48 AM

Quote:
another problem I am having is on my listing detail pages the Sellers user name does not show up at all.
I believe this is also an option in group settings...


Greg
3.1.4 Designer
www.valleywantads.com
Reply With Quote
(#6)
Old
VanWertAds*com VanWertAds*com is offline
Junior Member
VanWertAds*com is on a distinguished road
 
Posts: 8
Join Date: Feb 2007
Arrow 04-27-2007, 09:10 AM

Quote:
Originally Posted by gregbatch View Post
I believe this is also an option in group settings...
I have checked here and everything is setup correct.... What is the default code to show seller username - eg. {$listingname} this is what I am using and nothing is displaying???? But yet it works for the print option!!!!! I have also tryied {$ownername} but nothing....

Also the "Contact The Seller" form is not set at the right width for the page. It looks like its about 70%, how do I change this setting??

Thanks!


V3.1.5b Hosted
vanwertads.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
(#7)
Old
midi510 midi510 is offline
Member
midi510 is a jewel in the rough
 
Posts: 99
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Default 04-27-2007, 09:56 AM

Definately check your user group settings. {$ownername} is the right smarty tag to use. By putting {debug} at the begining of your layout template, you'll get a window (disable pop-up blocker) showing the variables passed on by the scripts. I put it between </head> and <body>.

Templates/yourtemplate/contact/contactowner.tpl.php is the template for contacting the owner. The table there should have a class "tableborder". Look in style.css to check/change the width. This class is used throughout the site and should come with the width set to 100%. What template are you using? Try changing templates in admin to see what happens. Have you been making changes to template you're using?


Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy
Reply With Quote
(#8)
Old
midi510 midi510 is offline
Member
midi510 is a jewel in the rough
 
Posts: 99
Join Date: Mar 2007
Location: Mammoth Lakes, Ca
Default 04-27-2007, 10:01 AM

Hey, ginggs, if you see this, and you're looking to buy a new bed, checkout vanwertads.com in the toddlers category.


Kirk
V3.1.7 Developer
May you & your loved ones be blessed with
Grace, Peace, Forgiveness, Love, Wisdom, & Joy
Reply With Quote
(#9)
Old
VanWertAds*com VanWertAds*com is offline
Junior Member
VanWertAds*com is on a distinguished road
 
Posts: 8
Join Date: Feb 2007
Default 04-27-2007, 10:24 AM

In the Smarty Debug Console it is showing {$ownername} as empty... I have checked my account details and my first and last name is their.... I have also looked in User View Settings and User Groups. Not sure where else to look?


V3.1.5b Hosted
vanwertads.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
(#10)
Old
VanWertAds*com VanWertAds*com is offline
Junior Member
VanWertAds*com is on a distinguished road
 
Posts: 8
Join Date: Feb 2007
Arrow 04-27-2007, 02:12 PM

Thanks for all the help.... Problem fixed!


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
How can I show sellers store in member.tpl.php darek v3.1 Modifications 0 12-14-2006 05:27 PM
modifying display of one category dawyatt v3.1 Modifications 4 08-27-2006 05:18 PM
Browse Category Display dawyatt v3.1 Questions & Support 5 05-17-2006 01:06 PM
Display Total Number of Users suzkaw v3.0 Modifications 5 05-10-2006 11:22 AM
Display Total Number of Listings suzkaw v3.0 Modifications 2 03-30-2006 02:29 PM



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