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: Navigation am besten bewertet Part 2  (Read 3857 times)

0 Members and 1 Guest are viewing this topic.

schürmann

  • Guest
Navigation am besten bewertet Part 2
« on: June 22, 2006, 08:43:03 pm »

Hallo,

wollte die Dateiinformationen ein bisschen abspecken, da ich die Bilderbewertungsgeschichte nicht brauche.

Die Bewertung in der Dateiinformation konnte ich in der displayimage.php erfolreich wie folgt entfernen:

    $nav_menu = theme_html_img_nav_menu();
    $picture = theme_html_picture();
//    $votes = theme_html_rating_box();        HIER!
    $pic_info = html_picinfo();

Jetzt möchte ich bloss noch den Link am besten bewertet aus der Navigation raus haben, habe auch einiges was hier im Forum versucht worden ist umzusetzten..klappt aber nicht..zumindest in der theme.php nicht. Ich denke es liegt daran, dass ich eine modifizierte Version von Pragmax habe!? Die theme.php poste ich mal zur Ansicht am Schluss.

Oder gibt es noch eine andere Moglichkeit?



Grüßle schürmann


<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally 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.5
  mX/pragmaMx-Port written by A.Ellsel (Andi), http://pragmamx.org
  $Source: /home/www/dps3311/home/cvsroot/pragmamx2/CoppermineMx/html/modules/Gallery/themes/mx-port/theme.php,v $
  $Revision: 1.1.2.3 $
  $Author: Andreas Ellsel $
  $Date: 2006/03/03 09:27:56 $
**********************************************/

if (!defined('MXCPG_PATH')) die('Not in mxCoppermine...');


// The following terms can be defined in theme.php
// ('THEME_HAS_RATING_GRAPHICS', 1) : The location for the ratings graphics will
//    be directed to the themes images folder.
//    RUBBISH   : images/rating0.gif
//    POOR      : images/rating1.gif
//    FAIR      : images/rating2.gif
//    GOOD      : images/rating3.gif
//    EXCELLENT : images/rating4.gif
//    GREAT     : images/rating5.gif
//('THEME_HAS_NAVBAR_GRAPHICS', 1); : The location for the navbar graphics will
//    be directed to the themes images folder.
//    Back to thumbnails   : images/thumbnails.gif
//    Picture Information  : images/info.gif
//    Slideshow            : images/slideshow.gif
//    Report to admin      : images/report.gif
//    Ecard                : images/ecard.gif
//    Previous             : images/prev.gif
//    Next                 : images/next.gif
// ('THEME_HAS_FILM_STRIP_GRAPHIC', 1) : The location for the film strip graphics will
//    be directed to the themes images folder.
//    tile                 : images/tile.gif
// ('THEME_HAS_FILM_STRIP_GRAPHICS', 1) : The location for the film strip graphics will
//    be directed to the themes images folder.
//    tile on the top      : images/tile1.gif
//    tile on the bottom   : images/tile2.gif
//  ('THEME_HAS_NO_SYS_MENU_BUTTONS', 1) : When present the system won't attempt to replace {BUTTONS} in the SYS_MENU template
//    The entire block needs to be present like in Coppermine 1.3 themes
//  ('THEME_HAS_NO_SUB_MENU_BUTTONS', 1) When present the system won't attempt to replace {BUTTONS} in the SUB_MENU template
//    The entire block needs to be present like in Coppermine 1.3 themes
//  ('THEME_IS_XHTML10_TRANSITIONAL',1) : If theme is defined as XHTML10_TRANSITIONAL the VANITY footer will be enabled
//    if the theme has a {VANITY} token in its template.html. Don't enable this if you have modified the code! See the
//    docs/theme.html documentation for validation methodology.

/// show openTable() and closeTable() arround the gallery output
define('MX_CPG_SHOWOPENCLOSETABLE','1');
/// show header and footer from CMS
if (!defined('MXCPG_SHOWMXHEADER')) define('MXCPG_SHOWMXHEADER','1');

$template_sys_menu_spacer ="|";

define('MXCPG_CLEANEDCSS','1');

///////////////////////////////////////////////////////////////////////////////
// HTML template for gallery admin menu
$pic_out_dir = MXCPG_PATH.'themes/'.$CONFIG['theme'].'/images/admin/';
$template_gallery_admin_menu = <<<EOT

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>
<!-- BEGIN admin_approval -->
                                <td id="admin_menu_anim"><a class="admin_menu_a" href="editpics.php?mode=upload_approval" title="{UPL_APP_TITLE}"><img src="{$pic_out_dir}settings.gif" border="0" alt="{UPL_APP_LNK}"></a></td>
