How can I add new menu options in Profile?

Dani MR Posted in Beginning Developers 9 years ago

Hi,

I need add more options under the profile cover like Timeline, Friends, Photos, MyNewOption1, MyNewOption2... . Wich is the php file for add these? Or I need to create a new component file?

Any suggestions?

Many thanks

Replies
Spanish Dani MR Replied 9 years ago

Many thanks for quickly response!

When I adding the register menu link in the core components, like the component OssnProfile, the site change properly. But If I add directly a new component with ossn_com.php and the function register menu with function init the script(like HelloWorld) don't appear the new option menú.

I need to import the comploment from admin panel or can I create the new complement directly in the files systems in the directory components.

Regards

Sorry for my english ;)

Indonesian Arsalan Shah Replied 9 years ago

Please take a look in components/OssnProfile/ossn_com.php

You need to add following code in your component file:

ossn_register_menu_link('google', 'google', 'http://google.com/', 'user_timeline');

You can edit google with your link address and name.

You can also take a look into : Here a function