Custom Additional Entry Text Message
If you have PHP on your server, you can create custom messages to forward people to the extended entry of your post.
/*
<?php if (stristr($PHP_SELF, "index.php")) { print ("<br />Click \"more...\" to see the photos."); }?>
This only works if your individual and other archives are not named index.php. Also, since my convert line breaks, the code has to be on one line.
A more elegant solution to have a custom Additional Entry text (with a default setting) might look something like this:
*/
?>1. in your index template, where you have the <MTEntryIfExtended> tag, write in some PHP code like the following:
<MTEntryIfExtended> <span class="extended">[<a href="<$MTEntryLink$>#more"><?php
if (isset($viewMore))
{
print $viewMore;
unset ($viewMore);
}
else { print "more..."; }
?></a>]</span><br />
<br />
</MTEntryIfExtended>
2. in your entry, if you want a distinct message, insert anywhere in your Main Entry Text PHP code like the following:
<?php $viewMore = "click here to view photos"; ?>
Note that if you have more PHP code, and line breaks get converted, you would need to put everything that's PHP on one line in order to please the PHP gods.
Posted by Richard at 05:20 AM
NICE! you have inadvertently solved another php prob I was gonna ask you about, one that has nothing to do with MT, but still, thanks!
Posted by: jesse on July 3, 2002 05:40 PMI'd been hoping for something like this - but I also use the collapse entries and comments script. Can these two be used together, or am I stuck with one or the other?
Posted by: Meredith on July 30, 2002 02:18 PMPost a comment