<!-- END admin_approval -->
                                <td><a class="admin_menu_a" href="admin.php" title="{ADMIN_TITLE}"><img src="{$pic_out_dir}settings.gif" border="0" alt="{ADMIN_LNK}"></a></td>
                                <td><a class="admin_menu_a" href="catmgr.php" title="{CATEGORIES_TITLE}"><img src="{$pic_out_dir}kategorien.gif" border="0" alt="{CATEGORIES_LNK}"></a></td>
                                <td><a class="admin_menu_a" href="albmgr.php{CATL}" title="{ALBUMS_TITLE}"><img src="{$pic_out_dir}alben.gif" border="0" alt="{ALBUMS_LNK}"></a></td>
                                <td><a class="admin_menu_a" href="groupmgr.php" title="{GROUPS_TITLE}"><img src="{$pic_out_dir}gruppen.gif" border="0" alt="{GROUPS_LNK}"></a></td>
<!--                                 <td><a class="admin_menu_a" href="usermgr.php" title="{USERS_TITLE}"><img src="{$pic_out_dir}user.gif" border="0" alt="{USERS_LNK}"></a></td> -->
<!--                                 <td><a class="admin_menu_a" href="banning.php" title="{BAN_TITLE}"><img src="{$pic_out_dir}bann.gif" border="0" alt="{BAN_LNK}"></a></td> -->
                                <td><a class="admin_menu_a" href="reviewcom.php" title="{COMMENTS_TITLE}"><img src="{$pic_out_dir}kommentare.gif" border="0" alt="{COMMENTS_LNK}"></a></td>
<!-- BEGIN log_ecards -->
                                <td><a class="admin_menu_a" href="db_ecard.php" title="{DB_ECARD_TITLE}"><img src="{$pic_out_dir}ecards.gif" border="0" alt="{DB_ECARD_LNK}"></a></td>
<!-- END log_ecards -->
                                <td><a class="admin_menu_a" href="picmgr.php" title="{PICTURES_TITLE}"><img src="{$pic_out_dir}sort.gif" border="0" alt="{PICTURES_LNK}"></a></td>
                                <td><a class="admin_menu_a" href="searchnew.php" title="{SEARCHNEW_TITLE}"><img src="{$pic_out_dir}batch.gif" border="0" alt="{SEARCHNEW_LNK}"></a></td>
                                <td><a class="admin_menu_a" href="util.php" title="{UTIL_TITLE}"><img src="{$pic_out_dir}admin.gif" border="0" alt="{UTIL_LNK}"></a></td>
<!--                                 <td><a class="admin_menu_a" href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}"><img src="{$pic_out_dir}profil.gif" border="0" alt="{MY_PROF_LNK}"></a></td> -->
<!-- BEGIN documentation -->
                                <td><a class="admin_menu_a" href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation"><img src="{$pic_out_dir}doku.gif" border="0" alt="{DOCUMENTATION_LNK}"></a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

EOT;

///////////////////////////////////////////////////////////////////////////////
// HTML template for the display of comments
$template_image_comments = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">

        <tr>
                <td>
                        <table width="100%" cellpadding="0" cellspacing="0">
                           <tr>
                                <td class="tableh2_compact" nowrap="nowrap">
                                        <b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}"></a>&nbsp;
<!-- BEGIN ipinfo -->
                                                                                 ({IP})
<!-- END ipinfo -->
</td>


                                <td class="tableh2_compact" align="right" width="100%">
<!-- BEGIN report_comment_button -->
     <a href="report_file.php?pid={PID}&amp;msg_id={MSG_ID}&amp;what=comment" title="{REPORT_COMMENT_TITLE}"><img src="images/report.gif" width="16" height="16" border="0" align="middle" alt="{REPORT_COMMENT_TITLE}" /></a>
<!-- END report_comment_button -->


<!-- BEGIN buttons -->
                                        <a href="javascript:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0" align="middle" /></a>
                                        <a href="delete.php?msg_id={MSG_ID}&amp;what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="middle" /></a>
