TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 119
  • Total: 119

Creating Buttons with TP 1.0 5-1 & SMF 2.0RC3

Started by cralor, April 25, 2010, 07:55:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cralor

www.dbgc.tk/forums

If you click "Chat", it thinks you're visiting "Home". I'd like to fix that :)

robbie93

cralor what chat are you using?  it would be easy to show us the url of the chat itself

cralor

http://dbgc.tk/forums/index.php?page=2

There is the direct link, although the problem has nothing to do with the actual chat software.

IchBin

You add it the same way you would in SMF1, only in Subs.php. There is a section right beneath the buttons that shows you how to set actions. You'll need to add some custom code to make your button highlight.

if (isset($_GET['page']) && $_GET['page'] == 2)
   
$current_action = 'chat';

Crip

#14
Try ::

'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . '?page=2',
'show' => true,
'sub_buttons' => array(
),
),


Or :



'chat' => array(
'title' => $txt['chat'],
'href' => $scripturl . 'http://dbgc.tk/forums/index.php?page=2',
'show' => true,
'sub_buttons' => array(
),
),


?  ?  ÷
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



cralor

Quote from: IchBinâ„¢ on April 25, 2010, 11:29:06 PM
You add it the same way you would in SMF1, only in Subs.php. There is a section right beneath the buttons that shows you how to set actions. You'll need to add some custom code to make your button highlight.

if (isset($_GET['page']) && $_GET['page'] == 2)
   
$current_action = 'chat';


That's what I was looking for :) Thanks!

Sorry Crip... I guess I wasn't that descriptive :) Thanks for your help though!!

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

hehe, getting there slowly Crip. :) It's hard to articulate what one needs some times. Sooner or later one of us will get it. :D

lurkalot

#19
Quote from: Crip on April 25, 2010, 09:05:21 PM
easy way , copy + paste [Home] tab and then add your [name] + URL

Easiest way I've found is to use these two mods,

Custom site menu Compatible With: 2.0 RC1.2, 2.0 RC2.  You'll need to install it in emulate mode.  Runs fine on my RC3 install.

And this one to adjust the order of your menu buttons,  Menu order  Compatible With: 2.0 RC2, 2.0 RC3

Couldn't be much easier than this. ;)

Thanks to ozzie for pointing these out to me. ;)  http://www.smfarcade.info/forum/index.php?topic=6941.0

This website is proudly hosted on Crocweb Cloud Website Hosting.