How to include content of post from one WP blog into a post/page on another WP blog - copy

I want to present the content of a post in a post/page on another domain. The original post is updated regularly so I cannot use copy/paste. Is there a way to do this?
P.S. both blogs are mine so I have no copyright issues and access to code on both sites.
P.P.S I only need the content not comments etc.
Thanks in advance!

You therefore, as two instances, have two options
Write a piece of custom code to extract the post from the underlying wordpress db
and place it into your post.
As posts are output as rss you could use that rss to display the required post in the other blog, there are plugins for rss import such as http://wordpress.org/extend/plugins/rss-import/

Related

Merge Orchard Blog Into Existing Website

I'm trying to determine the best way to "merge" my orchard blog into my existing website. Currently the blog accessed outside the site.
I threw together a quick view in my MVC site that just loads the blog into an iframe. Any other ideas?
The blog is tuned up with a great theme and tons of mods & styling that matches my main site design to a T.
On the home page of my site, I'm using the RSS feed to output a list of the last 3 blog posts. My idea is that the user will click on a blog post link and go directly the view that hosts the blog in the inline frame.
I guess the only variable that I haven't handled yet is how to load up the correct page in the blog based on the link that the user clicked on my main site home page.
I've read other posts on this subject and it seems like the solution that is always offered is to merge all the code from the main website into Orchard which seems insane...I have a very large auction based website, taking all that logic & content and putting into Orchard is not an option.
Hope all that makes sense, thanks for the input. I can't think it would be a huge issue to "seamless" integrate my blog with my MVC site.
Orchard was never designed to be integrated into an existing application, so something like what you've done is what you have to do. The iframe however has a number of problems, such as its fixed size, and awkward navigation. It's better to integrate data than markup. It's now easy to build WebAPI controllers to expose Orchard data. You could consume that data in your application and render it there. That enables you to manipulate the data before rendering, which is of course easier than manipulating rendered HTML. For example, you can build your own link URLs so that clicking on a post's title goes to an action on your site that fetches the post contents rather than the Orchard post URL.
One final comment: It is a little weird that an auction website would need to integrate a blog in the middle of its own rendering. Shouldn't the blog be a separate section of the site?

how to get news full content from rss feed in j2ee

I am developing a site which is supposed to get the news content of other sites, something like this. but without redirecting to the host for reading the news content.
now the problem is that I don't know what is the best way to get the content completely. I know that I can use RSS feed for each site but it has only a short description of each news not the whole story. I have also read the related questions in SO like these:
How to get the full content from the rss feed in javascript
How to extract the full content from a partial content rss
but none of them solved my problem .
now I wanna ask what is the best way to get the whole content of news from different sites if it is necessary to go directly to them?
I am sorry because of bad english and if my question is not clear enough I can explain it even more
thanks in advance
You could use web scraping library like boilerpipe to extract content from news sites, but scraping breaks easily(if the target site changes layout for example) and there might be legal issues in extracting full content from other sites and displaying in yours.
Edit: I tried boilerpipe api demo and the library seems very smart at extracting articles from web pages.

Facebook Page Comments Using Graph API & Stream Filter

I have my site working using the Facebook Comments Plugin as you can see here http://www.amanzitravel.com/namibia-wildlife-sanctuary
I am trying to use the Graph API to retrieve the comments so they are on the page in a form that is beneficial for SEO (as outlined here https://developers.facebook.com/docs/plugins/comments/).
Ideally I want to see not only all comments, but replies to comments. According to the API (https://developers.facebook.com/docs/graph-api/reference/v2.0/object/comments) using filter=stream should do the trick.
However when I do that I only get the two most recent comments e.g. https://graph.facebook.com/comments/?ids=http://www.amanzitravel.com/namibia-wildlife-sanctuary&filter=stream as opposed to the default https://graph.facebook.com/comments/?ids=http://www.amanzitravel.com/namibia-wildlife-sanctuary where I get all the top level comments but none of the replies.
EDIT: Further to this, it appears to update itself some time later, but when another reply is added it goes back to displaying a subset of all the comments for a period of time. Its unfortunate because it means I can't rely on this to be accurate.
Is there anyway I can make this work properly?

How to define what will be inserted in share message?

I have an app with blog records per each user. I have add share button to my app, to give ability to post interesting blog records to users time line or to send to other user. But in default it takes image and text for share as it wants and not always correctly. So I find out that it can be dirven by meta tags (using for example "image" property to set image for share dialog). That's work ok on main page (where I'd like to make ability share with whole application), but on pages of blog records I cann`t customize it. meta tag should be in , but all info (short text and image of blog post) I get later in body, so I can insert it. How can I manage with this? Or may be there is another way to share content with?
What blog engine are you using? If it is a wordpress - try this plugin http://wordpress.org/extend/plugins/facebook-share-new/ from offician facebook docs http://developers.facebook.com/docs/. Otherwise I'd suggest to find a facebook plugin for your blog engine using google and install it.

vBulletin automatically reposting new topics as new threads with a 'Read more' link

I have a problem that vBulletin seems to be automatically reposting new threads in another forum.
The new threads have identical topic titles and show the first 1 or 2 lines of the original forum post with a 'More...' link to the original post.
The new posts are made under my user account.
What could cause this behavior? I have disabled pingbacks. It seems this is some sort of built-in behavior, since it's been an issue since I did maintenance 2 weeks ago. I have however no idea what it is I have done, that could have caused this.
(I will not post links for example purpose, as this might be considered spammy)
Sounds like you have enabled an RSS Feed for your forum?
I suspect that I could re-create your problem by adding the RSS feed for my vBulletin site (eg: http://www.mysite.com/forums/external.php?type=RSS2) to the RSS Feed Manager and have it post new entries as posts in one of my forums.
You don't mention which version of vBulletin, so I'm going to assume v3.8.x (v4.x might be slightly different). Login to your vBulletin admincp, then look for the RSS Feeds > RSS Feed Manager option on the left.
You should be able to disable or remove the feed in question.
To enable an RSS feed of your own forum's posts you must go to Admin CP -> Settings -> Options -> External Data Provider -> Enable RSS Syndication.
use https://mysite.com/forum/external?type=rss2 to your forum latest posts