Custom links bar in _header.html

Hi all

We removed the main menu and have created our own button bar in the template _header.html. 

works easy enough for direct links but links that require variables like users id etc are not working

maybe edit the BxTemplMenu.php file or something i dont know 

just need some ideas :)

Need create links to:

edit profile (using pedit.php?ID={memberID} does not work)

friends(viewFriends.php?iUser={memberID} does not work)

upload photos to default album 

anyway you get the idea 

thanks for help

Quote · 17 Jun 2014

You can try to add the following method to BxTemplFunctions class in templates/tmpl_X/scripts/BxTemplFunctions.php file in your custom (or default UNI) template:

    function TemplPageAddComponent($sKey)
    {
        switch ($sKey) {
            case 'member_id':
                return getLoggedId();
            default:
                return false;
        }
    }

After this modification you can insert __member_id__ in template files.

Rules → http://www.boonex.com/terms
Quote · 23 Jun 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.