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: Wrapp breadcrumb,nav menu,film strip and display media in a table or div  (Read 4344 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

every one has his own table and I can not aply the same background image for all.
I would like to wrapp them in a div or table with a custom class so I can aply a background image for all.
pic title,description and votes included.comments not included in the div.

they are all wrapped in #cpg_main_block_outer but I can not aply a background to it because all the pages like index gallery block is wrapped in this div too. 
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #2 on: October 11, 2013, 02:44:04 am »

yes

even if this page: http://coppermine-gallery.net/demo/cpg15x/displayimage.php?album=3&pid=2#top_display_media

has even the menu included

I will download the theme to see what is in the theme.php
thanks.

Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #3 on: October 11, 2013, 02:47:19 am »

yes is exacty what I want
he made a new cpg_header_block_inner and named it cpg_header_block_inner1
I will definitly make it to creat a new #cpg_main_block_outer with this theme
thanks
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #4 on: October 11, 2013, 03:05:32 am »

no is no help
he used $template_breadcrumb to insert a new div but I can not use diplay_media function to ad a new div.

diplay_media function does not have the  breadcrumb,nav menu and film strip tables included.

I did used the theme_display_image function.

original:

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
******************************************************************************/

edited:

Code: [Select]
/******************************************************************************
** Section <<<theme_display_image>>> - START
******************************************************************************/
function theme_display_image($breadcrumb, $nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG, $LINEBREAK;

    $superCage = Inspekt::makeSuperCage();
    $width = $CONFIG['picture_table_width'];
    echo $LINEBREAK . '<div class="wrapperImage">' . $LINEBREAK;
    starttable();
    echo $breadcrumb;
    endtable();
    echo '<a name="top_display_media"></a>'; // set the navbar-anchor
    echo '    <table border="0" cellspacing="0" cellpadding="0">';
    echo $nav_menu;
    echo '</table>';
    if ($CONFIG['display_film_strip'] = 1) {
        echo $film_strip;
    }
    starttable();
    echo $picture;
    endtable();


    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 '</div>' . $LINEBREAK;
    echo '<a name="comments_top"></a>';
    echo '<div id="comments">' . $LINEBREAK;
        echo $comments;
        echo '</div>' . $LINEBREAK;

}
/******************************************************************************
** Section <<<theme_display_image>>> - END
******************************************************************************/
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #5 on: October 11, 2013, 03:11:12 am »

is workin fine but breadcrumb or statlink or whatever Home>Category name>Album Name does not shows in the new div wrapperImage.
it shows on top of the div.

I did put:
Code: [Select]
starttable();
    echo $breadcrumb;
    endtable();
before the nav_menu and in:
Code: [Select]
function theme_display_image($breadcrumb, $nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)

but it does work.
is :
Code: [Select]
starttable();
    echo $breadcrumb;
    endtable();

not ok?



Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

It's hard to help you, if you almost always fail to post a link to your gallery, fail to describe in detail what you try to accomplish or what doesn't work as expected and rapidly post incoherent, confusing stuff.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #7 on: October 11, 2013, 11:30:39 am »

I just try to wrapp breadcrumb(I think is called statlink too),nav menu,film strip,display media,pic info and rating in a custom div on page displayimage.php so I can aply a nice background image to it.

more exact Home > Smilies - filmstip - image -pic info and rating

http://allvip.us/gallery/displayimage.php?album=497&pid=27100#top_display_media

is not incoherent, confusing stuff are just my atempt to do this and I'm doing fine for someone  that never used or study php :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

Add your opening div tag either to
Code: [Select]
theme_display_breadcrumbor
Code: [Select]
$template_breadcrumb
Add your closing div tag to
Code: [Select]
theme_display_image
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
« Reply #9 on: October 11, 2013, 12:21:58 pm »

great.I had no ideea I can start a div in a function and ended in another function.
thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.