68 Classifieds Forums

68 Classifieds Forums (http://www.68classifieds.com/forums/index.php)
-   v3.1 Questions & Support (http://www.68classifieds.com/forums/forumdisplay.php?f=19)
-   -   Showlistings2.tpl.php help (http://www.68classifieds.com/forums/showthread.php?t=1902)

CHRD 11-07-2006 06:51 PM

Showlistings2.tpl.php help
 
Hi I need and bit of help on the showlistings template, Im not to hot on php but Im willing to get to know this script.
Im wanting to use this for a holiday rental site and Im trying to call bits of information from the database, like, advertisers area, city, number of bedrooms and type of property, also have email a friend link for the showlistings page
Thanks
Glenn

Chaslie 11-07-2006 07:11 PM

I take it these will 'all' be 'extra fields' (administration > category > extra fields) ?

CHRD 11-07-2006 07:35 PM

Iv tryed using something like this {$extra.5.value}
and I cant get the email link to call advert ID number

Chaslie 11-07-2006 07:43 PM

Glen,
I still need to know if you are going to use 'extra fields' or not. This is a question.
Quote:

I take it these will 'all' be 'extra fields' (administration > category > extra fields) ?
Alternatively, if you are using the 'additional fileds' that are available for user registration, there is a different way to add these to showlistings2

CHRD 11-07-2006 07:49 PM

yes I was planing to use these fields, but can I adjust the places these fields show up in showlisting.temp.
Also if a member has more than one property in different locations the wrong area will be displayed in the showlistings page

Chaslie 11-07-2006 07:57 PM

For the email a friend link, you have probably used this:

Code:

<a href="javascript:void(0);" onclick="MM_openBrWindow('{$smarty.const.URL}/friendmail.php?vehicle={$listingid}','contact','width=350,height=400')">{$smarty.const.LANG_EMAIL_FRIEND}</a>
To make it pick up the ID, change {$listingid} to {$entry.id}

That works.

You mentioned 'showlisting.temp' - that's a new one on me. Where is that?

CHRD 11-07-2006 08:03 PM

Sorry I mean showlistings2.tpl.php, I think its best to use extra fields for all advert information, because some people have rentals all over the place.
Also that {$entryid} code didnt work for me
thanks for your help

Chaslie 11-07-2006 08:44 PM

Sorry - it should be {$entry.id}

To add the extra fields into showlisting2, go down to Maffo's entries here..... http://www.68classifieds.com/forums/...0048#post10048

If you get stuck, yell out here and we will be able to help you.

This is a great modification.

CHRD 11-08-2006 05:32 AM

Yes please help me, I need to use extra fields on showlistings.tpl.php
only because a lot of people have property in different areas and in different countries.
from what I understand I need to insert this code to display info from extra fields Iv made up for property details

what I need to know is where the code gets inserted and if I need to re-peat code if I call same data more than once.

extra fields that I would like to use in showlistings2.tpl.php are
Location: text input
Sleeps: drop select
Price: text input
state: text input
country:text input
thanks for your help

Chaslie 11-08-2006 05:49 AM

Quote:

extra fields that I would like to use in showlistings2.tpl.php are
Location: text input
Sleeps: drop select
Price: text input
state: text input
country:drop select
Glen,
Please provide the information requested below and please be very specific.

If you say 'extra fields', I will think you are referring to these (administration > categories > extra fields). If you are NOT referring to these, please call any other fields 'additional fields' so that we don't get confused.

1. Which of these above are 'extra fields' and what are their IDs (administration > categories > extra fields ......... the IDs are beside the name of the extra field)

2. Which of these above are fields you have added to the 'user registration' form? I need to know if they are extra, extra2, extra3.

3. Is 'price', 'state' and 'country' using the normal 68 classifieds fields .... or are these additional fields/extra fields?


All times are GMT -4. The time now is 02:45 AM.

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