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: Little Help- Admin panel not vertical.  (Read 7423 times)

0 Members and 1 Guest are viewing this topic.

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Little Help- Admin panel not vertical.
« on: March 16, 2006, 02:02:30 am »

Well i have attached an image it should tell everything.

I would want a thing remove from my menu shown in the image, and i would like to make my Admin menu panel to be like vertical like other menus on the top.

The gallery is located: http://www.pakistaniforcesforum.com/gallery

If you would like the files of the theme i can attach them too.

Thanks. Again the .jpg file is attached to get a better picture.
« Last Edit: March 19, 2006, 02:41:10 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #1 on: March 16, 2006, 08:39:55 am »

zip your theme and attach it to your posting
Logged

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Little Help- Admin panel not vertical.
« Reply #2 on: March 16, 2006, 10:50:16 pm »

http://forum.coppermine-gallery.net/index.php?topic=28367.0

I performed this mod, and there you had no bridging and my template got messed up like this. I have attached the .zip file though i dont see a need of it, since this mod ( http://forum.coppermine-gallery.net/index.php?topic=28367.0 ) didn't have to over write my theme. Just happened. 



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #3 on: March 16, 2006, 11:47:52 pm »

can't help you with that mod. Mods go supported on the mod thread only.
Logged

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Little Help- Admin panel not vertical.
« Reply #4 on: March 17, 2006, 06:23:48 am »

I am aware that there will be no bridging so i can live with that. Now i am trying to figure out a way to fix this theme problem seprately. If i can't please tell me. So i go to that unsupported mod thread.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #5 on: March 17, 2006, 08:15:05 am »

your custom theme doesn't contain an admin menu section, so the core one is used. Copy the admin menu section from themes/sample/theme.php and then modify as needed by adding <tr> </tr> in the proper places.
Code: [Select]
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
<!-- BEGIN admin_approval -->
                                <td class="admin_menu" id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}">{UPL_APP_LNK}</a></td>
<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

EOT;
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                                <td class="admin_menu"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
                                <td class="admin_menu"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                        </tr>
                </table>
                </div>

EOT;
Logged

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Little Help- Admin panel not vertical.
« Reply #6 on: March 17, 2006, 02:59:25 pm »

What is the above code for? Is it just the code of the "core" theme file? What do i have to do with it?

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #7 on: March 17, 2006, 07:28:24 pm »

copy the section I posted above, then paste it into your theme.php (into a new line befor ?>). Then change the code accordingly. Can't tell your more without seeing all of your theme - I doubt that the one you attached is the proper one from your page.
Logged

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Little Help- Admin panel not vertical.
« Reply #8 on: March 17, 2006, 10:31:12 pm »

Did that uploaded it, didn't work!..

here is my file after pasting your code.
(theme.php)
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.3
  $Source: /cvsroot/coppermine/stable/themes/custom/theme.php,v $
  $Revision: 1.13 $
  $Author: donnoman $
  $Date: 2005/12/04 03:22:35 $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// Added to display flim_strip
