blog post code in asp.net - asp.net

I want to write a page where user's can write a blog post and publish it to the blog. I've downloaded blog engine .NET and looked at the code and I like the way they do it, but it's completely an overkill of what I need. What I need is only a title, author, date, and the blog post it self. I don't even want users to post comments or anything like that. My approach is to save all those blog post information into an xml and then when a page loads it loops around those xml files to show the blog post.
Is there a tutorial on how to do this online? Especially for doing blog posts.

If you want a leaner out of the box option there is Subtext
or if you want to start from scratch you could start with a code project sample blog engine: http://www.codeproject.com/KB/aspnet/abe01.aspx
Creating a blog engine from scratch always leads to adding more features that come out of the box in most blog engine.

Related

How to access a wordpress plugin page or add posts without doing it from the Wordpress dashboard?

I am a creating a website on WordPress that uses a plunging called H5P which allows the creation of interactive content. as in the picture below. However the creation of the content is currently only possible from the dashboard.
I would like to allow my website guests to use the plugin to create content but from a separate page and without letting them access or use the WordPress dashboard. In other words, I just want to show the users the section in green in the picture.
Similarly, Is there any way to allow the guests to create posts also without going from the dashboard? such as another page that the same fields to create a post but to be visited without going through WordPress dashboard?
Thanks a lot for any help you may provide
For creating post/custom post content from the front-end, one solution is to use the fol owing popular plugin and extensions,
Contact Form 7 plugin - a popular and simple approach to form designs in WordPress.
Smart Grid-layout Design for CF7 extension plugin - this allows you to design and build multi-column and multi-row grid layout forms to make your form more compact.
To see how this plugin can help you design better forms, see this tutorial on how to design a 2-column form layout.
This plugin extension was designed to fix the flaws of the CF7 plugin as well as improve its functionality, and as a result does a great many things. Once you install the plugin it adds a a tutorial section in admin dashbaord with a list of all the online tutorials available to learn how to use it.
Post My CF7 Form extension - allows you to map a CF7 form to a post or a custom post in the back-end.
To map a form to an existing post, please follow this online tutorial.
To map a form to a custom post type, please follow this tutorial.
The plugin also allows you to map dropdown lists to taxonomies, files to post thumbnails, and many more options. To understand how to do this, see this playlist of tutorials.

Integrating comments from Facebook posts back into Wordpress

I run a Wordpress site, and we also post all our articles to Facebook. I was wondering if there's a way to automatically fetch comments made on Facebook shares of articles posted on the site back into the comment section of the article on Wordpress. Essentially, I want to consolidate all comments into one format on the site. Furthermore, if someone makes a comment on the article on Wordpress, I would like it so that it would also post onto the "official" share of the post on Facebook on the page attached to the site. I don't particularly care for keeping the built-in comments on Wordpress.
Currently I use Disqus and that has a Facebook login, but it doesn't consolidate comments from Facebook shares of the article onto the blog. Is this doable at all?
Read the instruction
https://developers.facebook.com/docs/plugins/comments
You can import facebook post comments to blog

Wordpress blog snippet on HTML web page

Trying to figure out if there is a way to take a snippet of a wordpress blog, same site, same hosting, and plug that into a pure HTML page.
Example... I want to show the title of the blog, and first 150 characters. With a link to ..."read more" which would take the visitor to the actual blog.
Widget? or custom type of coding?
One way that WordPress exposes blog output to other applications is through the RSS feed.
It is often available by URL at
"http:// your-Wordpress-Root-URL.com/ feed".
You can use that URL in a 3rd-party widget that you use via HTML/JS on any HTML page.
They'll give you the code snippet to drop in your page.
And they'll have different options to customize things like the number of blog entries to show, and the length to preview - as you mentioned.
I'll paste a couple links to start with, and you can easily search for more online with something like "RSS feed widget" in google.
https://www.rssinclude.com
http://www.webrss.com/
http://www.rssfeedwidget.com/

How to add custom URLs to my WordPress template files?

I'm developing a WordPress theme and I need to have a custom URL for some kind of content.
For example, I need to have a page to show some article details. Now, i've created a page template called "Article", and so i've to create a new page and give it the page template "Article"
(I get the url http://mydomain.com/article?id=123)
It works fine, but now i'm having dozens of this pages, and it's a mess to create them all on every installation of this theme, so i want to do it in my theme code.
I saw something near that on BuddyPress, where you can use /member/ and it redirects to a member page. I just wanna know how to do so.
Thanks!
If you are running wordpress 3.0 I would recommend making a custom post type for your articles. That would allow you to control the URL in the way that you want and also allow you to use more sophisticated full text urls if you wanted to.
Here are some links to some tutorials about how to make a custom post type to get you started:
http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0
http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/
The second one has an example file that you can download and edit to help you get started.
Cheers,
Paul

Wordpress Not Publishing Posts To Custom Template

I am building a theme that has a lot of custom templates, like every page. Ridiculous, but for some reason the template I made for the "postings" page is not getting the posts? I have set the post page in reading preferences, and I have set the page to use my template, but it still publishes posts to a default template. Of all the customization I built into this I did not expect the blog part to give me trouble! lol Anyone run into this kind of thing?
Thank you.
The way I usually to it is to have standard setting in reading preferences.
Build my front-page in index.php
Build a template for blog posts
Add a page and assign the blog post template
Of course you then have a kind of placeholder page sitting amongst the other pages, don't really like that. But it works.

Resources