This is a discussion on Horizontal & Featured Listings With Styling within the Module Release forums, part of the Help & Support category; v4 Horizontal & Featured Listings Functions With CSS Styling These two little functions produce nicely formatted horizontal listings of the ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
v4 Horizontal & Featured Listings Functions With CSS Styling
These two little functions produce nicely formatted horizontal listings of the latest adverts and for your featured adverts. They work both with the SEO module and without. The functions may be called from most pages but are a great way to spice up your home page with new content as it arrives. This can keep search engines more interested in your site. Please go to this page to see the instructions and download the zip files 68C classified-functions.html Help & Support If you need any help just reply below and we will try to assist. Examples of these functions can be seen on the home page of our classifieds site given in the signature.
__________________
Version 4.09 - Running A Business In France french property for sale french property classifieds |
|
#2
|
|||
|
|||
|
Quote:
Regards, Plamen
__________________
v4.0.8 Developer |
|
#3
|
|||
|
|||
|
Find
![]() includes/classes/smarty/plugins Great job!!! Thanks!
__________________
v4.0.8 Developer |
|
#4
|
||||
|
||||
|
Sorry I will amend that on my site. I forget not everyone knows where smarty plugins are put. Feel free to modify them - you can take out the nofollow attributes if you wish for example. Do not foget the CSS code to go into your css/style.css file.
__________________
Version 4.09 - Running A Business In France french property for sale french property classifieds |
|
#5
|
|||
|
|||
|
Hello,
Does anybody know what i need to change in this script when i want to show the newest ads of specific category? Jan Roel |
|
#6
|
||||
|
||||
|
I think you will be able to pinch the code from external.php and re-use it in the function. You will also have to pass the category you want into the function.
__________________
Version 4.09 - Running A Business In France french property for sale french property classifieds |
|
#7
|
|||
|
|||
|
for some reason it doesn't work corectly.
It shows listings as image + title under the image. any idea how to get it in list format below?: --------------------------------- image + title + town/state + price --------------------------------- image + title + town/state + price --------------------------------- image + title + town/state + price --------------------------------- image + title + town/state + price ---------------------------------
__________________
68 Classifieds » version 4.0.8 Designer |
|
#8
|
||||
|
||||
|
The title of the module is called smarty_function_feature_listings_horizontal.
It works correctly as documented. You wish to do something different. It should be easy to adapt however. To make the adverts list out vertically, you can modify the function by changing the output line to put in a <br />. $output .= '</div><br />'; $ads++; To make it exactly as you desire you will need to play around with the css a little and take out the inner divs but keep the most outer div tag for the borders if you like them. OR just use the supplied function which is standard in your plugins directory function.feature_listings_vertical.php
__________________
Version 4.09 - Running A Business In France french property for sale french property classifieds |
|
#9
|
||||
|
||||
|
I did everything but I get:
PHP Code:
__________________
Shumen.biz v4.0.9 Developer |
|
#10
|
||||
|
||||
|
Please check carefully that you did this.
This line goes in your home.tpl file for example. You may need to put it in a table for additional styling. {css_latest_listings_horizontal number=6} You put this in your css styling file [COLOR="rgb(139, 0, 0)"].feat_width{width:100%;} .feat{width:116px; height:178px; float:left; padding:12px 8px 5px 8px; margin: 0px 0px 5px 3px; border:#CCCCCC 1px solid; } .feat_img {width:100%; text-align:center;} .feat_txt {width:100%; color:#666666; height:50px; overflow: hidden; text-align:center;} .feat_price {width:100%; color:#185221; font-size:10px; padding-top:15px; text-align:center; } [/color] You then place the file [COLOR="rgb(139, 0, 0)"]function.css_latest_listings_horizontal.php[/color] in the smarty/plugins directory. Some thing is a miss if you did this because it is running on 5 sites that I run which are a mix of SEF module deployed and pure PHP sites, others have used it and reported no problems. Please let me no on progress. I cannot see why you should get this error.
__________________
Version 4.09 - Running A Business In France french property for sale french property classifieds |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Featured Listings Modifcation | anna245 | v4 Questions & Support | 0 | 05-02-2008 12:23 PM |
| Random Featured and Normal listings | CHRD | v3.1 Modules & Modifications | 4 | 03-02-2008 08:58 PM |
| Adding a heading to the Featured Listings | sporthorsebreeder | v3.1 Questions & Support | 2 | 07-21-2006 01:04 PM |
| Adding a heading to the Featured Listings | sporthorsebreeder | v3.0 Questions & Support | 1 | 07-21-2006 12:49 PM |
| Seperating ads in Horizontal Featured from Vertical | GSP | v3.1 Questions & Support | 19 | 05-04-2006 04:51 PM |