[PHP] Frage zu phpbb Board Mod Insatallation

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Don Quijote, 9. August 2008 .

Schlagworte:
  1. 9. August 2008
    Frage zu phpbb Board Mod Insatallation

    Hay RR! ICh hoffe, ihr könnt mir auch heute helfen...

    Ich hab ein größeres Forum, in dem ich ein MOD installieren will...

    hab die MOD geladen, und sie sieht so aus:
    Code:
    ##############################################################
    ## MOD Title: Hide Post Buttons
    ## MOD Author: OXPUS < webmaster@oxpus.de > (Karsten Ude) http://www.oxpus.de
    ## MOD Description: If a user haves no auth to post a new topic or reply to a post this
    ## mod will hide the buttons to do this.
    ## A more friendly version before displaying the auth message.
    ## MOD Version: 1.1.1
    ##
    ## Installation Level: Intermediate
    ## Installation Time: 5-8 Minutes
    ## Files To Edit: 4
    ## viewforum.php
    ## viewtopic.php
    ## templates/subSilver/viewforum_body.tpl
    ## templates/subSilver/viewtopic_body.tpl
    ##
    ## Included Files: n/a
    ##
    ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
    ############################################################## 
    ## For security purposes, please check: http://www.phpbb.com/mods/ 
    ## for the latest version of this MOD. Although MODs are checked 
    ## before being allowed in the MODs Database there is no guarantee 
    ## that there are no security problems within the MOD. No support 
    ## will be given for MODs not found within the MODs Database which 
    ## can be found at http://www.phpbb.com/mods/ 
    ##############################################################
    ## Author Notes:
    ##
    ##############################################################
    ## MOD History:
    ##
    ## 2005-01-21 - Version 1.1.1
    ## - FIX little typo to enable the buttons for users
    ##
    ## 2004-12-09 - Version 1.1.0
    ## - ADD hide quote button on posts, too.
    ##
    ## 2004-10-30 - Version 1.0.0
    ## - First release
    ##
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    viewforum.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    //
    // Post URL generation for templating vars
    //
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    if ($is_auth['auth_post'] || $is_auth['auth_mod'])
    {
     $temp_url = append_sid("posting.$phpEx?mode=newtopic&amp;" . POST_FORUM_URL . "=$forum_id");
     $u_post_new_topic = '<a href="'.$temp_url.'">'; 
     $temp_image = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'];
     $u_post_new_topic_image = '<img src="'.$temp_image.'" border="0" />';
     $u_post_new_topic .= $u_post_new_topic_image . '</a>';
    }
    else
    {
     $u_post_new_topic = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? '<img src="'.$images['post_locked'].'" border="0" />' : '';
    }
    
    #
    #-----[ FIND ]------------------------------------------
    #
     'U_POST_NEW_TOPIC' => append_sid("posting.$phpEx?mode=newtopic&amp;" . POST_FORUM_URL . "=$forum_id"),
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
     'U_POST_NEW_TOPIC' => $u_post_new_topic,
    
    #
    #-----[ FIND ]------------------------------------------
    #
     'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'],
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    // 'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'],
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    viewtopic.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    $new_topic_url = append_sid("posting.$phpEx?mode=newtopic&amp;" . POST_FORUM_URL . "=$forum_id");
    
    #
    #-----[ IN-LINE FIND ]------------------------------------------
    #
    append_sid(
    
    #
    #-----[ IN-LINE BEFORE, ADD ]------------------------------------------
    #
    ($is_auth['auth_post']) ? '<a href="'.
    
    #
    #-----[ IN_LINE FIND ]------------------------------------------
    #
    ")
    
    #
    #-----[ IN-LINE AFTER, ADD ]------------------------------------------
    #
    .'">' : ''
    
    #
    #-----[ FIND ]------------------------------------------
    #
    $reply_topic_url = append_sid("posting.$phpEx?mode=reply&amp;" . POST_TOPIC_URL . "=$topic_id");
    
    #
    #-----[ IN-LINE FIND ]------------------------------------------
    #
    append_sid(
    
    #
    #-----[ IN-LINE BEFORE, ADD ]------------------------------------------
    #
    ($is_auth['auth_reply']) ? '<a href="'.
    
    #
    #-----[ IN_LINE FIND ]------------------------------------------
    #
    ")
    
    #
    #-----[ IN-LINE AFTER, ADD ]------------------------------------------
    #
    .'">' : ''
    
    #
    #-----[ FIND ]------------------------------------------
    #
    $reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new'];
    $reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic'];
    $post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'];
    $post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'];
    
    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    $new_topic_url .= ($is_auth['auth_post']) ? '<img src="'.$post_img.'" alt="'.$post_alt.'" border="0" /></a>' : '';
    $reply_topic_url .= ($is_auth['auth_reply']) ? '<img src="'.$reply_img.'" alt="'.$reply_alt.'" border="0" /></a>' : '';
    
    #
    #-----[ FIND ]------------------------------------------
    #
     'POST_IMG' => $post_img,
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    // 'POST_IMG' => $post_img,
    
    #
    #-----[ FIND ]------------------------------------------
    #
     'REPLY_IMG' => $reply_img,
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    // 'REPLY_IMG' => $reply_img,
    
    #
    #-----[ FIND ]------------------------------------------
    #
     $temp_url = append_sid("posting.$phpEx?mode=quote&amp;lpid=$last_post_id&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
     $quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" border="0" /></a>';
     $quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
     if ($is_auth['auth_reply'])
     {
     $temp_url = append_sid("posting.$phpEx?mode=quote&amp;lpid=$last_post_id&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
     $quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" border="0" /></a>';
     $quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
     }
     else
     {
     $quote_img = '';
     $quote = '';
     }
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    templates/subSilver/viewforum_body.tpl
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_NEW_TOPIC}
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_NEW_TOPIC}
    
    #
    #-----[ OPEN ]------------------------------------------
    #
    templates/subSilver/viewtopic_body.tpl
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" align="middle" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_NEW_TOPIC}
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" align="middle" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_REPLY_TOPIC}
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" align="middle" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_NEW_TOPIC}
    
    #
    #-----[ FIND ]------------------------------------------
    #
    <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" align="middle" /></a>
    
    #
    #-----[ REPLACE WITH ]------------------------------------------
    #
    {U_POST_REPLY_TOPIC}
    
    
    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM
    Meine Frage jez: Wie installiere ich sie?

    (Sry, vllt ein bisschen No0b mäßig, aber ihr könnt mir sicher trotzdem helfen!

    mfg Don Quijote
     
  2. 9. August 2008
    AW: Frage zu phpbb Board Mod Insatallation

    steht doch da
    da steht genau welche datei du öffnen sollst und was du dort tun sollst
     
  3. 9. August 2008
    AW: Frage zu phpbb Board Mod Insatallation

    Wie es drin steht....

    ÖFFNE
    FINDE
    REPLACE WITH....

    Wenn Du hilfe brauchst, schick mir Deine Daten des FTP Servers via PN und ich Helfe Dir dabei
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.