Announcement

#1 2013-11-21 19:52:25

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Admin Tool Bar

Hello,

I created the AdminTools plugin http://piwigo.org/svn/extensions/AdminTools (only compatible with trunk)

it adds a toolbar on public pages offering some admin tasks :
- "edit" and "add to caddie" for albums (existing buttons are removed from the page)
- "edit", "add to caddie" and "representative" for photos (existing buttons are removed too)
- a toolbox with the same functionnalities as AdminMultiView
- a quick access to main admin page
- (any more ideas ?)

currently the "quick edit" feature is not done, I plan a Colorbox with a form (plg will perhaps do it)
and I have to add a nice "Done" message for "add to caddie" and "representative"

If possible I would like to integrate it as a default plugin (thus remove AdminMultiView)

Offline

 

#2 2013-11-21 20:16:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13790

Re: Admin Tool Bar

How can you introduce your plugin without a screenshot? ;-)

opened:
http://piwigo.org/forum/showimage.php?pid=147781&filename=admintools-opened.png

closed:
http://piwigo.org/forum/showimage.php?pid=147781&filename=admintools-closed.png

Offline

 

#3 2013-11-21 20:58:11

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

some ideas

- add a button on album page "Add photos", now possible with the changes made msalik and integrated by plg
- add a button on photo page "manage comments" but would need an input parameter on admin.php?page=comments

Offline

 

#4 2013-11-21 22:32:49

flop25
Piwigo Team
2006-07-06
7037

Re: Admin Tool Bar

alléluia alléluiaaa!
Thx god Mistic100 for your mercy!

^^


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-11-21 22:48:37

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Re: Admin Tool Bar

Wow !! Very great job, thx mistic100 !

:-)

Offline

 

#6 2013-11-26 05:58:36

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Admin Tool Bar

Really really nice. A lot better than multi view. I also have my wish list... :-)
- crash invalid sql if current album has a null representative
- I find that making sql requests and sending to the browser the list of users,  themes, languages, and full autocompletion tags on every page hit is overkill as some of these lists are potentially long (on my small phone the pages with the bar are visibly a lot slower to load and render). Maybe load them with ajax ws when clicking on tools or quick edit ?
- unusable with my theme on mobile devices
  - if panel closed, the open icon covers my menu icon and title bar. Would you be ok to move the closed icon to lets say top 25% and left 0 ?
  - if panel opened,  it goes on 2 or 3 lines and the page title is completely hidden.  Maybe hide the text and leave only icons through css media queries?

Thanks

Offline

 

#7 2013-11-26 10:28:26

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

Your two last points are about smartpocket ?

Offline

 

#8 2013-11-26 11:34:57

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Admin Tool Bar

mistic100 wrote:

Your two last points are about smartpocket ?

My theme, but I think it also goes for smart pocket ...

Offline

 

#9 2013-11-26 11:41:49

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

I didn't test on smartpocket,
it certainly fails when I try to push the body down (playing with "margin-top" or "top" if position:absolute)

can you send me a copy of your theme ?

move the closed icon to lets say top 25% and left 0

isn't this above the menubar on many themes ? including elegant

Offline

 

#10 2013-11-26 11:49:21

flop25
Piwigo Team
2006-07-06
7037

Re: Admin Tool Bar

The theme should adapt themself to the admin bar, because that bar will certainly be enhanced with more features and integrated in the futur


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#11 2013-12-10 11:29:06

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Admin Tool Bar

3 more wishes in order of importance:

1. fatal error picture page when the photo doesn't exist or no permissions (because admintools_add_public_controller is on page_header which is also called in case of page_no_found() or access_denied()). Proposition: test

Code:

if (script_basename() == 'picture' && empty($page['current'])) return;

2. admin toolbar is also added on independent pages of plugins (ROOT_PATH = ../../ , PLGINS_PATH = ../../plugins/ ). The issue is that combine_css and combine_script expect a path relative to the root gallery. Proposition: replace in the tpl path=$ADMINTOOLS_PATH|cat:' with path='plugins/AdminTools/

3. we make systematically the query SELECT added_by in admintools_save_picture but most of the time is useless because there is no request to delete or update the photo.

Offline

 

#12 2013-12-10 11:38:02

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

1. I can not reproduce it...
what is the exact error ?
and you mean $picture['current'] right ? (not $page)

2. ok

3. ok

Offline

 

#13 2013-12-10 11:40:54

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

mistic100 wrote:

1. I can not reproduce it...

I was not logged :-) so blocked before

Offline

 

#14 2013-12-10 11:52:34

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Admin Tool Bar

mistic100 wrote:

2. ok

Thanks, but I think 2 is not fixed because ADMINTOOLS_PATH is also used in include_once and template->set_filename and your commit fixed the tpl issue but broke these ones ...

Offline

 

#15 2013-12-10 12:02:19

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Admin Tool Bar

these path issues are awfull !!

plugins should not even have front end files in their directory ! how rv_gmaps and osm work is even better

edit: damn ! combine_css and combine_script do not accept absolute path (I guess FileCombiner prepends the path with './'), it would be a nice solution to always provide abs paths to the template as we do for include function

my problem is that what to minimize hard coded paths

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact