Help - Search - Members - Calendar
Full Version: Guest Blog
Movable Type Community Forum > Additional Resources > Tips and Tricks
FairyLights
I want to create a blog in my side bar to host a guest blogger. I know that I need to use some sort of import module trick, but I am really lost otherwise! Can anyone out there help me??? THanks in advance!
FairyLights
does anyone out there use a plug-in to do this?
TxFx.net
Easy... just create a new blog, which the guest blogger will use to post, and then use a PHP include or an MTInclude to call that file into your sidebar. PHP is preferable, because there won't be any lag... if you use the MTInclude, the guest blogger's post will only show up in your sidebar when you update your main blog.

So if you have the guest blog output the file "guest/guestblog.php", you would put
CODE
<?php include 'guest/guestblog.php'; ?>
to show it in your side bar. Search around here for "php AND include" and you'll get the idea.
FairyLights
thank you mark!!! I will try this today!
FairyLights
argh! what am I doing wrong?
This is what I have in the template I am exporting to:
CODE
<div class="sidetitle">
Guest Blog
</div>
<div class="side">
<?php include 'guest/guestblog.php'; ?>
</div>

and this is the index that I am inserting

CODE
<MTEntries lastn="15">
<$MTEntryTrackbackData$>

    <MTDateHeader>
    <h2 class="date">
    <$MTEntryDate format="%x"$>
    </h2>
    </MTDateHeader>

    <div class="blogbody">
    
    <a name="<$MTEntryID pad="1"$>"></a>
    <h3 class="title"><$MTEntryTitle$></h3>
    
    <$MTEntryBody$>
    
    <MTEntryIfExtended>
    <span class="extended">[URL=<$MTEntryPermalink$>#more]"[/URL]</span><br />
    </MTEntryIfExtended>
    
    <div class="posted">Posted by <$MTEntryAuthor$> at [URL=<$MTEntryPermalink$>]</a>
    <MTEntryIfAllowComments>
    | <a href="<$MTCGIPath$><$MTCommentScript$>?entry_id=<$MTEntryID$>" onclick="OpenComments(this.href); return false">Comments (<$MTEntryCommentCount$>)[/URL]
    </MTEntryIfAllowComments>
    <MTEntryIfAllowPings>
    | [URL=<$MTCGIPath$><$MTTrackbackScript$>?__mode=view&entry_id=<$MTEntryID$>]TrackBack (<$MTEntryTrackbackCount$>)[/URL]
    </MTEntryIfAllowPings>
    </div>
    
    </div>
    


</MTEntries>


I have even tried using the absolute path. Can anyone see what I am doing wrong?
kadyellebee
Are you getting an error? Is the template you are including the file into saved as a .php extension?

A link to your page might help us give suggestions. smile.gif

Kristine
FairyLights
ah yes, I always forget the link tongue.gif . this is the pageI am trying to put it on.

I am not getting any error...it just does not show up.
TxFx.net
Your index page has an "html" extension. In order to do a PHP include, it has to have a "php" extension.

Alternatively, if you have access to your .htaccess file, you could force it to parse .html files for PHP content.
~ro
How can I do this with an MTInclude? My pages are HTML because when I tried to use PHP, I got an internal server error.
blaze
According to the MT Documentation:
CODE
<$MTInclude file="guest/guestblog.html"$>
But remember that the information will not show on that page until it is rebuilt!

If you are planning on having content in the GuestBlog updated frequently, then you may want to consider using the Rebuild Plugin with the MTOtherBlog plug-in as discussed here.
Krapmeister
In Regards to the original post, is it possible to somehow use RSS/XML (I'm a real novice here) to include the "Guests" Blog from an external source ie. their own installation of MType or a Blogger blog?
LisaJill
You might like to look into MT RSS Feed for a solution to your query.
Krapmeister
QUOTE (LisaJill @ Mar 19 2004, 07:51 AM)
You might like to look into MT RSS Feed for a solution to your query.

Thanks LisaJill,

I have downloaded thr RSS Feed PLugin, but the instructions/doccumentation is virtually useless for someone like me with a non-programmers brain. I guess I need a bit of a walkthorugh on what code to put where.

I've tried the following:


<$MTRSSFeedTitle$>


But get nothing.. The site I am feeding on is setup correctly, but the code doesn't seem to want to work for me.


Sorry I didn't clarify this earlier, and also for such a big ask..

Cheers

K
Krapmeister
Sorry about the dodginess of the last post, I forgot to use the code tags. This is what I meant to include:

CODE
<MTRSSFeed file="http://www.thebeautifulfew.net/atom.xml">
<$MTRSSFeedTitle$><br/>
<ul><MTRSSFeedItems lastn="5">
<li><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a></li>
</MTRSSFeedItems></ul>
</MTRSSFeed>


Cheers

Krapmeister
LisaJill
I can not confirm that this works with atom feeds, and can find nothing in the documentation about it.

I haven't used this plugin and don't have the required modules to test this, so hopefully someone else can step in and assist you. I know tima posts here occasionally and I believe he's the creator of this, so perhaps he, or someone else knoweledgable, can help.

I have tried the examples directly from the local documentation at mt-plugins.org and get nothing - I suspect its the lack of the cpan modules causing the error for me - perhaps it is the same for you. Have you checked that you have the requirements and read through the rest of the documentation?

just fyi for future, you can edit your posts if you forget the code buttons, just type in [ CODE ] and [ /CODE ] (without the spaces) manually. =)
almuhajabah
I don't know a lot about RSS and XML, but I believe that the way that Atom feeds are written is sufficiently different from RSS 1.0 or RSS 2.0 that the RSS-Feed plugin would not know how to handle them. I think that Tim will have to come up with a new version of his plugin for Atom feeds.

In the meantime, if you're adventurous, you might want to look at the GetXML plugin, which says that it can pull in content from any type of XML document and that's what Atom is.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.