SMF Mobile Community

SMF4Mobile Site => Site comments and suggestions => Topic started by: Bencuri on November 29, 2020, 09:08:15 pm

Title: How to add custom block after first and last post
Post by: Bencuri 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?
Title: Re: How to add custom block after first and last post
Post by: vbgamer45 on November 29, 2020, 11:53:19 pm
In display.template.php

Add before
Code: [Select]
echo '

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