collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 234
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: No "Forum" button appearing in the Title Bar  (Read 10912 times)

0 Members and 1 Guest are viewing this topic.

Offline countryfunk

  • Newbie
  • Posts: 3
No "Forum" button appearing in the Title Bar
« 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.

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: No "Forum" button appearing in the Title Bar
« Reply #1 on: September 29, 2008, 07:47:17 PM »
What theme are you using?

Offline countryfunk

  • Newbie
  • Posts: 3

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: No "Forum" button appearing in the Title Bar
« Reply #3 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. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline countryfunk

  • Newbie
  • Posts: 3
Re: No "Forum" button appearing in the Title Bar
« Reply #4 on: September 29, 2008, 11:12:25 PM »
Got it working!

Thanks SO much, deeply appreciated. Outstanding!

Offline korvo01

  • Semi Newbie
  • *
  • Posts: 6
Re: No "Forum" button appearing in the Title Bar
« Reply #5 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

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: No "Forum" button appearing in the Title Bar
« Reply #6 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. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #7 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.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: No "Forum" button appearing in the Title Bar
« Reply #8 on: October 02, 2008, 09:18:08 AM »
Try the attached file.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline korvo01

  • Semi Newbie
  • *
  • Posts: 6
Re: No "Forum" button appearing in the Title Bar
« Reply #9 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.



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.

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #10 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.

Offline korvo01

  • Semi Newbie
  • *
  • Posts: 6
Re: No "Forum" button appearing in the Title Bar
« Reply #11 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 ;)

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #12 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?

Offline korvo01

  • Semi Newbie
  • *
  • Posts: 6
Re: No "Forum" button appearing in the Title Bar
« Reply #13 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".

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #14 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...?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: No "Forum" button appearing in the Title Bar
« Reply #15 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'
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #16 on: October 03, 2008, 09:10:41 AM »
Yep, this fixed it, you're a star, thank you so much  :)

Offline CrazyBoyS

  • Newbie
  • Posts: 2
Re: No "Forum" button appearing in the Title Bar
« Reply #17 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.
« Last Edit: October 11, 2008, 04:15:23 PM by CrazyBoyS »

Offline Anaksimandar

  • Semi Newbie
  • *
  • Posts: 8
Re: No "Forum" button appearing in the Title Bar
« Reply #18 on: October 12, 2008, 01:23:50 PM »
That would be:
$txt['sp-forum']

Offline sahaisal

  • Just Registered
  • Posts: 1
  • Gender: Male
Re: No "Forum" button appearing in the Title Bar
« Reply #19 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.

 ;)
Always and never are two words you should always remember never to use. [dont rem who quote that but i like it :)]