Support Forums

Adding Feature Item Table to HTML Page

This is a discussion on Adding Feature Item Table to HTML Page within the Templates, HTML, CSS, and Design Help forums, part of the General category; We're running 68 in a subdirectory (mysite.com/ads/). Is it possible to display the Featured Items and/or New Listings tables within ...


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

Reply
 
Thread Tools Display Modes
Old 07-23-2006, 05:37 PM   #1
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default Adding Feature Item Table to HTML Page

We're running 68 in a subdirectory (mysite.com/ads/). Is it possible to display the Featured Items and/or New Listings tables within our html home page? If so, what code would need to be added to the html page? Thanks
art is offline   Reply With Quote
Old 07-23-2006, 11:12 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

You would need to be running smarty in your main directory and then copy the plugin to that installation of smarty. You could also rss the featured ads to your main site without needing smarty.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 07-25-2006, 03:45 PM   #3
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

I downloaded your free rss module and installed it. How do I add:

{assign var="rssbody" value=$smarty.const.FILESYSTEM_PATH}
{include file="$rssbody/modules/rss_mod/templates/rss_mod/rss.tpl.php"}

to the html file? I can't seem to get it working.

Thanks
art is offline   Reply With Quote
Old 07-25-2006, 08:04 PM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Open templates/default/layout.tpl.php or other template file such as home.tpl.php (where ever you want the feed to be displayed) and copy/paste in the file where you want the feed to be displayed. Also, be sure you set a feed in the module admin.

Also - if you have another module such as SEO New running let me know, I'll have to send you a fix to allow the sharing of hooks by different modules. This will be implemented in the next version of 68 Classifieds.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 07-25-2006, 08:09 PM   #5
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Are you trying to run the module outside of the 68 directory? It will only work within the 68 Classifieds files - because it is based on smarty and the fact that the module system only extends to those files.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 07-25-2006, 09:28 PM   #6
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

I wanted to a the rss in the root index.html file. I have 68 installed in /ads directory.
art is offline   Reply With Quote
Old 07-25-2006, 11:00 PM   #7
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Yes, this module won't do that for you.

Inside the module files are the Magpie distribution docs - it should explain how to set it up outside of smarty. I think I made some changes so you'd be better off downloading a fresh copy of magpie or another rss parser and then follow those instructions for setup outside of your "ads" directory.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 07-27-2006, 11:00 PM   #8
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

I setup magpierss as suggested and understand the basics of it but after working with it for a day I do not understand how to create a 68 rss feed that displays new items (photo, title, price, link) on our index.html page using magpierss. The magpierss files are in /magpierss directory and 68 is in /ads directory. Any help would be greatly appreciated. Thanks
art is offline   Reply With Quote
Old 07-28-2006, 09:21 AM   #9
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

To create RSS feeds from your site just pass the right variables to external.php.

The values it is setup to take are:

category = type
city = city
state = state
country = country
ad owner = owner
minimum price = minprice
maximum price = maxprice
number of ads (default is 15) = limit
text search of title and description = searchtext

To utilize these you would call external.php in this manner:

external.php?type=1&city=dallas

Magpie is pretty much setup "right out of the box". It generally just requires a url. For the url construct as above the place the full url in the magpie spot - http://www.yoursite.com/ads/external...ty&state=state

Do you have the developer or designer version? If you have the developer version I can help you change the query a bit for featured ads, newlistings etc.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 07-28-2006, 12:44 PM   #10
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

I have the developer version. Thanks
art is offline   Reply With Quote
Reply

Thread Tools
Display Modes



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


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