function theme_display_film_strip(&$thumb_list$nbThumb$album_name$aid$cat$pos$sort_options$mode 'thumb')
{
    global $CONFIG$THEME_DIR;
    global $template_film_strip$lang_film_strip;

    static $template '';
    static $thumb_cell '';
    static $empty_cell '';
    static $spacer '';

    if ((!$template)) {
        $template $template_film_strip;
        $thumb_cell template_extract_block($template'thumb_cell');
        $empty_cell template_extract_block($template'empty_cell');
    }

    $cat_link is_numeric($aid) ? '' '&amp;cat=' $cat;

    $thumbcols $CONFIG['thumbcols'];
    $cell_width ceil(100 $CONFIG['max_film_strip_items']) . '%';

    $i 0;
    $thumb_strip '';
    foreach($thumb_list as $thumb) {
        //modify $new_size for max dimension of thumbnails in filmstrip
        $new_size 65;
        preg_match('/(?<=width=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
        $srcWidth=$matches[0][0];
        preg_match('/(?<=height=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
        $srcHeight=$matches[0][0];
        $ratio max($srcWidth$srcHeight) / $new_size;
        $ratio max($ratio1.0);
        $destWidth = (int)($srcWidth $ratio);
        $destHeight = (int)($srcHeight $ratio);
        $thumb['image']=preg_replace('/width="[^"]*"/','width="'.$destWidth.'"',$thumb['image']);
        $thumb['image']=preg_replace('/height="[^"]*"/','height="'.$destHeight.'"',$thumb['image']);
        $i++;
        if ($mode == 'thumb') {
            $params = array('{CELL_WIDTH}' => $cell_width,
                '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&amp;pos={$thumb['pos']}",
                '{THUMB}' => $thumb['image'],
                '{CAPTION}' => $thumb['caption'],
                '{ADMIN_MENU}' => ''
                );
        } else {
            $params = array('{CELL_WIDTH}' => $cell_width,
                '{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
                '{THUMB}' => $thumb['image'],
                '{CAPTION}' => '',
                '{ADMIN_MENU}' => ''
                );
        }
        $thumb_strip .= template_eval($thumb_cell$params);
    }

    if (defined('THEME_HAS_FILM_STRIP_GRAPHICS')) {
        $tile1 $THEME_DIR 'images/tile1.gif';
        $tile2 $THEME_DIR 'images/tile2.gif';
    } elseif (defined('THEME_HAS_FILM_STRIP_GRAPHIC')) {
        $tile1=$tile2=$THEME_DIR 'images/tile.gif';
    } else {
        $tile1=$tile2'images/tile.gif';
    }

    $params = array('{THUMB_STRIP}' => $thumb_strip,
        '{COLS}' => $i,
        '{TILE1}' => $tile1,
        '{TILE2}' => $tile2,
        );

    ob_start();
    starttable($CONFIG['picture_table_width']);
    echo template_eval($template$params);
    endtable();
    $film_strip ob_get_contents();
    ob_end_clean();

    return $film_strip;
}
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
<!-- BEGIN admin_approval -->
                                <td class="admin_menu" id="admin_menu_anim"><a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}">{UPL_APP_LNK}</a></td>
<!-- END admin_approval -->
                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

EOT;
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                                <td class="admin_menu"><a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a></td>
                                <td class="admin_menu"><a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                        </tr>
                </table>
                </div>

EOT;
?>


I can zip the whole gallery if you want. Can upload on my site and link it here.  :-[

Also the theme is same not a different one, trust me on this. I downloaded the theme folder, zip it. and then uploaded it here.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #9 on: March 18, 2006, 07:00:38 am »

well, you did only half of what I told you: you pasted the code in. You failed to modify as needed (I suggested to add <tr> </tr> tags, remember?). Taking a closer look at your theme, I suggest to remove the table cells instead, as you do the line breaks differently, so here's the code you need to paste in:
Code: [Select]
// HTML template for gallery admin menu
$template_gallery_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                            <td class="nav">
                                <span class="header">Administration</span>
<!-- BEGIN admin_approval -->
                                <a href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}" id="admin_menu_anim">{UPL_APP_LNK}</a>
<!-- END admin_approval -->
                                <a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a>
                                <a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a>
                                <a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a>
                                <a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a>
                                <a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a>
                                <a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a>
                                <a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a>
<!-- BEGIN log_ecards -->
                                <a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a>
<!-- END log_ecards -->
                                <a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a>
                                <a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a>
                                <a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a>
                                <a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a>
<!-- BEGIN documentation -->
                                <a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a>
<!-- END documentation -->
                           </td>
                        </tr>
                </table>
                </div>

EOT;
// HTML template for user admin menu
$template_user_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                                <td class="nav">
                                <span class="header">Administration</span>
                                <a href="albmgr.php" title="{ALBMGR_TITLE}">{ALBMGR_LNK}</a>
                                <a href="modifyalb.php" title="{MODIFYALB_TITLE}">{MODIFYALB_LNK}</a>
                                <a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a>
                                <a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a>
                                </td>
                        </tr>
                </table>
                </div>

EOT;
I recommend changing the menu spacer as well, it doesn't look good in other languages than English (I tested it with my German gallery, where the menu items take more space, so additional line breaks are generated that don't look nice). To do that, add
Code: [Select]
// HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="";

As an alternative, I attached a copy of theme.php (rename it from theme.php.txt to theme.php before using it).
Logged

cheenamalai

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Little Help- Admin panel not vertical.
« Reply #10 on: March 18, 2006, 09:39:41 pm »

Oh my goodness! You rock GauGau !!!

Many many thanks. Problem solved nicely!

Thanks for the theme.php as the code would make it complicated for me.  ;D

Now i need help with this.

Problem #1:

http://pakistaniforcesforum.com/gallery/displayimage.php?album=10&pos=3

If i click on the picture the window doesn't open showing a large image. Why is that?

Problem #2:

Look at the attached pictures. Regarding the "views" thingy. Is there anyway to fix that also?

Many Many thanks!
« Last Edit: March 18, 2006, 09:47:45 pm by cheenamalai »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Little Help- Admin panel not vertical.
« Reply #11 on: March 19, 2006, 02:40:58 pm »

one issue per thread. Locked.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.