68 Classifieds Forums

Horizontal & Featured Listings With Styling

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 ...


Go Back   68 Classifieds Forums > Help & Support > Module Release

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-03-2008, 07:56 AM
seymourjames's Avatar
Moderator
 
Join Date: Mar 2008
Posts: 494
Rep Power: 13
seymourjames has a spectacular aura about
Default Horizontal & Featured Listings With Styling

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
Reply With Quote
  #2  
Old 09-05-2008, 07:29 AM
Junior Member
 
Join Date: Aug 2008
Posts: 23
Rep Power: 1
Plamen is on a distinguished road
Question

Quote:
The functions should be downloaded and placed in your smarty/plugins directory
Where is that? I have no such directory.
Regards,
Plamen
__________________
v4.0.8 Developer
Reply With Quote
  #3  
Old 09-05-2008, 07:49 AM
Junior Member
 
Join Date: Aug 2008
Posts: 23
Rep Power: 1
Plamen is on a distinguished road
Default

Find
includes/classes/smarty/plugins

Great job!!! Thanks!
__________________
v4.0.8 Developer
Reply With Quote
  #4  
Old 09-05-2008, 05:02 PM
seymourjames's Avatar
Moderator
 
Join Date: Mar 2008
Posts: 494
Rep Power: 13
seymourjames has a spectacular aura about
Default

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
Reply With Quote
  #5  
Old 09-07-2008, 12:29 PM
Member
 
Join Date: Mar 2008
Posts: 52
Rep Power: 4
wesse249 is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 09-07-2008, 05:28 PM
seymourjames's Avatar
Moderator
 
Join Date: Mar 2008
Posts: 494
Rep Power: 13
seymourjames has a spectacular aura about
Default

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
Reply With Quote
  #7  
Old 09-11-2008, 12:28 AM
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 1
MiśUszatek is on a distinguished road
Default

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
Reply With Quote
  #8  
Old 09-11-2008, 04:39 AM
seymourjames's Avatar
Moderator
 
Join Date: Mar 2008
Posts: 494
Rep Power: 13
seymourjames has a spectacular aura about
Default

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
Reply With Quote
  #9  
Old 11-12-2008, 08:06 AM
SecondShoe's Avatar
Member
 
Join Date: May 2008
Posts: 38
Rep Power: 2
SecondShoe is on a distinguished road
Default

I did everything but I get:
PHP Code:
Parse errorsyntax errorunexpected T_FUNCTION in /home/fshumen/public_html/shumen.biz/includes/classes/smarty/plugins/function.css_latest_listings_horizontal.php on line 1 
__________________
Shumen.biz v4.0.9 Developer
Reply With Quote
  #10  
Old 11-12-2008, 11:01 AM
seymourjames's Avatar
Moderator
 
Join Date: Mar 2008
Posts: 494
Rep Power: 13
seymourjames has a spectacular aura about
Default

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
Reply With Quote
Reply

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
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


All times are GMT -4. The time now is 02:04 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22