Wrapp breadcrumb,nav menu,film strip and display media in a table or div Wrapp breadcrumb,nav menu,film strip and display media in a table or div
 

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

Main Menu

Wrapp breadcrumb,nav menu,film strip and display media in a table or div

Started by allvip, October 11, 2013, 01:49:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

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. 


allvip


allvip

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

allvip

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:


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


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

allvip

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:

starttable();
    echo $breadcrumb;
    endtable();

before the nav_menu and in:

function theme_display_image($breadcrumb, $nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)


but it does work.
is :

starttable();
    echo $breadcrumb;
    endtable();


not ok?




Αndré

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.

allvip

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 :)

Αndré

Add your opening div tag either to
theme_display_breadcrumb
or
$template_breadcrumb

Add your closing div tag to
theme_display_image

allvip

great.I had no ideea I can start a div in a function and ended in another function.
thanks.