SimplePortal

Support => English Support => Topic started by: countryfunk on September 29, 2008, 05:09:18 PM

Title: No "Forum" button appearing in the Title Bar
Post by: countryfunk on September 29, 2008, 05:09:18 PM
Newbie to all this and working hard to 'get it' but have a question I cannot find the answer to.


    * Which version of SMF you're using.
Version 1.1.6

    * Which version of SimplePortal you're using.
Version 2.0.4

    * A link to your forum. (Or screenshots, either or).
www.praiseandworshipforum.com/forum

    * Any errors from your error log that may be related (please remove paths and IP addresses as this could give out personal information not needed on a public forum.)

    * A detailed description of the problem. (VERY IMPORTANT).
  In essence, loaded the Simple Portal package, it installed fine. Got it set up for first try and there is no "Forum" link to get into the Forum index page. In the interim, I added a html box to the upper left that works for now; but I'd like a simple button. I can add it to the title bar manually (though I don't know how right now, I could figure it out) but I thought it was supposed to be added by SimplePortal. If I am wrong, just let me know.

Thanks for any help you can offer.

Peace.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: ccbtimewiz on September 29, 2008, 07:47:17 PM
What theme are you using?
Title: Re: No "Forum" button appearing in the Title Bar
Post by: countryfunk on September 29, 2008, 10:18:52 PM
Musiconica

http://custom.simplemachines.org/themes/index.php?lemma=139

Title: Re: No "Forum" button appearing in the Title Bar
Post by: Nathaniel on September 29, 2008, 10:32:56 PM
Perform the edit below for your '/themes/{themename}/index.template.php' file.

Find this code:
Code: [Select]
// Show the [home] button.
echo '
<td class="mainnav"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';

Replace with this code:
Code: [Select]
// Show the [home] button.
echo '
<td class="mainnav"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';
// Show the [forum] button.
echo '
<td class="mainnav"><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></td>';

I can perform that edit for you, if you post that file. ;)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: countryfunk on September 29, 2008, 11:12:25 PM
Got it working!

Thanks SO much, deeply appreciated. Outstanding!
Title: Re: No "Forum" button appearing in the Title Bar
Post by: korvo01 on October 01, 2008, 06:52:57 PM
Does that work at any theme? I use the Grunge Theme in SMF 1.1.6 and Sportal 2.0.4, I've tryed to make it appear but I'm a little roockie and the results are not so good :-[.
My forum is:

http://clubecalibrapt.com/forum/index.php

Thanks
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Nathaniel on October 01, 2008, 08:48:21 PM
Its the correct way to do it, although the exact code will differ between themes. If you post that themes 'index.template.php' file then I can fix it. ;)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 02, 2008, 08:29:48 AM
I'm having trouble showing forum button as well, using Grunge theme also.
Did what you described for that other theme, but now I got both Home and Forum buttons opening the same Home page.

Anyways attached is the index.template.php of Grunge theme.

Thanks.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Nathaniel on October 02, 2008, 09:18:08 AM
Try the attached file.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: korvo01 on October 02, 2008, 10:30:06 AM
 As you'll see, once i've installed TP with another theme (but i dont like the solution), so the codes for both buttons "Forum" and "Gallery" work in the other theme and TP but not in Grunge and Sportal.
 Using the same codes I managed to make the buttons appear, but at the wrong place as you can see in the image.

(http://img505.imageshack.us/img505/1092/semttulotv0.th.jpg) (http://img505.imageshack.us/my.php?image=semttulotv0.jpg)

I'tried the code at the attached file you've posted before (correcting the txt[]) and didn't work.
 Maibe it´s a question I should asked to the theme develloper, if so i'm sorry for the trouble ;).

Index.template attached.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 02, 2008, 12:06:39 PM
Nope, unfortunatelly doesn't work, however I did manage to change help button to forum button and it works that way, just edited the help button part and changed every help with forum and $txt[119] with $txt['sp-forum].

So until I found a way to display that properly it's good as this, I don't really need help button anyway.

Also I've noticed in the code you sent:

Code: [Select]
if(!empty($context['portalactive']))
why using !empty, why not just:

Code: [Select]
if($context['portalactive'])
anyway I tried that as well and in both cases it doesn't show the button at all.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: korvo01 on October 02, 2008, 08:25:46 PM
Anaksimandar  I've allready fix the problem, you've said that you've changed the "help" button code, in fact, you just have to copy paste that code and make the changes in the new one. I've made that for both buttons, "Forum" and "Gallery" and worked.


