Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 05, 2008, 09:40:44 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Displaying partial blogs and blog link  (Read 1070 times)
blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« on: May 10, 2008, 09:25:10 AM »

I am trying to essentially show a preview of a blog and if someone is interested in it they can click to read the full blog.  I was wondering if anyone had any thoughts on how that could be done without someone having to update the blog content for the preview everytime the blog changed.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3031



« Reply #1 on: May 10, 2008, 10:49:08 AM »

Are you looking to always show the latest posting, or to show a selected "good" posting? For the former, I'd be surprised if most blogware didn't include some function(s) to reach into the database and pull out the whole latest posting (or even a certain number of characters from the latest). The SMF discussion board software (usable as a blog, I'd say) has "SSI" functions to do this sort of thing. Of course, a drawback is that the latest posting may be spam or trash talk that you wouldn't want to showcase. In that case, you'd have to manually select some posting to show, and might as well just cut and paste into some file that your page embeds in blog style. Update it every day with a selected interesting post.
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #2 on: May 10, 2008, 03:13:57 PM »

Mr Phil, you are indeed an Uber Jedi and I am a friggen wookie.  Is there a different way of explaining it that may make more sense to my noobness?  If i am understanding you correctly, I should be able to go to blogger.com where my blog is and find out how to get a portion of it to the database that I have here and then just display whats in the database?  My site is www.blushifted.com if you want to look and see what I am trying to do in the recent blog area.  If you have any suggestions or things that I should research more, I would very much appreciate your advice.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3031



« Reply #3 on: May 10, 2008, 06:35:13 PM »

Ah, are you saying that the blog is hosted elsewhere, rather than under your account? If so, it might be difficult to grab the latest post. Possibly you could (in PHP) open a fixed URL of the blog's latest posting (without all the surrounding page), and read it in something like

Code:
// get first three lines of latest blog posting
$fp = fopen("http://www.blogger.com/posts.php?which=latest", "r");
$count = 0;
$first_lines = array();
while (!feof($fp) && $count++ <3) {
   $first_lines[] = fgets($fp, 1024);
}
fclose($fp);

If you have to get the entire page, it's a bit more work to discard all the stuff until you can get to the posting itself.

Of course, if the blog (and its database) are under your account, you should be able to get to it directly, either through some sort of blog interface call, or directly reading the database.

You'll have to tell us what blogware you're using, and whether it's all under your account or the blog is off somewhere else. At that point, someone familiar with that particular software can tell you how to proceed.
Logged

webweaver
Spaceship Navigator
*****
Offline Offline

Posts: 96


WWW
« Reply #4 on: May 10, 2008, 08:04:43 PM »

I'm probably more of a noob than you, but it sounds to me like maybe you want to incorporate an RSS feed from your blog to your web page and only show your most recent blog entry?

How to do it?  I have no idea but did find this link: http://www.askdavetaylor.com/how_can_i_add_the_ask_dave_taylor_rss_feed_on_my_web_site.html

or you might search rss feed to my web page and see what you get....

FWIW......

Webweaver
Logged
blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #5 on: May 11, 2008, 11:54:30 AM »

Okay, it sounds to like I can have a blog that is connected to my sight?  Right now I have a blog at blogger.com but I just started it and am in no way married to it.  So I can add it here and that would save me some trouble.  So, how would you add a blog to your website?  It sounds like I need to learn php.  Off topic, how does php fit into the asp.net world?
Logged
bryantrv
Jabba the Hutt
*****
Offline Offline

Posts: 544


« Reply #6 on: May 11, 2008, 02:12:58 PM »

I think you do need to use the RSS feed- I have a blog at http://rx4rv.com  and using the RSS feed through feedburner- http://feedburner.com , I publish snippets on my main html website at http://bryantrv.com .
It's really easy, just copy and paste some code. There are other ways to do it, that wouldn't have the feedburner logo in them, but it works for me, and I don't mind publicizing feedburner.
Logged

webweaver
Spaceship Navigator
*****
Offline Offline

Posts: 96


WWW
« Reply #7 on: May 11, 2008, 03:39:41 PM »

If you want to move your blog, you can download Wordpress via Fantastico into a folder named blog. 

There are also lot of comments on these forums on adding your rss feed to your main website. Try this one to which Mitch responded: http://www.lunarforums.com/lunarpages_webdesign_and_html/program_to_put_rss_news_on_my_webpage-t47540.0.html 

Sounds REALLY simple. ;_)

You don't really have to move your blog, but if you are not deeply commited to it, you might want to. 

I have been updating my web site and then adding a comment on my blog about what has been updated, but now wondering if I should just update my blog and have it feed into the main web site.  So glad you started this thread.  You have made me think differently about my whole site.  Don't know if I will do anything about it now, but gives me food for thought.

Webweaver
Logged
blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #8 on: May 11, 2008, 09:59:55 PM »

Okay, I started the blog gig by setting up wordpress in the applications folder.  Now when I try to do anything in the control panel its says that I dont have the neccessary permissions.  Is there a place that has a setup tutorial?  Would I do this at the wordpress site?
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6741



WWW
« Reply #9 on: May 12, 2008, 06:01:17 AM »

Are you getting errors from the WordPress control panel or somewhere else?  Give us a little more information on what your doing to pull up the errors and what messages they are sending to you and we'll be happy to help.
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #10 on: May 12, 2008, 03:18:20 PM »

when I go to login into the wordpress panel I login with the user and password that I setup.  It immediately comes back with you dont have sufficient permissions.  I may have set it up wrong.
Logged
blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #11 on: May 12, 2008, 04:27:10 PM »

Let me give you the info on how I started it.  I went into the applications folder and installed wordpress.  I then set up a user and a password.  And thats as far as I was able to go.  Then when I clicked on wordpress through the custom buttons it went to the blog and when I logged in it said I do not have permission.  Thats where its at.
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6741



WWW
« Reply #12 on: May 13, 2008, 05:22:17 AM »

Might drop in an e-mail to support@lunarpages.com so our support folks can take a look in there to see where the issue may be.  Thanks!
Logged

blushifted
Spacescooter Operator
*****
Offline Offline

Posts: 30


« Reply #13 on: May 13, 2008, 10:20:04 PM »

Thanks Mitch.  Always appreciate you non-noobish advice.
Logged
Guerry
Newbie
*
Offline Offline

Posts: 1


« Reply #14 on: May 15, 2008, 02:01:18 PM »

blushifted, create a new blog WP (Fantastico).

With WP you can display on your blog any external content (as HTML) via RSS.
See this examples on http://www.elcadillo.org/wp/

Sections : Webroll, ELCADILLO BLOGGERS,  LA GRILLA EN MEXICO, CARTONES DE GUERRY

These sections are hosted on wordpress.org and blogger.com





 
« Last Edit: May 15, 2008, 02:05:50 PM by Guerry » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM