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: 216
  • 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]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Standalone Portal  (Read 5774 times)

0 Members and 1 Guest are viewing this topic.

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Standalone Portal
« on: September 17, 2013, 10:28:04 PM »
SMF 2.05
SP 2.3.5


When I select Standalone Portal in General Settings, A new Button "Home" appears next to the "Forum" button on the Menu Bar. Is there a way to give the "Home" button a different Name?  If so, where do I change it?
« Last Edit: September 18, 2013, 01:04:55 PM by shadow47 »

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Standalone Portal
« Reply #1 on: September 19, 2013, 02:58:54 PM »
Is there a special reason that my question is not being answered?

Offline xKryptx

  • Just Registered
  • Posts: 1
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Standalone Portal
« Reply #2 on: September 20, 2013, 02:33:57 AM »
You can edit this fairly easy BUT it will cause issues down the line so this is why I guess no one has given you any insight to this.

You need to edit a file so please make a backup before you edit this file.

The file you are looking to edit is located in the Sources Directory and it is named Subs.php.

You will then search for 'home' it will look something like this:

Code: [Select]
// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'] . '-' . empty($context['disable_sp']), $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => '[Home]',
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
you want to edit the 'title' => 'THISPART',

to your desired text.

Good luck :)

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Standalone Portal
« Reply #3 on: September 20, 2013, 05:41:52 AM »
No. That is the wrong way.

Look for a file in the Themes/default/languages folder called: index.english.php

Find:

Code: [Select]
$txt['home'] = 'Home';
Replace with:

Code: [Select]
$txt['home'] = 'NAME';
Do note, there may be other places that use this.

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Standalone Portal
« Reply #4 on: September 20, 2013, 08:34:48 AM »
I had already tried the subs.php method. It makes the button completely disappear after renaming.

I also attempted the second solution. renaming the text in index.english.php had no affect at all on the "HOME" button. At least not while in "Standalone" Portal.



Any other possibilities????

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Standalone Portal
« Reply #5 on: September 20, 2013, 02:34:29 PM »
After re-naming in index.english.php make sure that you clear the SMF file cache.
Admin -> Forum Maintenance

Then, clear your browser cache.

A link to your site would be good.

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Standalone Portal
« Reply #6 on: September 20, 2013, 03:30:48 PM »
Clearing the cache worked for I.E., the Home button now shows up as "Blog" but it is only temporary. As soon as you select any other buttons, it turns back into "Home and stays that way until next login. 

Chrome, still displays as Home all the time. I will keep playing with it. More ideas are welcome.

Link to my new site. http://our-republic.us/index.php?

Maybe someday in a new version, users will be able to rename the Home button in SP configuration.
« Last Edit: September 20, 2013, 03:50:20 PM by shadow47 »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Standalone Portal
« Reply #7 on: September 25, 2013, 11:37:57 AM »
Welcome to SimplePortal!

I apologize for the delayed response. This is one of the busiest times of the year for me.

The method offered by BurkeKnight should be working fine. Is the change applied at the link you've given above? Do you have any mods that offer the ability to customize the menu? Can you attach the index.template.php file of your custom theme at Themes/{your_theme}/ directory?
And slowly, you come to realize... It's all as it should be...

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Standalone Portal
« Reply #8 on: September 25, 2013, 04:06:17 PM »
Yes the change supplied  by BurkeKnight was applied at the link above.

It is unclear what you mean by "Can you attach the index.template.php file of your custom theme at Themes/{your_theme}/ directory?"

I am using Whitebox by Crip

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Standalone Portal
« Reply #9 on: September 25, 2013, 05:00:06 PM »
He means to reply here attaching a copy of the index.template.php file, so he can take a look. :)

Offline shadow47

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Standalone Portal
« Reply #10 on: September 25, 2013, 07:46:58 PM »
Gotcha....

« Last Edit: September 26, 2013, 08:28:34 AM by shadow47 »

Offline Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Standalone Portal
« Reply #11 on: September 25, 2013, 08:12:45 PM »
Not that way. As an attachment.
When posting, click the Attachments and other options link under posting text box, and there will be for adding attachment.

The way you have it now, can cause errors, and may not be complete.

Please modify the post, deleting the text, and attach the file as instructed. :)

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Standalone Portal
« Reply #12 on: October 14, 2013, 03:20:16 PM »
Thank you for attaching that file.
I can see that this index.template.php contains a function template_menu which , in fact, uses
$context['menu-buttons'] for the $button['title']. 

That looks right.  The next step would be to see how $context['menu_buttons'][$act]['target'] gets set.
That should be in Subs.php.
Please attach Subs.php.  I am going to guess that function setupMenuContext will have nothing at all surprising in it, but it is worth checking, just to make sure.

Assuming there is nothing at all surprising in function setupMenuContext, the next step is to ask:
What mods do you have installed? Because any mod that allows you to customize that home button is, of course, going to affect what appears on that button.

It could take a little while to track this all down...

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?