TinyPortal

Development => Support => Topic started by: reyver on February 19, 2011, 06:16:35 PM

Title: missing Tab in theme
Post by: reyver on February 19, 2011, 06:16:35 PM
In default theme of SMF it works fine but when i try another theme like FLint by Crip and Overide by DZine "Forum Tab" is missing... how can i fix this thanks
Title: Re: missing Tab in theme
Post by: Freddy on February 19, 2011, 06:20:27 PM
Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581)
Title: Re: missing Tab in theme
Post by: IchBin on February 19, 2011, 10:43:07 PM
As Freddy said, the posting guidelines help us to know what version of SMF you are using in particular. For now, I'm guessing you are using SMF1.x. For custom themes you have to add a forum button in SMF1.x.

How to add a Home button or a new tab? (http://www.doc.tinyportal.co.uk/index.php?topic=30)
Title: Re: missing Tab in theme
Post by: reyver on February 20, 2011, 02:07:30 AM
sorry guys for my post... and thanks for the help, so TP only works with SMF. 2.0 without editing the theme? sir IchBin the link you supplied is not working with me. thanks
Title: Re: missing Tab in theme
Post by: IchBin on February 20, 2011, 02:33:40 AM
Sorry, I forgot our Docs site isn't working.

Should pretty much be the same way that SMF shows at their site. The only thing you have to remember is that a custom theme can often use slightly different code. So make sure you copy the format of the button code in the theme, instead of using the default theme code.

http://docs.simplemachines.org/index.php?topic=564

Title: Re: missing Tab in theme
Post by: Lesmond on February 20, 2011, 11:51:41 AM
Our Docs site is now working How to add a Home button or a new tab? (http://www.doc.tinyportal.co.uk/index.php?topic=30)
Title: Re: missing Tab in theme
Post by: reyver on February 20, 2011, 12:43:10 PM
appreciate the help guys thanks  a lot
Title: Re: missing Tab in theme
Post by: reyver on February 20, 2011, 02:14:34 PM
Good day again im trying to follow the docs you supplied but in the first step i cannot find the strings

if (in_array($context['current_action'], array('links', 'search', 'admin', 'arcade','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'tpadmin')))
      $current_action = $context['current_action'];

in the php file of my theme
Title: Re: missing Tab in theme
Post by: Lesmond on February 20, 2011, 03:44:22 PM
You still haven't told us what smf and tp version you are using Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581) would help us more to help you, thanks
Title: Re: missing Tab in theme
Post by: reyver on February 21, 2011, 07:30:49 AM
im using SMF 1.1.13 and TP 1.0 RC1
Title: Re: missing Tab in theme
Post by: reyver on February 22, 2011, 09:01:52 PM
hello
Title: Re: missing Tab in theme
Post by: ZarPrime on February 23, 2011, 01:16:39 AM
Quote from: reyver on February 20, 2011, 02:14:34 PM
Good day again im trying to follow the docs you supplied but in the first step i cannot find the strings

if (in_array($context['current_action'], array('links', 'search', 'admin', 'arcade','calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'tpadmin')))
      $current_action = $context['current_action'];

in the php file of my theme

In the Flint12 theme from Crip, the line you are looking for in the first step is on line 397 in the index.template.php file of the theme (I had to download it to look at it) ...


if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];


If you still can't figure out how to do this, the best thing to do is ask the theme author how to add a Forum tab to the top menu for the Forum BoardIndex when TinyPortal is installed.  Crip's site is here --> http://www.jpr62.com/theme/index.php

I am not familiar with the "Overide by DZine" theme in your fist post but I'm sure the author of that theme can help you with this.

ZarPrime