BetaONE will rise again!


 
Prev Previous Post   Next Post Next
  #1  
Old 26th Jul 03, 11:52 PM
Sephiroth Sephiroth is offline
BetaONE Supporter
 
Join Date: Jul 2001
Posts: 1,979
Sephiroth is an unknown quantity at this point
Send a message via MSN to Sephiroth
If so, can you help me translate something? I'm trying to install something on the board here, but the readme is written in german... and even when I run it through babelfish I still can't understand half of what it's telling me to do. If anybody does, could you please go through the German in this file and translate for me?

nevermind - see my post below, thanks though

Code:
//-------------------------------------- // 3. Topics.php //-------------------------------------- // finde: * * * *//------------------------------------- * * * *// Get the forum info based on the forum ID, get the category name, ID, and get the topic details * * * *//------------------------------------- * * * * * * * *$DB->query("SELECT t.*, f.thank_you, f.name as forum_name,.................................... // (es folgt noch mehr code in dieser zeile, aber da er hier irrelevant ist, habe ich den code ausschnitt verkürzt.) // ERSETZE EXAKT den folgenden Teil darin: f.name as forum_name, // durch: f.thank_you, f.name as forum_name, //------------------------------------------------------------ // Einige Zeilen tiefer findest Du folgendes: 'name' * * * * => $this->topic['forum_name'] * * * *, // füge folgendes darunter ein: 'thank_you' * *=> $this->topic['thank_you'] * * * * , //------------------------------------------------------------ // finde: function reply_button() { // füge DARÜBER folgendes ein: function thanx_button($thankYouAllow) { *global $ibforums; if($thankYouAllow > 0){ * *if ($this->topic['state'] == 'closed') *{ * // Do we have the ability to post in * // closed topics? * * if ($ibforums->member['g_post_closed'] == 1) * { * *return "<a href='{$this->base_url}&act=thanx&f=".$this->forum['id']."&t=".$this->topic['tid']."'><{A_THANKS}></a>"; * } * else * { * *return " "; * } *} * *if ($this->topic['state'] == 'moved') *{ * return " "; *} * *if ($this->topic['poll_state'] == 'closed') *{ * return " "; *} * *return "<a href='{$this->base_url}&act=thanx&f=".$this->forum['id']."&t=".$this->topic['tid']."'><{A_THANKS}></a>"; }else{ *return " "; } } //------------------------------------------------------------ //finde: $this->topic['REPLY_BUTTON'] *= $this->reply_button(); // füge DARUNTER folgendes ein: $this->topic['THANX_BUTTON'] *= $this->thanx_button($this->forum['thank_you']); //------------------------------------------------------------ // finde: ORDER BY p.pid LIMIT $first, ".$ibforums->vars['display_max_posts']); // ERSETZE mit: ORDER BY p.post_date LIMIT $first, ".$ibforums->vars['display_max_posts']); //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 3. skin/sx/skin_topic.php (Solltest Du mehrere Skins installiert haben, // so musst Du diesen Schritt für alle Deine skin_topics in den einzelnen Skin // Verzeichnissen wiederholen) //-------------------------------------- // finde (zweimal): {$data[TOPIC][REPLY_BUTTON]} // ERSETZE jeweils mit: {$data[TOPIC][THANX_BUTTON]}{$data[TOPIC][REPLY_BUTTON]} //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 4. index.php //-------------------------------------- // finde: 'buddy' * *=> "browsebuddy", // füge DARÜBER folgendes ein: 'thanx' * *=> "Thanks", //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 5. config_global.php //-------------------------------------- // Füge eine neue Zeile am Ende ein (direkt über dem "?>") $INFO['thank_id'] * = '1'; //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 6. sources/Admin/ad_settings.php //-------------------------------------- // finde: *$ADMIN->html .= $SKIN->add_td_row( array( "<b>Number Formatting</b><br>You may choose which character to separate thousands from hundreds<br>(EG: USA & UK use a comma)" , * * * * * *$SKIN->form_dropdown( 'number_format', * * * * * * * * * array( * * * * * * * * * * 0 => array( 'none', 'Don\'t format' ), * * * * * * * * * * 1 => array( 'space' , 'Space' ), * * * * * * * * * * 2 => array( ',' , ',' ), * * * * * * * * * * 3 => array( '.' , '.' ), * * * * * * * * * * *), * * * * * * * * * $INFO['number_format'] *) * * * * ) * * *); // füge darunter folgendes ein: *//----------------------------------------------------------------------------------------------------------- * * * * *$ADMIN->html .= $SKIN->add_td_basic( 'Thank You Button', 'left', 'catrow2' ); * *//----------------------------------------------------------------------------------------------------------- * * * * * $ADMIN->html .= $SKIN->add_td_row( array( "<b>User ID for 'Mr. Thank You'</b>" , * * * * * *$SKIN->form_input( "thank_id", $INFO['thank_id'] *) * * * * ) * * *); //------------------------------------------------------------ // suche nach: 'debug_level', 'sql_debug' // ERSETZE durch: 'debug_level', 'sql_debug', 'thank_id' //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 7. sources/Admin/ad_forums.php // DU MUSST DIESEN TEIL 4 MAL MACHEN!!! // Ein und derselbe Code kommt vier mal in der Datei // vor und beide Schritte müssen alle vier mal wie beschrieben // durchgeführt werden! //-------------------------------------- // suche nach: *$ADMIN->html .= $SKIN->add_td_row( array( "<b>Posts in this forum increase member post count?</b>" , * * * * * * *$SKIN->form_yes_no("inc_postcount", $forum['inc_postcount'] ) * * * * * * *) * * *); // füge darunter ein: *$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow the 'Thank You' Function in this Forum?</b>" , * * * * * * *$SKIN->form_yes_no("thank_you", $forum['thank_you'] ) * * * * * * *) * * *); //------------------------------------------------------------ // suche nach: 'sub_can_post' * * *=> $IN['sub_can_post'], // füge darunter ein: 'thank_you' * * => $IN['thank_you'], //------------------------------------------------------------ //------------------------------------------------------------ //-------------------------------------- // 8. ACP //-------------------------------------- --> *Skins & Templates >> Manage HTML Templates >> Template Tool (für alle installierten Skins) //-------------------------------------- --> Skins & Templates >> Manage Macros >> EDIT >> Add a Macro: Macro Key: A_THANKS Macro Replacement: <img src='style_images/<#IMG_DIR#>/t_thanks.gif' border='0' *alt=''> //-------------------------------------- --> Als nächstes müssen wir dem Forum sagen, wessen User-ID er bei dem erstellen der Thank You Posts verwenden soll, hierbei ist wichtig, die User-ID und nicht den Usernamen zu verwenden! Gehe im ACP nach: Board Settings >> Basic Config >> User ID for 'Mr. Thank You' und trage dort die gewünschte ID ein WICHTIG -> Die User ID sollte später möglichst nicht mehr gewechselt werden, da es sonst zu Problemen kommen kann! //-------------------------------------- --> Last but not least, müssen wir die Funktion für die gewünschten Foren freischalten (default ist aus!) Forum Control >> Manage >> Allow the 'Thank You' Function in this Forum? (YES/NO) //-------------------------------------- Das war´s schon, viel Spass damit :) Koksi [ Koksi@ibforen.de ] //------------------------------------------------------------------ ###################################### ## * * Hide Hack integration * * * *## ###################################### // Wenn Du bereits den Hide Hack von spoon110 benutzt, kannst Du den Thank You Hack dahingehend implementieren, // dass auch ein Klick auf den Danke Button "unhided" // Alles was Du dazu tun musst, ist folgendes: // Öffne sources/Topics.php und suche nach folgendem Code: // ############### HIDE (LOCK) HACK ################### $DB->query("SELECT author_name FROM ib_beta_posts WHERE topic_id='".$this->topic['tid']."'"); while($info = $DB->fetch_row()) { $allposters[] = $info['author_name']; } // ############### HIDE (LOCK) HACK ################### // ERSETZE diesen durch: // ############### HIDE (LOCK) HACK ################### $DB->query("SELECT author_name FROM ib_beta_posts WHERE topic_id='".$this->topic['tid']."'"); while($info = $DB->fetch_row()) { $allposters[] = $info['author_name']; } $DB->query("SELECT user_name FROM ib_beta_thanks WHERE topic_id='".$this->topic['tid']."'"); while($info = $DB->fetch_row()) { $allposters[] = $info['user_name']; } // ############### HIDE (LOCK) HACK ################### //------------------------------------------------------------------
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:48 AM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.