Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Bobby_Boulders on October 01, 2017, 10:59:15 AM

Title: Re: How can I make this button a link?
Post by: Bobby_Boulders on October 01, 2017, 10:59:15 AM
Quote from: Sir Osis of LiverĀ on May 18, 2017, 05:05:00 PM



<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.
Title: Re: Re: How can I make this button a link?
Post by: Sir Osis of Liver 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 -



'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'],
),


Title: Re: Re: How can I make this button a link?
Post by: Bobby_Boulders on October 01, 2017, 04:42:03 PM
Thank you so much