Support Forums


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

 
LinkBack Thread Tools Display Modes
Old 07-23-2006, 05:37 PM   #1
art
Junior Member
 
Join Date: Jul 2006
Posts: 23
Rep Power: 14
art is on a distinguished road
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
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,224
Rep Power: 62
juven14 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 Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 07-25-2006, 03:45 PM   #3
art
Junior Member
 
Join Date: Jul 2006
Posts: 23
Rep Power: 14
art is on a distinguished road
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
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,224
Rep Power: 62
juven14 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 Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 07-25-2006, 08:09 PM   #5
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,224
Rep Power: 62
juven14 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 Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 07-25-2006, 09:28 PM   #6
art
Junior Member
 
Join Date: Jul 2006
Posts: 23
Rep Power: 14
art is on a distinguished road
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
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,224
Rep Power: 62
juven14 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 Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 07-27-2006, 11:00 PM   #8
art
Junior Member
 
Join Date: Jul 2006
Posts: 23
Rep Power: 14
art is on a distinguished road
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
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,224
Rep Power: 62
juven14 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 Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 07-28-2006, 12:44 PM   #10
art
Junior Member
 
Join Date: Jul 2006
Posts: 23
Rep Power: 14
art is on a distinguished road
Default

I have the developer version. Thanks
art 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
RSS feed to HTML page SkGold v3.1 Modules & Modifications 10 12-29-2006 05:39 PM
Adding a new page spaceboy v3.1 Questions & Support 6 09-24-2006 07:45 AM
Removing browse category table from main page. gabs v3.0 Questions & Support 1 06-24-2006 12:37 PM
3.0.xx upgrading to 3.1... is this normal? Mikael v3.1 Questions & Support 4 05-23-2006 04:36 PM
Adding HTML to Short & Long Descriptions NJHomeGuide v3.0 Questions & Support 7 04-28-2006 03:43 PM


All times are GMT -4. The time now is 05:27 PM.


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