Move Slideshow link to code block

wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Sat, 2013-08-31 21:08

Hello again,

I would like to move the slideshow icon (replacing it with just a text link) to one of the code blocks or the album description area (2nd choice) but am so far unable to wrap my head around what needs to be moved. I'd also like to do this with the download album, download full sized image icons as well.

Appreciate any help, thanks!

wamfgcom

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-09-01 00:14

http://galleryproject.org/node/111801#comment-405018
but you would use a different ID for the slideshow icon. That would position it to the top or bottom of the sidebar.
I guess another option would be to add a <div id="slideshow_in_block"></div> to the code block and then use some jquery like the above link to reposition it to the new <div>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-09-01 20:03

Tested it now.
Add:

 <script>
  $("#g-slideshow-link")
    .appendTo("#slide");
  </script>

to the code_block.html.php file as described in the directions: http://codex.galleryproject.org/Gallery3:Modules:code_block#Advanced_usage
using the UI (gallery3/index.php/admin/code_block) add :
<div id="slide"></div>
to the first blocks html section. Add a title as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Mon, 2013-09-02 04:22

Yes it does work perfectly! Many thanks!

I moved the View Slideshow and Download Album links into the first code block easily (looks good), I am however still having a little trouble with the View Fullsize and Download Fullsize links. They seem to be a little different :(

wamfgcom

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-09-02 04:58
Quote:
trouble with the View Fullsize and Download Fullsize links.

Do they have IDs? What is a URL to check.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Mon, 2013-09-02 21:51

No the links don't appear to have ID's and I had noticed that but have so far been unsuccessful in my attempts to correct

<a class="g-menu-link g-fullsize-link"
href="/members/gallery3/var/albums/guest-sets/fst/0042.jpg?m=1377373900"
title="View full size">View full size </a>

<div id="g-download-fullsize" class="g-block">
<h2>Download Photo</h2>
<div class="g-block-content">
<div class="g-download-fullsize-block">
<a href="/members/gallery3/index.php/downloadfullsize/send/136"
title="Download Photo"
class="g-button ui-icon-left ui-state-default ui-corner-all">Download Fullsize Image</a>
</div>
</div>
</div>

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-09-03 00:32

$('a:contains("<?= t('View full size') ?>")').appendTo("#slide");
Should work for the View Full size link.

The other...... Is it a sidebar block already? I don't understand the second block of code you posted.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Tue, 2013-09-03 03:11

Yes that did work for the View Full Size, thanks again!

The other is the "Download Full Size Photo" Module and yes it is a sidebar block.
However it's in the wrong place and it's a button :( Is that a problem?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-09-03 13:28

I think there is a option for that module to make it a sidebar or top of sidebar location.
If it is set the other location perhaps you can move it. The other option is to manage the the sidebar blocks and reposition it.

I need a url to understand as I don't want to keep guessing as to the position and placement. I also don't want to install these modules to just help you.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wamfgcom

Joined: 2013-08-28
Posts: 24
Posted: Wed, 2013-09-04 04:56

Apologies, and the help is appreciated!