|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I want to make my content available on other sites, and I was wondering if PHP pages (changing the format via CSS to match some sites) with an IFRAME was a good way to go. I have seen this done before, and it seems simple to install on the receiving site - just about 3 lines of code required, then nothing more for the receiving sites webmaster to do at all, and I would have no problem writing the PHP for the broadcasting site.
Any thoughts on whether or not this is a good route to take would be appreciated, before I waste too many brain cells...
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
|||
|
Thanks for that - I haven't got around to figuring out DOCTYPES in detail.
But I suppose that the receiving site could just change the doctype for that page... I really want to allow receiving sites to have formatted content within their pages. When I have seen RSS, it has just been a series of links. What I really want to do is have my catalogue on other peoples sites. But I would want pictures and a little text on the "menu" page, rather than just links, with links going to detail pages. It would be nice to have the "menu" and "detail" appearing within the receiving site. Using IFRAMES, I wouldn't have to show a full page to match the receiving sites style, just the content. Any suggestions would be welcome.
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
|||
|
You can do want you want with a combination of javascript and php.
What you do is get your user to include a piece of javascript where the src= is the location your php page, just set the php page to output: doucment write (" whatever you want to appear in the way of products including html code "); To see this in action take a look at my site http://www.blogfuel.com Make yourself a bit of code and stick it on a page and see the result. Then enter the url part of the code into the browser address bar and see what comes up then. There is a little bit more to it than this as you have to escape a few codes when passing to the doc write, but that's the gist of it. |
|
|||
|
When I say "different", I mean both the coding and the 'sales concept'. I tend to ignore Javascript, if only because I hear that so many paranoid surfers switch it off. But I will look at your concept.
I also like the graphics on the right of your home page, which hang "outside the box". Can I critize (politely)- your home page starts of by saying 'what does it cost?', then 'how can I use it?' Surely, since the idea is so novel, you should start with 'what is it?'. And you mention Listmania, without any reference to what that is, either. Thanks for the input, it gives me a new direction to go in. I wonder if the php page on the broadcasting site will be the same, whether using Javascript or iframes...
__________________
Pete Clark Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com |
|
|||
|
The reason I start the page with "what does it cost?" Is that amazon web services wanted to include blogfuel in their monthly newsletter, but insisted I clarify my revenue sharing model. The "what does it cost" was inserted to satisfy them and will drop out of the front page in due time. Thanks for pointing out my assumption that the users will know all the amazon features, I will link the listmania reference to the help file.
I have also had experience of using php output in an iframe see example here: http://www.rawdistribution.co.uk/pages/decks.html The iframe is in the middle of the topcrud section at the bottom, but just my luck, the feed from affiliate window is down at the moment so there is not much to look at right now. |
|
|||
|
The feed is up again now here is an example of it in an iframe:
http://www.rawdistribution.co.uk/pages/trucks.html |
|
||||
|
If you want to make it make compiant with XHTML strict and still wanted to give it the IFRAME look you could have them use the CSS overflow property.
Code:
.myContent {
overflow: auto;
width: 200px;
height: 300px;
}
if they can use PHP: Code:
<div class="myContent">
<?php include("http://yoursite.com/youfile.php"); ?>
</div>
Code:
<div class="myContent">
<script type="text/javascript" src="http://yoursite.com/yourscript.js"></script>
</div>
__________________
Inkblot D2 Digital Media |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |