Support Forums

Old 12-23-2008, 01:08 PM   #1
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 2
Adam Waxler is on a distinguished road
Default Short Description

Hi,

I would like to have my "short description" show up in my showlistings and viewlistings pages, but can't seem to figure out how.

I read this other thread: Short Description?

and tried to do what was suggested which was replacing this code:

Code:
  <tr>
     <td colspan="2"><strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description|nl2br}</td>
  </tr>
with this code:
Code:
<tr>
     <td colspan="2"><strong>{$shortDescription}</strong> <br /> <p> </p> <strong>{$smarty.const.LANG_DESCRIPTION}: </strong><br />{$description|nl2br}</td>
  </tr>
in viewlisting2.tpl

But, I still don't see the short listing anywhere.

Thanks,
Adam
Adam Waxler is offline   Reply With Quote
Old 12-23-2008, 01:17 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,780
Rep Power: 110
Eric Barnes is a jewel in the rough
Default

The only thing I can think of is your site is not actually setup to use the viewlisting2.tpl template file. I find the easiest way to tell is to put the {debug} var in or add something like to the very top of the template file:

Code:
THIS IS THE VAR: {$shortDescription}
That way you know what is going on.
__________________
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
Eric Barnes is offline   Reply With Quote
Old 12-23-2008, 01:31 PM   #3
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 2
Adam Waxler is on a distinguished road
Default

Thanks, but I don't know that much about code...what is a var and where exactly do I put it...and then what do I do to "know what is going on"

Sorry, but you have to dumb it down for me bit
Adam Waxler is offline   Reply With Quote
Old 12-23-2008, 07:00 PM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 695
Rep Power: 17
bowers01 is on a distinguished road
Default

Just place {$shortDescription} where you want it to appear in the viewlisting.tpl and post back if it works or not.

{debug} will tell you if variables such as {$shortDescription} will work on the page you are viewing, but just forgot it for now and try what i suggested at the start of post.

Cheers
__________________
Nick Bowers
68c v4.09 Developer
bowers01 is offline   Reply With Quote
Old 12-24-2008, 08:22 AM   #5
Member
 
Join Date: Dec 2008
Posts: 30
Rep Power: 2
Adam Waxler is on a distinguished road
Default

Thanks...

I placed {$shortDescription} in various spots, but for some reason was only able to get the short description to show at the top of the view listing page.

I was able to get it to show on my show listing page (which is what I wanted more), but then it ended up looking messy...it was difficult to tell if the short description was for the ad above or below.

I have decided to remove the short description altogether so it no longer shows up when a customer creates an ad and I removed it from my various payment packages. In the end, I think it may just confuse customers anyway. At some point I may try to play around with it some more to try and get the look right in my show listing page, but for now I'll just do without it.

Thanks Eric and Nick for your help.
Adam Waxler is offline   Reply With Quote
Old 12-24-2008, 08:38 AM   #6
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,337
Rep Power: 40
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Unless I'm very mistaken, the showlistings.tpl and showlistings2.tpl files show the listings data from an array, so the variable $shortDescription wouldn't be available to the template. I think it would be available by using this method instead:
{$entry.shortDescription}

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
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

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
Short Description? suav v4 Questions & Support 10 08-26-2008 01:46 AM
Short description famtimes v4 Questions & Support 1 05-07-2008 11:26 PM
Need to sanitize the description and short descriptions bgordon v3.1 Questions & Support 7 04-05-2007 09:03 PM
Add short description to view listing redmtnex v3.1 Questions & Support 2 01-25-2007 07:39 PM
Short Description Not showing lbrown13 v3.1 Questions & Support 7 06-25-2006 09:29 AM


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


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