Thank you for the idea ;)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 03, 2008, 02:19:18 AM
Yes, I've done that as well, however I have a new issue now, forum button does not actually get highlighted once selected, meaning when i go to forum, HOME button is still being highlighted as maintab_active_ and not FORUM as it should be.

This comepletely puzzles me, as code is exactly the same as for HOME or HELP and maintab_active_ class is called as in those.

Btw forum is at http://veselaekipa.net so you can check what I'm talking about :)

Any ideas?
Title: Re: No "Forum" button appearing in the Title Bar
Post by: korvo01 on October 03, 2008, 07:58:16 AM
 My "Forum" button works fine and gets highlighted when i'm in forum, check the code again and see iff you've changed all "home" for "forum".
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 03, 2008, 08:13:56 AM
Yes, I'm afraid that I did :(, here is the complete part:

Code: [Select]
        // Show the [forum] button.
        echo ($current_action == 'forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
                                <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
                                        <a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a>
                                </td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '"> </td>' : '';

Anything I'm missing here...?
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Nathaniel on October 03, 2008, 08:59:10 AM
You have to change some code earlier in the 'template_menu' function.

You will have to perform these edits:

Find this code:
Code: [Select]
$current_action = 'search';
Replace with this code:
Code: [Select]
$current_action = 'search';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action = 'forum';
if ($context['current_action']=='spadmin')
$current_action = 'admin';

Find this code:
Code: [Select]
, 'login', 'help', 'pm'
Replace with this code:
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 03, 2008, 09:10:41 AM
Yep, this fixed it, you're a star, thank you so much  :)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: CrazyBoyS on October 11, 2008, 04:02:00 PM
I also am missing the forum option at the top.

I followed what you have offered in here and all i cant figure out is what to put in the $txt[???] section where i created one for the forum

I have attached my index.template.php file which is one with out me modding it. I am using the Xbox 360 theme with the newest version of simple portal.

I appreciate the help as usual I just read and fix myself.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: Anaksimandar on October 12, 2008, 01:23:50 PM
That would be:
$txt['sp-forum']
Title: Re: No "Forum" button appearing in the Title Bar
Post by: sahaisal on October 12, 2008, 02:49:38 PM
I have attached my index.template.php file which is one with out me modding it. I am using the Xbox 360 theme with the newest version of simple portal.

Check attachment - i modify it as needed.

 ;)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: CrazyBoyS on October 13, 2008, 01:55:08 PM
That I got this working properly. I missed 1 ' and that is all it was. I got it running perfectly :)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: hateflavor on October 16, 2008, 12:25:28 PM
 :ill:
Can some one look at this, I've changed and changed and changed. I have the link available but he word "Forum" does not show.  I also need to add "Gallery" and "Donations". If you could please let me know what you change so I may attempt to duplicate it.
http://www.midsouthmetal.com/SMF/index.php?
Many thanks, if you can!
Tiffani


EDIT:
I swiped the code from the default theme and placed it, that worked. It did mess up my background a bit but the trade off is ok. The problem is a CSS issue with the More Style theme. I couldn't seem to change the CSS files to my liking or to the Navigation list liking either.
Title: Re: No "Forum" button appearing in the Title Bar
Post by: underdegun on October 22, 2008, 12:21:12 PM
Heres mine,  Could you look at it please and determine what needs to be fixed to get the forum button working?

Dilbert MC theme.

Title: Re: No "Forum" button appearing in the Title Bar
Post by: MrBI on December 29, 2008, 04:42:55 PM
hi!
I have the same trouble in our game forum. No forum button

SMF 1.1.7
SimplePortal Classic 2.0.5
Theme DarkBreak (1.1)

http://sverigeland.com/forum/index.php

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

      $current_action = $context['current_action'];

   if ($context['current_action'] == 'search2')

      $current_action = 'search';



   if ($context['current_action'] == 'theme')

      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';



   // Are we using right-to-left orientation?

   if ($context['right_to_left'])

   {

      $first = 'last';

      $last = 'first';

   }

   else

   {

      $first = 'first';

      $last = 'last';

   }





   // Show the start of the tab section.



   echo '

           <ul>';

                       // Show the [home] button.

               echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';




appreciate all help I can get  :)
Title: Re: No "Forum" button appearing in the Title Bar
Post by: [SiNaN] on January 01, 2009, 07:45:47 AM
Please, start new topics in this, even if you problem is the same.
SimplePortal 2.3.8 © 2008-2024, SimplePortal