News:

Wondering if this will always be free?  See why free is better.

Main Menu

Add A Link

Started by peterp, June 19, 2005, 06:17:51 AM

Previous topic - Next topic

peterp

Hi
I know nothing about php ::)

I want to add a "Start New Topic"  link next to the existing, "Reply" link.
I've added some borrowed code (twice) to the display template, the new code appears to have no effect on anything.

Can someone please show me where I am going wrong?

The code I have added after the "Reply" link is

  if ($context['can_post_new'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;board=' . $context['current_board'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new_topic.gif" alt="' . $txt[33] . '" border="0" />' : $txt[33]) . '</a>';
   
It's A Wonderful Word
hxxp:chat-group.com [nonactive]
hxxp:mmonroe.com [nonactive]
hxxp:chat-group.com/CGXMB/index.php [nonactive]

[Unknown]

There are topics about this already - have you searched?

-[Unknown]

peterp

#2
Thanks for the reply

I can find topics about adding links next to reply. the ones I find are all HTML links (hxxp:chat-group.com [nonactive]) type of link

I would need to put a link to every boards "post new topic" URL
That is not really what I am trying to do, I am trying to code in a "Post New Topic" link that opens the post link on the board I am viewing






It's A Wonderful Word
hxxp:chat-group.com [nonactive]
hxxp:mmonroe.com [nonactive]
hxxp:chat-group.com/CGXMB/index.php [nonactive]

Advertisement: