Topic-icon change in the drop-down menu button

Active Subscriptions:

None
10 years 6 days ago #44003 by baby80
Hello,
You can change the drop-down menu button?
I wish that when clicked redirects the user to a page Account
View image
File Attachment:
The topic has been locked.
Support Specialist
10 years 6 days ago #44012 by alzander
There isn't currently an option to make that button into a link for the user's account. Right now, it will only show the options you've set in the Joomla menu you've selected, which could be the user's account, logout link or anything else you'd like to display.

Thanks for the suggestion. This may be something we look at adding in the future, but I'm not sure how it would be best to support it since we use the Joomla menu manager to setup the items.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 6 days ago #44034 by baby80
Hello Alex,
but at the moment I can not even replace it with the code?
Example: with a bootstrap button?
Maybe I insert a link to redirect the page in the code of the button.
Type this:
<a href="#" class="btn btn-success btn-large"><i class="icon-white icon-heart"></i>
=(
The topic has been locked.
Active Subscriptions:

None
10 years 20 hours ago #44170 by baby80
Just to inform you that I was able to solve alone.
In the file: / modules / mod_sclogin / helper.php
Around 338 lines
I changed this code:
else //Show in Bootstrap dropdown list
            {
                if ($this->isJFBConnectInstalled)
                    $ddName = JFBCFactory::config()->getSetting('jquery_load') ? 'sc-dropdown' : 'dropdown';
                else
                    $ddName = $this->params->get('loadJQuery') ? 'sc-dropdown' : 'dropdown';

                $menuNav = '<div class="scuser-menu dropdown-view">';
                $menuNav .= '<div class="btn-group">';
                $menuNav .= '<a class="btn dropdown-toggle" data-toggle="' . $ddName . '" href="#">' . $parentTitle . '<span class="caret"></span></a>';
                $menuNav .= '<ul class="dropdown-menu">';
                foreach ($menu_items as $menuItem)
                    $menuNav .= $this->getUserMenuItem($menuItem);
                $menuNav .= '</ul>';
                $menuNav .= '</div>';
                $menuNav .= '</div>';
            }

        }
With this:
else //Show in Bootstrap dropdown list
            {
                if ($this->isJFBConnectInstalled)
                    $ddName = JFBCFactory::config()->getSetting('jquery_load') ? 'sc-dropdown' : 'dropdown';
                else
                    $ddName = $this->params->get('loadJQuery') ? 'sc-dropdown' : 'dropdown';

                $menuNav = '<div class="scuser-menu dropdown-view">';
                $menuNav .= '<a href="Here enter the url to redirect"><i class="icon-white icon-user"></i> Il mio account</a>';
                
            }

        }
Job done, thank you very much =)
The topic has been locked.
Support Specialist
10 years 13 hours ago #44180 by alzander
I'm very sorry I didn't get back to you sooner. We have it on our to-do list to investigate a way to do this using options in the SCLogin module. Your solution is spot-on as to how to implement what you're looking for. It will take a bit more effort to make it into a configurable setting for all users though.

I'm glad to hear you got what you were looking for. If you have any other suggestions or feedback, please let us know!

Thanks,
Alex
The topic has been locked.