Help - Search - Members - Calendar
Full Version: PHP include
Movable Type Community Forum > Additional Resources > Tips and Tricks
tomswinglerIII
...
nammer
Well, if your EntryBody is where you're placing the photos, then your template for your include would be
CODE
<MTEntries lastn="4">
<MTEntryBody>
</MTEntries>

And you would include that using PHP:
CODE
<? include '/path/to/file/lastfourentries.php' ?>


You could do the same thing with the Excerpt field if that's where you're placing your thumbnails.

Re: making thumbnails - I think you're going to have to do that either through MT, or upload the photo twice, once at one size, and once with a "photo-thumb" name in a smaller size - I've never moblogged, so perhaps your Treo user manual might have thumbnailing suggestions?

Does this help?

Donna
tomswinglerIII
I have a file called up.html that has the entry code in it. and my index file has the include line in it. I just need to know if anyone knows how to edit around the entry code to resize all that is in the included file. Something like:
CODE
TreoCam:
<alt "treocam" width="20" height="40">
<MTEntries lastn="4">
<$MTEntryTitle$>
Posted: <$MTEntryDate$>
<$MTEntryBody$>
<a href="<$MTEntryPermalink$>" target=_blank
name="comments">Comments</a> | <a href="<$MTBlogURL$>" target=_blank>View all</a>
</MTEntries></a>


That's kinda lame, but do you get what I mean now? The include is pulling this code from the up.html file the code above is in that file. So is there a way that it can be formatted/resized so that when it is included/pulled from up.html then it will be smaller than the actual entries? Does that make more sense? I guess I may have to get plugin's but I went the php way so I didn't have to bug my admin to take the time to install all these plug ins that are needed just to do this one little thing.....it is really cool tho.
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.