[Tutorial] Add button "To top" for members in topic view

Avatar

By TRACKER 29 July 2014 10:14

Member · 7 comments

Hello! This is my second very easy tutorial for You guys! Remember to create a backup of the file being edited.

If You like add button on the left side "to top" in topic view You must only...

Find in style/Core/templates/views/ - file called: viewtopic-posts.tpl this code:

<?php if (!$luna_user['is_guest']) { ?><div class="pull-right post-actions btn-group"><?php if (count($post_actions)) echo "\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t".implode("\n\t\t\t\t\t\t", $post_actions)."\n\t\t\t\t\t\n\t\t\t\t\n" ?></div>

Paste after this:

<div class="pull-left post-actions btn-group"><a class="btn btn-default btn-actions btn-xs" href="#">To top</a></div><?php } ?>

Done! Save viewtopic-posts.tpl and replace existing file on Your FTP.

Here is a screenshot (Do góry = To top in Polish language 😉):

qnpke1.jpg

Avatar

By Yannick 26 December 2014 08:47

Administrator · 1,390 comments

Well, this is going to be a build-in feature in Luna, through it will only show up in the footer for everyone. 😁


You can do anything

Avatar

By I-Mixail 26 December 2014 17:25

Member · 66 comments

I did differently.
23t4a6b.png


I am very bad know English....