coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: eddie21leeds on May 24, 2011, 01:16:08 PM

Title: Edit {GALLRY} - Facebook like issue
Post by: eddie21leeds on May 24, 2011, 01:16:08 PM
Hi there.

My galley is here:

http://yorkshiregraffiti.co.uk/displayimage.php?album=6&pid=84 (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.
Title: Re: Edit {GALLRY} - Facebook like issue
Post by: eddie21leeds on May 24, 2011, 01:17:19 PM
So sorry for the spelling! ha.
Title: Re: Edit {GALLRY} - Facebook like issue
Post by: Αndré on May 24, 2011, 01:32:17 PM
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.
Title: Re: Edit {GALLRY} - Facebook like issue
Post by: eddie21leeds on May 24, 2011, 02:13:11 PM
Thanks! I will upgrade too.
Title: Re: Edit {GALLRY} - Facebook like issue
Post by: eddie21leeds on May 24, 2011, 03:47:50 PM
Done and done!

http://yorkshiregraffiti.co.uk/displayimage.php?album=lastcom&cat=0&pid=131&msg_id=5&page=1#top_display_media (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.

Title: Re: Edit {GALLRY} - Facebook like issue
Post by: Αndré on May 25, 2011, 09:06:50 AM
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.
Title: Re: Edit {GALLRY} - Facebook like issue
Post by: eddie21leeds on May 25, 2011, 10:44:39 AM
Thanks.   :D