News:

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

Main Menu

Quick Links to topics

Started by lebisol, October 08, 2006, 12:21:05 PM

Previous topic - Next topic

lebisol

Is it possible to have a short links automatically link to topic # in manner of:

topic=28393.0
where the preceeding ULR is automatically assumed to be http://www.mysite.com/forum/index.php?

vs. having a whole URL

http://www.simplemachines.org/community/index.php?topic=28393.0


Thanks for your time!
All the best!

Oldiesmann

Yep.

Just link to ?topic=28393.0 (or similar) and it will work fine.
Michael Eshom
Christian Metal Fans

lebisol

#2
I guess that answers that question  ;D

One follow up question would be is there a mod that would display topic # next to the Title?
eg. this thread here:
==============================================================
Author Topic: Quick Links to topics  (Read 12 times) ?topic=118921.0
--------------------------------------------------------------------------------
..
...

.
==============================================================

This way users don't have to fish it out the URL but easily copy-paste.
Thanks so much!
All the best!

codenaught

If you are using 1.1 RC3 (other versions/themes may vary a little bit)

Open: Themes/theme_name/Display.template.php

Find:

<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>


Change to:

<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' &nbsp;(', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ') <a href="', $scripturl, '?topic=', $context['current_topic'], '.0">?topic=', $context['current_topic'], '.0</a>
</td>
Dev Consultant
Former SMF Doc Coordinator

lebisol

Thanks akabugeyes,
world of difference when you know where to look....
Thanks again for the help guys, this makes a creating refering links to posts that much easier!
I am suprised that this is not a visible option throuhg admin of boards.
In any case, thanks for the attention to this post.
All the best!

Advertisement: