XF 1.5 Can I add a link to a thread list?

rhodes

Active member
I have a forum with a couple of threads. What I would like to do is to add an additional link at the bottom of the thread list. Like so:

- thread 1
- thread 2
- thread 3
..
- thread n
- Link to another XF page / thread

XF already has a similar behaviour when you move a thread. I would need sth. like the redirect link.

Any ideas?
 
This can be done with simple template modifications.
In thread_list after
HTML:
<xen:foreach loop="$threads" value="$thread">
      <xen:include template="thread_list_item" />
</xen:foreach>
add whatever link you want. It will popup at the end of the thread list.
If you want a proper styled link, you'd need to populate an array with the needed data and pass it through thread_list_item.
 
I don't understand the difficulty here. You can add any link there and wrap it in custom css. Something like
HTML:
<span class="threadLinkCss"><a href="....</a></span>
<span class="threadLinkCss"><a href="....</a></span>
<span class="threadLinkCss"><a href="....</a></span>
As you can see, they have all the same css class, thus they will have the same apperance. You will need to define your threadLinkCss obviously once in your style.
You could simplify that with creating a marco template like thread_list_item, but that's a bit more complicated.
 
Top Bottom