Customizing SMF > Modifications and Packages

Post Seperator (now Compatibility With "smf 2.0")

(1/28) > >>

islam2hamy:
Link to ModPost Seperator
Old Author : Runic - New Author : islam2hamy
Description:

  This mod gives posts a new look, it seperates the posts... the screenshot attached shows the mod in action on my newest theme Classy, as the mod only modifies the Display.template.php it will work on most themes.

Thanks to Nascar for giving me the idea.


Compatibility With :
 
 smf 1.1.X & smf 2.0

[unplugged]:
This really separates the posts nicely. Thanks!

For the same thing in SMF2.0 Beta4:


--- Code: (Display.template.php) --- // Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

echo '
<div class="clearfix ', !$message['first_new'] ? 'topborder ' : '', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', ' largepadding">';
--- End code ---

and replace it with:


--- Code: --- // Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])

echo'<div id="forumposts">
<h3 class="catbg3">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
<span>', $txt['author'], '</span>
<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
</h3></div>';

echo'<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';

echo '
<div class="clearfix ', !$message['first_new'] ? 'topborder ' : '', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', ' largepadding">';
--- End code ---

islam2hamy:
loool thank you,
that is very cool.  ;D

brandonroy:
I like it but... it doesn't look right on my forum theme because of some grey color that's showing up..

See?

http://i40.tinypic.com/15p49pv.gif

filament:
this is something very useful and should be in original.
very nice job !!

Navigation

[0] Message Index

[#] Next page

Go to full version