Jump to content

Jono

Blesta Developers
  • Posts

    376
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by Jono

  1. On 1/22/2021 at 7:43 PM, mukesh said:

    using direct admin login link not working.

    Define "not working".  The DA module does not automatically log in a user into DA but simply opens the login page where you can enter the credentials shown in that service info.  Are you saying that it is not directing you to the correct page?

  2. Be sure you have a way to keep track of what files have custom modifications :)  That being said, there is no natural mechanism for target=blank.   You could a modify the view and change

                                        <a href="<?php $this->Html->_($quicklink->uri);?>"><?php $this->Html->_($quicklink->title);?></a>

    To

                                        <a href="<?php $this->Html->_($quicklink->uri);?>"<?php $this->Html->ifSet($quicklink->external) == true ? ' target="blank"' : '';?>><?php $this->Html->_($quicklink->title);?></a>

    And then add 'external' => true in the array for each of your links in the controller

  3. Hmmm, the disable is to prevent items from being ordered twice.   However it looks like the form submission is not working.  There are 2 ways to debug.

    Through Your Browser

    Visit the page from your screen shot, open the inspector in your browser by pressing CTRL+SHIFT+I.  Then look at the network tab.  Click continue and see a new row appear.  Click on that row and look at the response tab, there is likely an error there.

    In the Log Files

    Find your log directory by visiting admin/settings/system/general/basic/.  Then visit the log directory and open the general-error-dd-mm-yyyy.log file and find the error there.

     

    You can copy and past the error in this thread for additional help.

  4. You can do this either in the view app/views/admin/default/admin_main.pdt or in the controller app/controllers/admin_main.php.  In the view you would change:

                            if (!empty($quicklinks)) {

    To something like this

                            $quicklinks = array_merge([(object)['uri' => 'https://yourwordpress.com', 'title' => 'WordPress Calendar']], (isset($quicklinks) ? $quicklinks : []));
                            if (!empty($quicklinks)) {

    OR in the controller you could change:

            $this->set(
                'quicklinks',
                $this->Staff->getQuickLinks($this->Session->read('blesta_staff_id'), $this->company_id)
            );

    To something like this:

            $this->set(
                'quicklinks',
                array_merge(
                    [(object)['uri' => 'https://yourwordpress.com', 'title' => 'WordPress Calendar']],
                    $this->Staff->getQuickLinks($this->Session->read('blesta_staff_id'), $this->company_id)
                )
            );

     

×
×
  • Create New...