Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Code to display content + give inbound links
Old 06-03-2009, 06:21 AM Code to display content + give inbound links
Novice Talker

Posts: 9
Trades: 0
Hi guys,
We want to create some code which users of our site can put on their own sites, blogs etc. This code will display dynamic content from our site plus fixed links to our site (to give us inbound links).
How could this be done?

We thought about simple iframes. But then the links inside the iframe would be seen as links coming from our site, instead of from the users site/blog, right? (Because the iframe is not being spidered of the search engines along with the page that it is displayed on, but as a page on its own.)

Another solution could be using a javascript. I believe this is what Google uses for their Adwords.
Does a search engine follow these links inside a javascript, and give them the same value as a regular link?

Kind regards
Chrisper
chrisper is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-03-2009, 08:13 AM Re: Code to display content + give inbound links
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
javascript is ignored by search engines.
No need to go further in that direction.

The only way would be to integrate this at a server level (php, asp or such).
You develop the functions, and give the users an API, and the users then need to implement this API in their site.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-03-2009, 10:31 AM Re: Code to display content + give inbound links
Novice Talker

Posts: 9
Trades: 0
Thanks tripy.
Is it hard to set up such an API? (I have never used such before.)

It just needs to do one query in our mysql database (only "select"), and then display this data along with some fixed text.
How much time do you think it would take to develop such?
chrisper is offline
Reply With Quote
View Public Profile
 
Old 06-03-2009, 10:53 AM Re: Code to display content + give inbound links
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
It can be as easy as you want.

You could simply have one page that generate the html code (with absolute links to elements, like image source) and have your users make an
PHP Code:
$html=file_get_contents("http://www.somwhere.com/content.php?userid=123456");
echo 
$html
up to a full SOAP or REST service with XML negotiation.

Of course, this method implies that the user have access to file_get_contents() with url's, which can be deactivated by the server admin.
This might be a drawback.
But in the case than file_get_contents() is locked, alternatives can be implemented with sockets, or curl.

In this case, I'd estimate the time to half an hour, up to 3 weeks, depending of the complexity of your internal system and the site that comes around it.

But if you are unsure, stick with the simple way.
Simple is good, simple is simple.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 06-03-2009 at 10:56 AM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Code to display content + give inbound links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.29491 seconds with 12 queries