Support Forums


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

 
LinkBack Thread Tools Display Modes
Old 06-12-2009, 05:49 AM   #1
Member
 
Join Date: May 2009
Posts: 33
Rep Power: 1
industrialpost is on a distinguished road
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, 08:31 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,339
Rep Power: 106
Lhotch is just really niceLhotch is just really nice
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 06-12-2009, 09:32 AM   #3
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,969
Rep Power: 115
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 06-12-2009, 09:54 AM   #4
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,499
Rep Power: 43
Mike-N-Tosh is just really niceMike-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)
Sandbox (v3.1.10, v4.0.9, 4.1.3)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as 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, 10:00 AM   #5
Moderator
 
 
Join Date: Mar 2006
Posts: 4,339
Rep Power: 106
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by Eric Barnes View Post
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

I need a hand on smarty please...
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 06-12-2009, 07:07 PM   #6
Member
 
Join Date: May 2009
Posts: 33
Rep Power: 1
industrialpost is on a distinguished road
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, 07:33 PM   #7
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,969
Rep Power: 115
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote

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 ads home page darkqueen v4 Questions & Support 7 06-12-2009 02:13 PM
Having trouble putting Featured Listings on my Home Page michael HTML, CSS, and Design Help 16 10-17-2008 03:24 PM
How show up 12 featured listing in home page ? Marcelo HTML, CSS, and Design Help 2 05-01-2007 01:21 AM
Featured ads in home page Marcelo v3.1 Questions & Support 0 04-19-2007 08:49 PM
Featured Listings on Home Page LukeOut v3.0 Questions & Support 9 04-06-2006 04:36 PM


All times are GMT -4. The time now is 04:16 AM.


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