News:

Wondering if this will always be free?  See why free is better.

Main Menu

Post Notifier

Started by live627, February 09, 2014, 08:25:22 PM

Previous topic - Next topic

samborabora

Quote from: live627 on July 18, 2015, 07:01:23 PM
You can grab the html from that template at the bottom of the file and move it where you want.

So, if I put this: function template_post_notifier_above()
{
global $context;
echo '
<script type="text/javascript">
var iLastMsg = ' . $context['topic_last_message'] . ';
</script>
<div id="topbar">
&nbsp;
</div>';
}
function template_post_notifier_below() {}


into display.template.php, it should work?

live627

Just the echo statement


echo '
<script type="text/javascript">
var iLastMsg = ' . $context['topic_last_message'] . ';
</script>
<div id="topbar">
&nbsp;
</div>';

samborabora

Quote from: live627 on July 18, 2015, 11:40:01 PM
Just the echo statement


echo '
<script type="text/javascript">
var iLastMsg = ' . $context['topic_last_message'] . ';
</script>
<div id="topbar">
&nbsp;
</div>';


OMG thank you sooo much, this is finally just how I need it!!

Advertisement: