Support Forums

Modify display of Featured Listings only on home page

This is a discussion on Modify display of Featured Listings only on home page within the Templates, HTML, CSS, and Design Help forums, part of the General category; Ok, first off I understand that if I want to have my set # of defined Featured Listings to populate ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 06-12-2009, 06:49 AM   #1
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Exclamation Modify display of Featured Listings only on home page

Ok, first off I understand that if I want to have my set # of defined Featured Listings to populate on the home page in a vertical layout, I am going to reference feature_listings_vertical. But after searching the forums about this pesky little one line of a code, I can't seem to find where or how to define adding a line break between each listing and its respective text with some padding before and after the solid line. Can anyone shed some light? I don't want to modify how the listings look in any other part of the site, just on the home page. See for yourself Industrialpost.com

Also, I am happy how featured_listings_horizontal handles the image and text info, but not how it displays the info below the image. I like how featured_listings_vertical_home displays the info to the right of the image, but I don't like how much information is being populated and how it is stylizing this info. So I am going to create a new featured_listings_horizontal_home.php page just for the home featured listings to reference.

But still need to know about that solid line break between each listing. Thanks!
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline   Reply With Quote
Old 06-12-2009, 09:31 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,325
Rep Power: 132
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I recommend you use the plugin that most closely represents how you want the ads displayed. The horizontal plugin creates a table with empty cells and does math to calculaterows and columns etc. Converting that to create a vertical display would be a lot messier than starting with the vertical plugin to begin with.

As for figuring out where to put a line break thats tough to explaine how to read and identify what goes where.

At the end of the day the PHP script queries the database and collects a fixed number of ads. It loads the ad data into a multidimensional array. Then it loops over the array assigning HTML and the various values from the elements of the array to the variable called output. Then "output" is returned to the core and displayed on your page.

Since the horizontal plugin creates a table ading a line break after an ad is not going to give you vertical output, its just going to add height to the content of the table cells. If you want to modify it for vertical display you are going to need to fudge with the whole table design.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-12-2009, 10:32 AM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I haven't tried this but it did get me thinking. I wonder if you could use the horizontal and set it to 1 column to get a vertical table.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 06-12-2009, 10:54 AM   #4
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,049
Rep Power: 60
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You beat me to it! I was just thinking the same thing.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 06-12-2009, 11:00 AM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,325
Rep Power: 132
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Eric Barnes
I haven't tried this but it did get me thinking. I wonder if you could use the horizontal and set it to 1 column to get a vertical table.
Thats a good idea but you still have all the messy math in there even if not used.

At one point I think I posted a version of the plugin converted to use CSS instead of HTML, it had much less php in it and was easier to read/modify for those unfamiliar with php. This was vor v4.0 so it may need some tweaking for 4.1

http://www.68classifieds.com/forums/...ty-please.html
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-12-2009, 08:07 PM   #6
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Default

Now that is thinking out of the box a?
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline   Reply With Quote
Old 06-12-2009, 08:33 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Larry,

I totally forgot about it and didn't document it but that plugin is included in the core now. It is named css_featured
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
featured ads home page darkqueen Technical Support 7 06-12-2009 03:13 PM
Having trouble putting Featured Listings on my Home Page michael Templates, HTML, CSS, and Design Help 16 10-17-2008 04:24 PM
How show up 12 featured listing in home page ? Marcelo Templates, HTML, CSS, and Design Help 2 05-01-2007 02:21 AM


All times are GMT -4. The time now is 12:43 AM.


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