![]() |
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 |
I take it these will 'all' be 'extra fields' (administration > category > extra fields) ?
|
Iv tryed using something like this {$extra.5.value}
and I cant get the email link to call advert ID number |
Glen,
I still need to know if you are going to use 'extra fields' or not. This is a question. Quote:
|
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 |
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>That works. You mentioned 'showlisting.temp' - that's a new one on me. Where is that? |
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 |
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. |
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 |
Quote:
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.