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] 2   Go Down

Author Topic: Entfernen Text "neuste Dateien" und "Zufallsbilder"  (Read 9565 times)

0 Members and 1 Guest are viewing this topic.

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Entfernen Text "neuste Dateien" und "Zufallsbilder"
« on: May 11, 2011, 08:57:52 pm »

Hi

Wie bereits im Betreff erwähnt, möchte ich die Texte entfernen. Wo finde ich die Einträge?

Besten Dank für die Unterstützung.

Gruss

Manu
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #1 on: May 14, 2011, 07:27:45 pm »

Entweder das Plugin "Final Extract" benutzen oder das Theme bearbeiten, wie z.B. hier (oder an vielen anderen Stellen im Forum) beschrieben. Falls etwas in deiner theme.php-Datei fehlt, kannst du es jederzeit einfach aus themes/sample/theme.php kopieren, in deinem Fall müsste zu dem genannten Beispiel noch
Code: [Select]
/******************************************************************************
** Section <<<THEME_HAS_NO_SUB_MENU_BUTTONS>>> - START
******************************************************************************/
if (!defined('THEME_HAS_NO_SUB_MENU_BUTTONS')) {

    // HTML template for template sub_menu spacer

    $template_sub_menu_spacer = $template_sys_menu_spacer;

    // HTML template for template sub_menu buttons

    $template_sub_menu_button = $template_sys_menu_button;

    // HTML template for template sub_menu buttons

    // {HREF_LNK}{HREF_TITLE}{HREF_TGT}{BLOCK_ID}{SPACER}{HREF_ATTRIBUTES}
    addbutton($sub_menu_buttons,'{CUSTOM_LNK_LNK}','{CUSTOM_LNK_TITLE}','{CUSTOM_LNK_TGT}','custom_link',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{LASTUP_LNK}','{LASTUP_TITLE}','{LASTUP_TGT}','lastup',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{LASTCOM_LNK}','{LASTCOM_TITLE}','{LASTCOM_TGT}','lastcom',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{TOPN_LNK}','{TOPN_TITLE}','{TOPN_TGT}','topn',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{TOPRATED_LNK}','{TOPRATED_TITLE}','{TOPRATED_TGT}','toprated',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{FAV_LNK}','{FAV_TITLE}','{FAV_TGT}','favpics',$template_sub_menu_spacer,'rel="nofollow"');
    if ($CONFIG['browse_by_date'] != 0) {
        addbutton($sub_menu_buttons, '{BROWSEBYDATE_LNK}', '{BROWSEBYDATE_TITLE}', '{BROWSEBYDATE_TGT}', 'browse_by_date', $template_sub_menu_spacer, 'rel="nofollow" class="greybox"');
    }
    addbutton($sub_menu_buttons,'{SEARCH_LNK}','{SEARCH_TITLE}','{SEARCH_TGT}','search','');


    $sub_menu_buttons = CPGPluginAPI::filter('sub_menu',$sub_menu_buttons);
    $params = array('{BUTTONS}' => assemble_template_buttons($template_sub_menu_button,$sub_menu_buttons));
    $template_sub_menu = template_eval($template_sub_menu,$params);
}
/******************************************************************************
** Section <<<THEME_HAS_NO_SUB_MENU_BUTTONS>>> - END
******************************************************************************/
eingefügt werden, falls noch nicht vorhanden.
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #2 on: May 14, 2011, 08:47:04 pm »

Hi André

Vielen Dank, versuche das Theme anzupassen.

 ??? soweit ich weiss, geht das mit Final Extract nicht.

Gruss

Manu
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #3 on: May 14, 2011, 09:02:18 pm »

Ich habe es nicht getestet, aber genau dafür wurde das Plugin eigentlich erstellt ;)
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #4 on: May 14, 2011, 09:18:45 pm »

Theme angepasst aber da stimmt wohl was noch nicht...
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #5 on: May 14, 2011, 09:21:36 pm »

übrigens hier die Final Extract Möglichkeiten, finde nirgends die Option.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #6 on: May 14, 2011, 09:27:09 pm »

Okay sorry, das Plugin ist dann wohl wirklich nicht geeignet ;)

Zu deiner Modifikation: du musst den Code zwischen
Code: [Select]
<?phpund
Code: [Select]
?>einfügen.
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #7 on: May 14, 2011, 09:43:58 pm »

bitte nicht schlagen, es geht nicht, entschuldige.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #8 on: May 14, 2011, 09:49:49 pm »

Bitte theme.php-Datei (mit den aktuellen Änderungen) als ZIP-Archiv anfügen.
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #9 on: May 14, 2011, 09:53:01 pm »

grazie mille  :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #10 on: May 14, 2011, 09:58:17 pm »

Das zweite
Code: [Select]
<?phpmuss weg. Dafür fehlt bisher der Rest aus meinem oben genannten Link komplett.
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #11 on: May 14, 2011, 10:11:37 pm »

