Film Strip - Move It Film Strip - Move It
 

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

Film Strip - Move It

Started by DangRabbit, January 04, 2007, 07:31:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DangRabbit

I'm using a classic theme, modified.

All I want to do is move the location of the film strip down... I can't for the life of me figure out how.

I want the film strip to be moved between the comments already submitted and the form for new comments. So it will be the 2nd to last "block" on the page.

Please help :)




DangRabbit

Figured it out.

For anyone else who needs it.

in /include/themes.inc.php find:

if (!function_exists('theme_display_image')) {  //{THEMES}
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;



    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

}
}  //{THEMES}


copy it into /themes/YOUR_THEME/theme.php
and make modifications.

Here it is with the blocks separated a bit so it's easier...

if (!function_exists('theme_display_image')) {  //{THEMES}
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();


    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;

    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

}
}  //{THEMES}


keep the "blocks" of code together, but you can rearrange them however you like.

Here's what mine looks like:

if (!function_exists('theme_display_image')) {  //{THEMES}
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];
   
    echo $votes;

    starttable();
    echo $picture;
    endtable();
   
    starttable();
    echo $nav_menu;
    endtable();
   
    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";

    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";
       
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }

}
}  //{THEMES}


Joachim Müller

Do not edit include/themes.inc.php, under no circumstances. Apply your custom code to themes/yourtheme/theme.php instead.

DangRabbit

uh, isn't that what I said?  ;)

Joachim Müller

Yes, sorry - I have just not read your posting carefully enough. We recommend copying code from themes/sample/theme.php, but that's basically the same as the code contained in include/themes.inc.php, minus the conditional that checks if a custom definition exists.