forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on October 11, 2013, 01:49:18 am

Title: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip on October 11, 2013, 01:49:18 am
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. 
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: Niecher on October 11, 2013, 02:34:23 am
Hello Allvip,

Perhaps, you're thinking something like this:
http://coppermine-gallery.net/demo/cpg15x/?theme=curve_lucid_green
http://coppermine-gallery.net/demo/cpg15x/?theme=curve_lucid_yellow

Regards.
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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 (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.

Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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
******************************************************************************/
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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?



Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: Αndré on October 11, 2013, 10:56:14 am
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.
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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 (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 :)
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: Αndré on October 11, 2013, 12:08:28 pm
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
Title: Re: Wrapp breadcrumb,nav menu,film strip and display media in a table or div
Post by: allvip 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.