Help - Search - Members - Calendar
Full Version: multiple blogs & their entries
Movable Type Community Forum > Additional Resources > Tips and Tricks
MsBHaven
for each blog i made a new index template named recent with the output file being recent.php with this in it:

CODE
<div align="center">
<h3>blog name</h3>
</div>

<div align="center">
<p>
<MTEntries lastn="1">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTEntries>
</p>
</div>


in action here: http://blog.aliehs.com/recent.php

then in the page that's going to display the recent entries i named it recent-includes.php with a full path to each blog's recent entry page like so:

CODE
    <? include("/home/domain/public_html/blog/recent.php"); ?>
    <? include("/home/domain2/public_html/blog2/recent.php"); ?>
    <? include("/home/domain3/public_html/blog3/recent.php"); ?>


in action here: http://aliehs.com/recent-includes.php

i have one question is there a faster way to do this... is there an mt-plugin that does all the work for you? or ... is that it?

with the way i've done it - the css from the other blogs isn't being used so the css from the main site is being used and not overrided (sp?) does this make sense?
ronincyberpunk
Absolutely! I've got just the plugin for you (not that I did it, but simply I know of it). It's called OtherBlog And it will prove to make your life much easier.

It's very well done and very well explained, go see if that works for you, also if issues arise with the plugin check the plugin directory for discussion on it.

Hope this helps,
Ronin
MsBHaven
so the otherblog plugin works for blogs on other domains....?
girlie
The plugin would only work for blogs housed in the same MT installation.
MsBHaven
2 blogs currently share the same blog installation but prolly for not much longer... and one is on another domain.

so i'm better doiong what i've been doing? eh..?

wink.gif
kadyellebee
You said:
QUOTE
with the way i've done it - the css from the other blogs isn't being used so the css from the main site is being used and not overrided (sp?) does this make sense?


Can you explain what you do want to see?

When you include files with PHP into an HTML document, they inherit the design of the HTML document. If you want to make the files have their own look, you could put inline styles into each recent.php (like <div style="background-color:purple;"> </div> around your whole recent.php code.

Kristine
MsBHaven
i figured out what i needed to do.

i've really started getting into php and stuff. phpmydadmin is quite the interesting thing.

instead of using index.php?updates... i had to use updates.php?z=updates which i know is not the best but ... so um this is the finished product

http://aliehs.com/updates.php?z=updates

thanks to everyone that replied.
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.