Include selected parts of an external site - php

I have gotten a question from a friend who has a website and a blog (Wordpress). They are on completely different domains. As it is now, each time she enters a new article on the blog, she manually has to update the "News"-section on her website. Now, she would like it to update automatically. So when she updates her blog, the newest article is also shown on the website.
Is it even possible to achieve this and can you advance even further, like letting say the three most recent articles display in the website?

Wordpress has a buil-in RSS system. Use that blog RSS on your other site to automatically show them as news.
If you want to manually create it, here is a good manual on how to start that.

Yes, this is called web syndication
Many blogging frameworks already offer syndication support out of the box, using RSS, Atom, or a comparable system.
All you need to do is get the CMS on her website to read the syndication of her blog and fetch the latest articles from it.

Related

Use Wordpress or another CMS within a web application?

Apologies for the broad question, but I don't know where to start. I have a php web application for members with various functions and features. On the dashboard, I need to implement some dynamic news - the kind of news that that non-developer can write and publish without any interference with the source code.
Can I implement Wordpress into my existing app so that authors can login, write then publish so that my dashboard can display the latest posts?
At its most basic level, I'm thinking:
a new subfolder for Wordpress with its own separate database.
a plugin to display the latest posts content only
an iframe on my dashboard to display the output of that plugin
But all that seems like a very hacky workaround. Is there a more native way of doing this? Or is there another CMS library that could achieve the same result?
I have a solution that I am running with. It's a separate Wordpress site with the latest posts accessed via the built-in API (https://developer.wordpress.org/rest-api/reference/posts/)
I will be getting all the posts in a category with:
curl https://example.com/wp-json/wp/v2/posts
Then storing the posts in array before looping through that array to display the title and content on my dashboard with:
curl https://example.com/wp-json/wp/v2/posts/<id>
where <id> is from the first call.
This is clean, native and serves the exact purpose I need. The member info, while secured doesn't need to be top-secret, so we're just using the Wordpress password-protection with the same password for all posts so as long as the API calls are server-side with https, the security works too :)
Looks like you want Dynamic News Feature in your existing PHP Web Application.
And you want to build that specific feature in Wordpress.
I don't think it's a good idea to use Wordpress CMS for small features like this.
IF you already have full functional PHP Web Application then I would recommend to use same Web Application to build Dynamic News Feature which will allow users on the site to post.
I don't think that's very complex.
IF you want to get into Wordpress ecosystem then you will need to convert your PHP Web Application into Wordpress and then you can build additional functionality.
I think that's the ideal way to go. Let me know if more questions. Thanks.

Integrating simple PHP blogging system into existing website

I want to, create blog page in my website.
There are bunch of huge blogging platforms such as: Wordpress, Blogger ... But the problem is, they are offering a loads of unneeded functions. Of course, I can create simple blog. But it will cost a lots of time and I don't want to reinvent the wheel.
So what I need is, "core" functions of blogging system such as:
Adding, removing, editing posts, inserting attachments, images o posts
Pagination
I don't want to integrate wordpress because of reasons that I explained above.
Any suggestions?
I used cutewnews for a while when I was new to coding (http://cutephp.com) it's pretty much the same as a blogging system. Create posts, edit posts, archive posts, categories, template is very customizable, allow/block comments, require users to register in order to add comments, block IPs, WYSIWYG editor, etc. It's all done in the back end and then you add a few lines of code in your page and the posts will appear. You can also designate how many you want to display per page. It's simple but effective and free. I believe there is a link at the bottom of the script going back to http://cutephp.com/ but you should be able to find it and delete it. It takes about 2 minutes to install and get set up. You don't even need mysql. Will work with any php frame work or coding style as long as you have the ability to create your own blank page where you can plop the code.

CodeIgniter + Wordpress + phpBB + Facebook

I've been working on a home project using CodeIgniter Reactor, and have come to a point where I'm going to need to implement whole set of features that ideally will work via one single sign-on system for users. 2 of these features will be custom features that rely on user registration, the other 2 features are pretty standard feature requests. I could write these 2 new features myself, but that would take a while, and I feel like I'd be re-inventing the wheel, given the feature sets of the alternatives out there. I wonder if I'm better off using existing solutions, using their user registration/sign-on system, and hooking my new features into that system.
The key standards requirements are:
A blog system - obvious answer here is to use WordPress, and use the WP Pages for the more static content but updateable content. Users will be able to comment on blog posts.
A forum - In addition to commenting on individual blog posts, they will be able to start up their own discussions about subjects. The obvious thing here is 1) one user login for both the blog and the forum, and 2) Upon creating a blog entry, a forum thread is created, and all comments on the blog entry are actually posts on this thread.
Facebook integration - the user login/registration will allow the user to connect via facebook. (I may add twitter integration later), with any comments posted on a blog entry optionally being posted to their facebook wall.
I have been trying to look at http://www.wp-united.com, which supposedly integrates WP and PhpBB, but the site is down. I've also been looking at facebook plugins for wordpress, which would cpver the majority of my requirements. Integration with phpBB or some other forum could come later.
My question really is: has anyone had a go at doing this amount of integration/hacking of wordpress/phpbb and facebook before? Did it save time, or did you opt for a completely custom solution?
It's good not to re-invent the wheel, but in your case you are merging a heavyweight platform (Wordpress) with a library (CodeIgniter).
I really think there's little value in what you're doing. Here's why
Wordpress is more than just a blog; with plugins you can turn it into a full-fledge CMS. It's also very heavy.
Wordpress is coded as a stand-alone application. Incidentally, there are forum plugins for WordPress
My suggestion would be :
Use Wordpress, use the Pods plugin for routes and ORM functionality
Use CodeIgniter, find a lightweight blog plugin for CodeIgniter

