Advanced search  

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

Pages: [1]   Go Down

Author Topic: Default URL "hides" ads  (Read 3383 times)

0 Members and 1 Guest are viewing this topic.

Venia

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Default URL "hides" ads
« on: August 30, 2012, 08:30:18 am »

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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Default URL "hides" ads
« Reply #1 on: August 30, 2012, 05:33:42 pm »

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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Venia

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Default URL "hides" ads
« Reply #2 on: August 30, 2012, 06:17:58 pm »

Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Default URL "hides" ads
« Reply #3 on: August 31, 2012, 12:26:07 am »

Probably the easiest way to do this, is to add this to your custom themes theme.php right before the closing ?>
Code: [Select]
/******************************************************************************
** 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
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Venia

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Default URL "hides" ads
« Reply #4 on: August 31, 2012, 12:33:51 am »

That worked great, thank you so much!
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Default URL "hides" ads
« Reply #5 on: August 31, 2012, 12:35:29 am »

Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.