Advertisement:

Author Topic: Re: How can I make this button a link?  (Read 1273 times)

Offline Bobby_Boulders

  • Newbie
  • *
  • Posts: 2
Re: How can I make this button a link?
« on: October 01, 2017, 10:59:15 AM »

Code: [Select]

<a href="http://.................."><button type="button" name="" value="" class="css3button">Message Board Forums & Chat</button></a>


I have been looking throughout the forum to add a navigation button once clicked it would open a hosted chat window. not sure where the script goes either.
Will this create a menu / navigation button and open into a new popup window also.

Thank you in advance for any help or advise given.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,107
  • 'Tis the gift to be simple
Re: Re: How can I make this button a link?
« Reply #1 on: October 01, 2017, 04:25:28 PM »
If you want to add the button to the main menu, the button array is in Subs.php, look for 'all the buttons'.  This code opens a popup window containing a file uploader -

Code: [Select]

'uploader' => array(
'title' => 'Uploader',
'href' => 'javascript:window.open(\'http://www.domain.com/forum/upload.htm\',\'popup_uploader\',\'height=460,width=620,top=120,left=200,scrollbars=yes\');void(0);',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),


Offline Bobby_Boulders

  • Newbie
  • *
  • Posts: 2
Re: Re: How can I make this button a link?
« Reply #2 on: October 01, 2017, 04:42:03 PM »
Thank you so much