Wordpress as CMS, Without Using It As Website Platform

What is the best method, if there is one, of using Wordpress as a CMS for users to input data while not actually building the website on the Wordpress platform?
One possible solution I've found is using a PHP class called "WPGet" (http://peter.upfold.org.uk/projects/wpget) which fetches directly from the database.
You could use Wordpress' API calls, but depending where your "custom built application" sits, it might require including numerous files in your code (not very fun/efficient)
I have a site that requires constant updating. It's a golf club site: results, news etc all updated via wordpress by the club, or individuals with interest (juniors, ladies, seniors each have a mini-site) - and not always by me - so i have a front end, the standard site with static .php pages, which i then feed data to, by calling on posts marked in categories from wordpress, relevent to the site's page. The coding is easy and it's a quick and simple way of using wordpress as a cms, but it does strip away most of the Wordprss functionality, eg. comments, But I even use it for galleries with lightbox.
Like i say - it's nothing major, but sounds similar to what you're asking...?

Wordpress Digg-Like Voting System Plugin

I just found out about BuddyPress (a collection of plugins that convert a WordPress MU install into a social network) and now I was wondering if there are any Digg-like voting plugins for WordPress. This would eventually integrate into a BuddyPress website, where the site members would submit, vote and comment on stories (much like Digg).
I have a feeling I will end up having to build this from scratch, but since the site will be built on WordPress, I was wondering if there were any plugins already available that add this functionality. So far I have come up empty in my search. I did find a Wordpress blog that had this functionality WpVote. It even creates thumbnails of the story webpage automatically (I'm assuming) using websnapr. I browsed through the page source and didn't seem to find any hints of a WP plugin that they are using.
I've successfully used TDO Mini Forms for user submissions combined with Vote it up to build a digg-style site.
You can create a "top votes" page using the MostVotedAllTime_Widget() function from Vote it up, or use the SortVotes() or GetVoteArray() functions to build and style your own top votes list in a customised page template.
You'll find the full list of available functions in /vote-it-up/votingfunctions.php
BuddyPress Links is what you're looking for:
http://wordpress.org/extend/plugins/buddypress-links/
Or you can try:
Pligg Voting CMS
when i was start to build my own social bookmarking, i using voteitup plugin but if you want to build your own vote button you can visit bavotasan.com and search post "simple-voting for-wordpress-with-php-and-jquery"
take a look at my own social bookmarking using it : http://nestdev.com
http://prothemedesign.com/themes/nominate-for-wordpress/
is a premium theme I've come across but never used. It's a WP version of Digg and I believe pretty good.
Personally I use Drigg which is a Drupal version of Digg. See it in action here: http://weblinks.myfriendshotel.com Unfortunately, however, WebSnapr have just changed their code so the site is no longer showing thumbanails but hopefully as a 'non-programmer' I'll find a solution soon...
Is this what you're after?
http://www.tevine.com/projects/voteitup/
I think [wpvote][1] use drigg module for drupal. I've just found buddypress plugin which has similiar function like digg social bookmarking. more detail
Not sure if this is still relevant or not but the theme used for WPVote.com has now been released on Pro Theme Design - http://prothemedesign.com/themes/nominate-for-wordpress/

Categories