Edit {GALLRY} - Facebook like issue Edit {GALLRY} - Facebook like issue
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Edit {GALLRY} - Facebook like issue

Started by eddie21leeds, May 24, 2011, 01:16:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eddie21leeds

Hi there.

My galley is here:

http://yorkshiregraffiti.co.uk/displayimage.php?album=6&pid=84

As you can see i have a dynamic facebook like / send button. My problem is that when users browse images it is kept off the screen due to the use of anchors to line the screen up. The code is currently just above the {GALLERY} tag in template.html. I have looked in theme.php and i can see where this tag is created. I have tried serching teh core files but no luck. I just want it so it is underneath the image header or below the image itself. Somwhere it will be seen whilst a user id browsing. I need to know how / where i can edit the output of '{GALLERY}'

Thanks in advance.

Eddie.

eddie21leeds


Αndré

Quote<!--Coppermine Photo Gallery 1.5.10 (stable)-->
You should upgrade to cpg1.5.12 asap!

What you're asking for has already been answered a lot of times. There are also some Facebook plugins you might want to use. If you want to integrate it yourself, you have to edit $template_display_media in your theme.php file. If it doesn't exist, you have to copy the whole block from themes/sample/theme.php.

eddie21leeds


eddie21leeds

Done and done!

http://yorkshiregraffiti.co.uk/displayimage.php?album=lastcom&cat=0&pid=131&msg_id=5&page=1#top_display_media



I noticed that i had to edit the 'prev' and 'next' links in my theme to link to the '#top_display_media' target as opposed to the '#commentX' target. Just thought i would mention that as it seemed to change when i upgraded.

Thanks a lot and please keep up the good work.


Αndré

Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
you can tag your answer as "solved" by clicking on the little image in your initial posting on your thread.


Quote from: eddie21leeds on May 24, 2011, 03:47:50 PM
I noticed that i had to edit the 'prev' and 'next' links in my theme to link to the '#top_display_media' target as opposed to the '#commentX' target. Just thought i would mention that as it seemed to change when i upgraded.
All changes in include/themes.inc.php have to be applied in your custom theme, if it contains the affected parts. You can easily track changes in that file in our svn.

eddie21leeds