Support Forums

Horizontal & Featured Listings With Styling

This is a discussion on Horizontal & Featured Listings With Styling within the Modules / Plugins / Modifications forums, part of the Developer Forums 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 > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 09-03-2008, 06:56 AM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
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, your featured adverts and random adverts (used to avoid duplicated empty search results). 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

Classifieds Mods - CSS Styled Horizontal Listings
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 11-21-2008 at 07:07 PM. Reason: pushing towards the new mods site
seymourjames is offline   Reply With Quote
Old 09-05-2008, 06:29 AM   #2
Junior Member
 
Join Date: Aug 2008
Posts: 23
Rep Power: 13
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
Plamen is offline   Reply With Quote
Old 09-05-2008, 06:49 AM   #3
Junior Member
 
Join Date: Aug 2008
Posts: 23
Rep Power: 13
Plamen is on a distinguished road
Default

Find
includes/classes/smarty/plugins

Great job!!! Thanks!
__________________
v4.0.8 Developer
Plamen is offline   Reply With Quote
Old 09-05-2008, 04:02 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-07-2008, 11:29 AM   #5
Member
 
Join Date: Mar 2008
Posts: 49
Rep Power: 15
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
wesse249 is offline   Reply With Quote
Old 09-07-2008, 04:28 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
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.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-10-2008, 11:28 PM   #7
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
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
Mi?Uszatek is offline   Reply With Quote
Old 09-11-2008, 03:39 AM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
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
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-12-2008, 07:06 AM   #9
Member
 
Join Date: May 2008
Posts: 66
Rep Power: 18
SecondShoe is just really nice SecondShoe is just really nice
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 
SecondShoe is offline   Reply With Quote
Old 11-12-2008, 10:01 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,357
Rep Power: 85
seymourjames is a jewel in the rough
Default

Please check carefully that you followed the instructions.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Featured Listings Modifcation anna245 Technical Support 0 05-02-2008 11:23 AM


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


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