News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

New Topic link in the post

Started by Mraza, August 06, 2009, 09:16:21 AM

Previous topic - Next topic

Mraza

hi if you wants to add a "New Topic" button to posts use this modification. This will show a quick link to create a new topic in same board.

Find in (./Themes/default/Display.template.php):
// Can they reply? Have they turned on quick reply?

Add before:
      // New Topic link within the post
      if ($context['user']['is_logged'])
      echo '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . '<b>' . $txt['smf258'] . '</b>' . '</a>';


if acceptable can any mod move this post to "Tips and Tricks" board.
Signature:
Old Software Engineers Never Dies, They Just Log Out...
! ! ! ! ! 5 Best Movies Thread ! ! ! ! !

Kays

Sorry to burst your bubble, but there's already a mod which does this.

http://custom.simplemachines.org/mods/index.php?mod=398

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Mraza

Signature:
Old Software Engineers Never Dies, They Just Log Out...
! ! ! ! ! 5 Best Movies Thread ! ! ! ! !

Marcus Forsberg

Topic marked as solved to prevent people from stumbling in and starting to give you support. :P

Advertisement: