Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Inlens Posted February 5, 2018 Posted February 5, 2018 How to set another tab is profile as default? For example, albums?
Cyboman Posted February 5, 2018 Posted February 5, 2018 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.
Adriano Faria Posted February 5, 2018 Posted February 5, 2018 Tabs are hardcoded. There’s no way to do that without edit a file.
Adriano Faria Posted February 6, 2018 Posted February 6, 2018 10 hours ago, Adriano Faria said: Tabs are hardcoded. There’s no way to do that without edit a file.
Inlens Posted February 6, 2018 Author Posted February 6, 2018 Very very uncomfortable... I will tell it in ideas.
Inlens Posted February 10, 2018 Author Posted February 10, 2018 Without editing php filea, just theme hook and furl.json
Aiwa Posted February 10, 2018 Posted February 10, 2018 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.
Inlens Posted February 10, 2018 Author Posted February 10, 2018 @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
Aiwa Posted February 10, 2018 Posted February 10, 2018 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...
Aiwa Posted February 11, 2018 Posted February 11, 2018 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.
Aiwa Posted February 11, 2018 Posted February 11, 2018 4 minutes ago, demvlg said: I didnt understand what do u mean )) Patience.
Aiwa Posted February 13, 2018 Posted February 13, 2018 Default Profile Tab Public Repository A little birdy told me @All Astronauts might add this to his Kitchen Sink. But if all you want is this little thing, link above to the public repo and XML installer. I'm not going to list this in the MP.
Inlens Posted February 13, 2018 Author Posted February 13, 2018 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.
Inlens Posted February 13, 2018 Author Posted February 13, 2018 Great! But when I click "go back to profile" button it switches to activity again =)
Aiwa Posted February 13, 2018 Posted February 13, 2018 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.