I have ported the quickbar_extras and also added a configuration option for including a "Log Out" link

Comments

guy_schneerson’s picture

Status: Active » Needs review
StatusFileSize
new13.1 KB

Patch attached

ggevalt’s picture

Hi,

I did the backport patch and updated the module folder. Ran update.php. Quickbar_Extras appears in the modules. I enabled it. However, it does not appear anywhere -- in Site configuration as separate module, or under Quicbar configuration (which appears no different than before patch.)

Did I miss a step? Or is there an issue that the patch does not include reference to extras in the original quickbar.module ??

FYI, here is record of what happened on terminal when I patched the module:
$ patch < back_port_quickbar_extras-1673742-1.patch
patching file quickbar_extras.css
patching file quickbar_extras.admin.js
patching file quickbar_extras.info
patching file quickbar_extras.install
patching file quickbar_extras.module

thanks much

guy_schneerson’s picture

Hi @ggevalt
The quickbar extras adds configuration to individual quickbars:
1) go to admin/settings/quickbar
2) Press Configure next to one of the role assigned menus
you should see all the new options: menu item positioning and user links under the user settings

ggevalt’s picture

StatusFileSize
new113.65 KB

Hi Guy,

Thanks so much for the quick response. I'm trying this out on a dev site online. I ran the update.php script even though I suspected it wasn't needed. I also cleared cache even though it was disabled. I've attached the .png shot of my screen when I went to admin/settings/quickbar, but I don't see any link for configure beside any of the role assigned menus, nor do I see anywhere how to access new options.

Thanks for your patience on this.

geoff

guy_schneerson’s picture

@ggevalt you have to assign a menu to a role first.

ggevalt’s picture

Thanks, Guy.

And I appreciate your response and courtesy. Sorry it's not working for me. I had already assigned a menu to the administrator role. I assigned another menu to another role. But I still am not seeing any links for configure.

thanks,
geoff

jeni_dc’s picture

The attached patch only applies to the development version, 6.x-1.x-dev. So that's why the configure link isn't available. But after enabling quickbar extras module, the configure link results in a WSOD.

guy_schneerson’s picture

@Delicious Creative thanks ill look at this issue

guy_schneerson’s picture

Status: Needs review » Needs work
guy_schneerson’s picture

Status: Needs work » Needs review
StatusFileSize
new12.68 KB

Updated patch tested with latest dev version, should work ok but let me know if not.

jeni_dc’s picture

StatusFileSize
new12.71 KB

I just tested the patch in #10 on a clean install of D6 and Quickbar 6.x-1.x-dev. After patching the configure link works and the extra settings appear.

The positioning of menu links under "Organize Menu Links" seems to work fine on the left or right, but I'm getting some errors with the User Settings.

Showing the username in the toolbar works fine but when enabling the "Username links to user profile page" results in the following error:

warning: htmlspecialchars() expects parameter 1 to be string, array given in /path/to/drupal/includes/bootstrap.inc on line 860.

The same error message also shows up when enabling the "Include a Log out link" option.

I've tracked down the errors to lines 228 and 240 of the quickbar extras module which is creating the links. In a nutshell the class attribute didn't need to be an array. In fact, the class wasn't being added because of this.

I've attached a patch that fixes this. I've also rewritten how those links are being added which looks more consistent with the rest of the links in the menu. It applied cleanly to 6.x-1.x-dev.

redndahead’s picture

Status: Needs review » Postponed (maintainer needs more info)

I'll need someone who is willing to maintain the d6 version of quickbar. Then this patch can go in.

jeni_dc’s picture

I'd be up for maintaining the D6 version after the patch goes in since I've still got a few D6 sites around that are using quickbar. But only for bug fixes since D6 doesn't have much of a lifespan left.

redndahead’s picture

Status: Postponed (maintainer needs more info) » Needs review

@jeni_dc Thanks you've been added as a maintainer. Feel free to commit any patches needed for d6.

jeni_dc’s picture

Status: Needs review » Fixed

Thanks redndahead!

This has been committed to dev.

http://drupalcode.org/project/quickbar.git/commit/c525025

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.