May 24, 2019, 06:07 am

News:

Keep an eye on your notifications page. It can get huge.


Add button in Nav Bar

Started by Ronald, May 12, 2019, 03:56 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ronald

May 12, 2019, 03:56 pm Last Edit: May 12, 2019, 06:45 pm by Bigguy
I added a Chat Room to my forum, I'd like to now add a link button in the nav bar.

How is this done.

Thanks

Ron.

Oldiesmann

Cincy Space - now open! https://www.cincyspace.net

Ronald

Thanks basically the same, I added one line to make it work.

Thanks

lesmond

May 12, 2019, 06:02 pm #3 Last Edit: May 12, 2019, 06:04 pm by lesmond
in source/subs.php

find
Code (Find) Select
'home' => array(
 'title' => $txt['home'],
 'href' => $scripturl,
 'show' => true,
 'sub_buttons' => array(
 ),
 'is_last' => $context['right_to_left'],
 ),
add after
Code (add after) Select
'chat' => array(
 'title' => 'Chat',
 'href' => 'https://google.com', /*replace with your own link*/
 'show' => true,
 'icon' => 'chat.png',
 ),
replace the google link with a link to your chat room

add the icon below to your image folder