Jump to content

change tabs in profile


Inlens

Recommended Posts

Posted

Me too! ;) 

I would like to set the "About me" section as default.

My members wish to have something like a personal "shop and promotion page", where they can write about themselves, post some static images for linked downloads or linked products, have some individual image banners etc. Like a individual html page below the profile cover image. It should look more like a profile magazine page, that is just beautiful and has a lot of oversight - instead of "activities, who liked what" and all the other elements, that most of my members are not interested in at first.

Thanks.

Posted
	protected function manage()
	{
		try
		{
			if(\IPS\Settings::i()->steam_default_tab && !isset(\IPS\Request::i()->tab))
			{
				\IPS\Request::i()->tab = 'node_steam_steamprofile';
			}
			return call_user_func_array( 'parent::manage', func_get_args() );
		}
		catch ( \RuntimeException $e )
		{
			if ( method_exists( get_parent_class(), __FUNCTION__ ) )
			{
				return call_user_func_array( 'parent::' . __FUNCTION__, func_get_args() );
			}
			else
			{
				throw $e;
			}
		}
	}

Hook into the front end controller here and overload manage() and set the default yourself.  

Posted

@Aiwa

My knowledge in php is not so deep, if it is not difficult, could you make plugin with this plugin?
and instead node_steam_steamprofile set node_gallery_gallery

Posted
12 minutes ago, demvlg said:

@Aiwa

My knowledge in php is not so deep, if it is not difficult, could you make plugin with this plugin?
and instead node_steam_steamprofile set node_gallery_gallery

Sure, let me see if I can whip this together... 

Posted

:ph34r: IPS is doing some sneaky stuff in the background that appears to make it impossible for this to be a plugin.  It may have to carry with it the overhead of a full blown application. 

Can still be one, just the latter is more of a PITA.

Posted

Awesome!

But I dont know, maybe there is bug only for me...
Open profile with default album tab. Then click button "user's content".
And then click button "back to proflle" - sidebar and tabs dissapeared.

Posted
7 hours ago, Inlens said:

Great!

But when I click "go back to profile" button it switches to activity again =)

Has to be that way, otherwise bugged profile. 

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...