<!-- END buttons -->
                                </td>
                                <td class="tableh2_compact" align="right" nowrap="nowrap">
                                        <span class="comment_date">[{MSG_DATE}]</span>
                                </td></tr>
                        </table>
                </td>
        </tr>
        <tr>
                <td class="tableb_compact">
                        <div id="cbody{MSG_ID}" style="display:block">
                                {MSG_BODY}
                        </div>
                        <div id="cedit{MSG_ID}" style="display:none">
<!-- BEGIN edit_box_smilies -->
                                <form name="f{MSG_ID}" method="POST" action="db_input.php" style="margin: 0px;">
                                <input type="hidden" name="event" value="comment_update" />
                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                <table width="100%" cellpadding="0" cellspacing="0">

                                                <tr>
                                                <td>
                                                   <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                                </td><td>
                                                </tr>
                                                <tr>
                                                <td width="80%">
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" style="width: 100%;">{MSG_BODY_RAW}</textarea>
                                                </td>
                                                <td class="tableb_compact">
                                                </td>
                                                <td>
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
                                        </tr>
                                </table>
                                </form>
                                {SMILIES}
<!-- END edit_box_smilies -->
<!-- BEGIN edit_box_no_smilies -->
                                <table width="100%" cellpadding="0" cellspacing="0">
                                        <tr>
                                                <form name="f{MSG_ID}" method="POST" action="db_input.php">
                                                <input type="hidden" name="event" value="comment_update" />
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                                <td>
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                                </td>
                                        </tr>
                                        <tr>
                                                <td width="100%">
                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>
                                                </td>
                                                <td class="tableb_compact">
                                                </td>
                                                <td>
                                                        <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                                </td>
                                                </form>
                                        </tr>
                                        <tr>
                                                <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td>
                                        </tr>
                                </table>
<!-- END edit_box_no_smilies -->
                        </div>
                </td>
        </tr>
</table>
EOT;

// HTML template used by the msg_box function
$template_msg_box = <<<EOT

        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>{MESSAGE}</b></font>
                </td>
        </tr>
<!-- BEGIN button -->
                <tr>
                        <td align="center" class="tablef">
                                <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td class="admin_menu">
                                                        <a href="{LINK}">{TEXT}</a>
                                                </td>
                                        </tr>
                                </table>
<script language="Javascript" type="text/javascript">
<!--
function cpg_msg_gotoMenu() {
 window.location.href="{LINK}"
 }
window.setTimeout("cpg_msg_gotoMenu()", 2000);
//-->
</script>
                        </td>
                </tr>
<!-- END button -->

EOT;

?>




« Last Edit: June 23, 2006, 11:35:49 am by schürmann »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Navigation Top Bilder Part 2
« Reply #1 on: June 23, 2006, 09:19:26 am »

Erlaube für keine der Gruppen die Bilderbewertung und sie wird nicht mehr sichtbar sein. Der PragmaMx-Port wird übrigens nur rudimentär durch uns unterstützt, erste Anlaufstelle sollte die Seite von PragmaMx sein - wir haben nämlich keine Ahnung, inwieweit sich der Port von der Standalone-Version unterscheidet.
Logged

schürmann

  • Guest
Re: Navigation Top Bilder Part 2
« Reply #2 on: June 23, 2006, 10:52:48 am »

Erlaube für keine der Gruppen die Bilderbewertung und sie wird nicht mehr sichtbar sein. Der PragmaMx-Port wird übrigens nur rudimentär durch uns unterstützt, erste Anlaufstelle sollte die Seite von PragmaMx sein - wir haben nämlich keine Ahnung, inwieweit sich der Port von der Standalone-Version unterscheidet.

Die Bewertungsmöglichkeit in der Datei-Information wird dunkel (hätte ich mir die Veränderung in der dsiplay.php sparen können), aber der Link in der Hauptnavigation (am besten bewertet) bleibt.

Kann evt. ein bug meinerseits sein? Hat hier jemand evt. den o.g Einstellungsvorschlag von GauGau laufen, und kann mir bestätigen, dass der Bewertungs-Link in der Hauptnavigation auch verschwindet?!


Danke



schürmannn
« Last Edit: June 23, 2006, 11:29:25 am by schürmann »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Navigation am besten bewertet Part 2
« Reply #3 on: June 24, 2006, 08:34:45 pm »

Nein, tut der Link verschwindet nicht. Er hängt ja auch nicht mit dem Recht des Users zu voten zusammen sondern zeigt nur die best bewerteten Bilder an.
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 15 queries.