Author Topic: How to add custom block after first and last post  (Read 390 times)

Bencuri

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
How to add custom block after first and last post
« on: November 29, 2020, 09:08:15 pm »
I want to add custom block to first and last posts in the mobile theme, but I cannot find the corresponding like to insert the code. It should be somewhere in displaytemplate.php I guess. In case of the Core theme it is there, and the block has to be inserted to the default code of: <a id="lastPost"></a>';

But in the Smf4Mobile theme I don't find "lastpost" definition anywhere. What did you replace the definition with?

vbgamer45

  • Administrator
  • *****
  • Posts: 198
  • Karma: 3
Re: How to add custom block after first and last post
« Reply #1 on: November 29, 2020, 11:53:19 pm »
In display.template.php

Add before
Code: [Select]
echo '

<script type="text/javascript">
displayImageFix();
</script>';