kannst du mir die datei so anpassen das es funktioniert und hochladen?
nenn mir den Preis dafür...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #12 on: May 14, 2011, 10:24:42 pm »

Einfach ans Ende, vor dem
Code: [Select]
?>folgendes einfügen:
Code: [Select]
function assemble_template_buttons($template_buttons,$buttons)
{
    $counter=0;
    $output='';

    foreach ($buttons as $button)  {
        if (isset($button[4])) {
            $spacer=$button[4];
        } else {
            $spacer='';
        }

        $params = array(
            '{SPACER}'     => $spacer,
            '{BLOCK_ID}'   => $button[3],
            '{HREF_TGT}'   => $button[2],
            '{HREF_TITLE}' => $button[1],
            '{HREF_LNK}'   => $button[0],
            '{HREF_ATTRIBUTES}'   => $button[5]
            );
        $output.=template_eval($template_buttons, $params);
    }
    return $output;
}

function addbutton(&$menu,$href_lnk,$href_title,$href_tgt,$block_id,$spacer,$href_attrib='')
{
    $menu[]=array($href_lnk,$href_title,$href_tgt,$block_id,$spacer,$href_attrib);
}

if (!defined('THEME_HAS_NO_SUB_MENU_BUTTONS')) {

    // HTML template for template sub_menu spacer

    $template_sub_menu_spacer = $template_sys_menu_spacer;

    // HTML template for template sub_menu buttons

    $template_sub_menu_button = $template_sys_menu_button;

    // HTML template for template sub_menu buttons

    // {HREF_LNK}{HREF_TITLE}{HREF_TGT}{BLOCK_ID}{SPACER}{HREF_ATTRIBUTES}
    addbutton($sub_menu_buttons,'{CUSTOM_LNK_LNK}','{CUSTOM_LNK_TITLE}','{CUSTOM_LNK_TGT}','custom_link',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{LASTUP_LNK}','{LASTUP_TITLE}','{LASTUP_TGT}','lastup',$template_sub_menu_spacer,'rel="nofollow"');
    //addbutton($sub_menu_buttons,'{LASTCOM_LNK}','{LASTCOM_TITLE}','{LASTCOM_TGT}','lastcom',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{TOPN_LNK}','{TOPN_TITLE}','{TOPN_TGT}','topn',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{TOPRATED_LNK}','{TOPRATED_TITLE}','{TOPRATED_TGT}','toprated',$template_sub_menu_spacer,'rel="nofollow"');
    addbutton($sub_menu_buttons,'{FAV_LNK}','{FAV_TITLE}','{FAV_TGT}','favpics',$template_sub_menu_spacer,'rel="nofollow"');
    if ($CONFIG['browse_by_date'] != 0) {
        addbutton($sub_menu_buttons, '{BROWSEBYDATE_LNK}', '{BROWSEBYDATE_TITLE}', '{BROWSEBYDATE_TGT}', 'browse_by_date', $template_sub_menu_spacer, 'rel="nofollow" class="greybox"');
    }
    addbutton($sub_menu_buttons,'{SEARCH_LNK}','{SEARCH_TITLE}','{SEARCH_TGT}','search','');


    $sub_menu_buttons = CPGPluginAPI::filter('sub_menu',$sub_menu_buttons);
    $params = array('{BUTTONS}' => assemble_template_buttons($template_sub_menu_button,$sub_menu_buttons));
    $template_sub_menu = template_eval($template_sub_menu,$params);
}
« Last Edit: May 15, 2011, 12:15:29 am by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #13 on: May 14, 2011, 10:39:44 pm »

...natürlich vorher alle Modifikation aus diesem Thread rückgängig machen ;)
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #14 on: May 14, 2011, 10:41:24 pm »

 ???
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #15 on: May 14, 2011, 10:45:25 pm »

Der Fehler tritt auf nachdem du meine zuletzt genannten Änderungen durchführst, und vorher nicht, stimmt das so? Wenn ja, bitte einmal die unmodifizierte und die Variante mit den Änderungen der theme.php-Datei anfügen.
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #16 on: May 14, 2011, 11:23:39 pm »

das ist die funktionierende theme, evtl. war die andere bereits "defekt"
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #17 on: May 14, 2011, 11:32:55 pm »

Okay und wenn du in diese Version, diese Änderungen einfügst erscheint der Template-Fehler?
Logged

manuonline

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #18 on: May 15, 2011, 12:01:41 am »

jo
Logged

Αndré

  • Administrator
  • Coppermine addict
  • ****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Entfernen Text "neuste Dateien" und "Zufallsbilder"
« Reply #19 on: May 15, 2011, 12:13:09 am »

Hab mir dein Theme nochmal genauer angesehen und getestet. Es funktioniert, wenn du folgende Zeile wieder entfernst:
Code: [Select]
$template_sub_menu = $template_sys_menu;

Ich habe den Code oben entsprechend angepasst.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.024 seconds with 21 queries.