Hi all,
I need help figuring out how to remove #top_display_media from all my URLs when people click thumbs. The reason is that when people go straight to the image, they basically skip my ad. I found another thread, but cannot find the stated file anywhere and that thread is from 2010. Thanks in advance.
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Please post a link to the thread you're referring to.
Sorry about that. Here's an example: http://www.hungergamesgallery.com/hungergames/displayimage.php?album=2&pid=65#top_display_media
Probably the easiest way to do this, is to add this to your custom themes theme.php right before the closing ?>
/******************************************************************************
** Section <<<theme_display_image>>> - START
******************************************************************************/
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
global $CONFIG, $LINEBREAK;
$superCage = Inspekt::makeSuperCage();
$width = $CONFIG['picture_table_width'];
//echo '<a name="top_display_media"></a>'; // set the navbar-anchor
starttable();
echo $nav_menu;
endtable();
starttable();
echo $picture;
endtable();
if ($CONFIG['display_film_strip'] == 1) {
echo $film_strip;
}
echo $votes;
$picinfo = $superCage->cookie->keyExists('picinfo') ? $superCage->cookie->getAlpha('picinfo') : ($CONFIG['display_pic_info'] ? 'block' : 'none');
echo $LINEBREAK . '<div id="picinfo" style="display: '.$picinfo.';">' . $LINEBREAK;
starttable();
echo $pic_info;
endtable();
echo '</div>' . $LINEBREAK;
echo '<a name="comments_top"></a>';
echo '<div id="comments">' . $LINEBREAK;
echo $comments;
echo '</div>' . $LINEBREAK;
}
/******************************************************************************
** Section <<<theme_display_image>>> - END
******************************************************************************/
If function theme_display_image() already exists in your theme
Find
echo '<a name="top_display_media"></a>'; // set the navbar-anchor
Replace with
//echo '<a name="top_display_media"></a>'; // set the navbar-anchor
That worked great, thank you so much!
Glad it worked for you. Please resolve your thread.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631