SimplePortal - 2.3.6 Çıktı!

Started by [SiNaN], March 11, 2008, 02:46:30 AM

Previous topic - Next topic

Cyber_945

#260
abi kurdum türkçeyi forum secenkerine girince bu hatayı veriyo


Fatal error: Cannot redeclare modifysportalsettings() (previously declared in /home/www/hackforum.ch/Sources/ModSettings.php:305) in /home/www/hackforum.ch/Sources/ModSettings.php on line 409

[SiNaN]

Mod sayfasındaki SimplePortalv1.1_Turkish.zip adlı paketi indirip kurun. Geçici olarak kullanabilirsiniz. Sanırım yeni dil paketi 2.0 ile beraber hazır olacak.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

abi kurdum türkçeyi forum secenkerine girince bu hatayı veriyo


Fatal error: Cannot redeclare modifysportalsettings() (previously declared in /home/www/hackforum.ch/Sources/ModSettings.php:305) in /home/www/hackforum.ch/Sources/ModSettings.php on line 409

[SiNaN]

Modu iki defa kurmuşsunuz. ModSettings.php dosyanızı kontrol edin.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

nasi etcem abi msn verimisin konuşlaım

[SiNaN]

[email protected] :P

Modifikasyonun yapması gereken değişiklikler iki defa uygulanmış. Birinin silinmesi gerek. Yapamazsanız ModSettings.php dosyanızı ekleyin.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

abi wala 2 sildim yine olmadı ben msnden şifremi felan versem bana yaparmsınız

Cyber_945

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file is here to make it easier for installed mods to have settings
   and options.  It uses the following functions:

   void ModifyFeatureSettings()
      // !!!

   void ModifyFeatureSettings2()
      // !!!

   void ModifyBasicSettings()
      // !!!

   void ModifyLayoutSettings()
      // !!!

   void ModifyKarmaSettings()
      // !!!

   Adding new settings to the $modSettings array:
   ---------------------------------------------------------------------------
// !!!
*/

/*   Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
      array('check', 'nameInModSettingsAndSQL'),

      And for a text box:
      array('text', 'nameInModSettingsAndSQL')
      (NOTE: You have to add an entry for this at the bottom!)

      In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
      and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

   Here's a quick explanation of how to add a new item:

    * A text input box.  For textual values.
   ie.   array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For numerical values.
   ie.   array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For floating point values.
   ie.   array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
         
         * A large text input box. Used for textual values spanning multiple lines.
   ie.   array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A check box.  Either one or zero. (boolean)
   ie.   array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
         'OptionalReferenceToHelpAdmin'),

    * A selection box.  Used for the selection of something from a list.
   ie.   array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
   Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

    * A password input box. Used for passwords, no less!
   ie.   array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

   For each option:
      type (see above), variable name, size/possible values, description, helptext.
   OR   make type 'rule' for an empty string for a horizontal rule.
   OR   make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   // You need to be an admin to edit settings!
   isAllowedTo('admin_forum');

   // All the admin bar, to make it right.
   adminIndex('edit_mods_settings');
   loadLanguage('Help');
   loadLanguage('ModSettings');

   // Will need the utility functions from here.
   require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'sportal' => 'ModifySPortalSettings',      'sportal' => 'ModifySPortalSettings',      'karma' => 'ModifyKarmaSettings',
   );

   // By default do the basic settings.
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   $context['sub_action'] = $_REQUEST['sa'];

   // Load up all the tabs...
   $context['admin_tabs'] = array(
      'title' => &$txt['modSettings_title'],
      'help' => 'modsettings',
      'description' => $txt['smf3'],
      'tabs' => array(
         'basic' => array(
            'title' => $txt['mods_cat_features'],
            'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
         ),
         'layout' => array(
            'title' => $txt['mods_cat_layout'],
            'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
         ),
         'sportal' => array(
            'title' => $txt['mods_cat_sportal'],
            'href' => $scripturl . '?action=featuresettings;sa=sportal;sesc=' . $context['session_id'],
         ),         'sportal' => array(
            'title' => $txt['mods_cat_sportal'],
            'href' => $scripturl . '?action=featuresettings;sa=sportal;sesc=' . $context['session_id'],
         ),         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),
      ),
   );

   // Select the right tab based on the sub action.
   if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
      $context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

   // Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'sportal' => 'ModifySPortalSettings',      'sportal' => 'ModifySPortalSettings',      'karma' => 'ModifyKarmaSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}

function ModifyBasicSettings()
{
   global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(
         // Big Options... polls, sticky, bbc....
         array('select', 'pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
      '',
         // Basic stuff, user languages, titles, flash, permissions...
         array('check', 'allow_guestAccess'),
         array('check', 'userLanguage'),
         array('check', 'allow_editDisplayName'),
         array('check', 'allow_hideOnline'),
         array('check', 'allow_hideEmail'),
         array('check', 'guest_hideContacts'),
         array('check', 'titlesEnable'),
         array('check', 'enable_buddylist'),
         array('text', 'default_personalText'),
         array('int', 'max_signatureLength'),
      '',
         // Stats, compression, cookies.... server type stuff.
         array('text', 'time_format'),
         array('select', 'number_format', array('1234.00' => '1234.00', '1,234.00' => '1,234.00', '1.234,00' => '1.234,00', '1 234,00' => '1 234,00', '1234,00' => '1234,00')),
         array('float', 'time_offset'),
         array('int', 'failed_login_threshold'),
         array('int', 'lastActive'),
         array('check', 'trackStats'),
         array('check', 'hitStats'),
         array('check', 'enableErrorLogging'),
         array('check', 'securityDisable'),
      '',
         // Reactive on email, and approve on delete
         array('check', 'send_validation_onChange'),
         array('check', 'approveAccountDeletion'),
      '',
         // Option-ish things... miscellaneous sorta.
         array('check', 'allow_disableAnnounce'),
         array('check', 'disallow_sendBody'),
         array('check', 'modlog_enabled'),
         array('check', 'queryless_urls'),
      '',
         // Width/Height image reduction.
         array('int', 'max_image_width'),
         array('int', 'max_image_height'),
      '',
         // Reporting of personal messages?
         array('check', 'enableReportPM'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      // Fix PM settings.
      $_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
      $save_vars = $config_vars;
      $save_vars[] = array('text', 'pm_spam_settings');

      saveDBSettings($save_vars);

      writeLog();
      redirectexit('action=featuresettings;sa=basic');
   }

   // Hack for PM spam settings.
   list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
   $config_vars[] = array('int', 'max_pm_recipients');
   $config_vars[] = array('int', 'pm_posts_verification');
   $config_vars[] = array('int', 'pm_posts_per_hour');

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
   $context['settings_title'] = $txt['mods_cat_features'];

   prepareDBSettingContext($config_vars);
}

function ModifyLayoutSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Compact pages?
         array('check', 'compactTopicPagesEnable'),
         array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', '&nbsp;', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', '&nbsp;', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
      '',
         // Stuff that just is everywhere - today, search, online, etc.
         array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
         array('check', 'topbottomEnable'),
         array('check', 'onlineEnable'),
         array('check', 'enableVBStyleLogin'),
      '',
         // Pagination stuff.
         array('int', 'defaultMaxMembers'),
      '',
         // This is like debugging sorta.
         array('check', 'timeLoadPageEnable'),
         array('check', 'disableHostnameLookup'),
      '',
         // Who's online.
         array('check', 'who_enabled'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=layout');

      loadUserSettings();
      writeLog();
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
   $context['settings_title'] = $txt['mods_cat_layout'];

   prepareDBSettingContext($config_vars);
}
function ModifySPortalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // What does it look like?  [smite]?
         array('check', 'lshowdetails'),
         array('check', 'aspecificannounce'),
         array('check', 'nshowavatar'),
         array('select', 'tttype', array(&$txt['tttypeselect'], &$txt[110], &$txt[301])),
      '',
         array('text', 'aannouncetext'),
         array('int', 'nnewsboard'),
         array('int', 'nnewscount'),
         array('int', 'nnewslength'),
         array('int', 'rppostcount'),
         array('int', 'rttopiccount'),
         array('int', 'ppollid'),
         array('int', 'tppcount'),
         array('int', 'tbbcount'),
         array('int', 'tttcount'),
      '',
         array('check', 'showleft'),
         array('check', 'showright'),
         array('int', 'leftwidth'),
         array('int', 'rightwidth'),
      '',
         array('check', 'showuser'),
         array('check', 'showusersonline'),
         array('check', 'showboardstats'),
         array('check', 'showlatestmember'),
         array('check', 'showquicksearch'),
         array('check', 'showannouncements'),
         array('check', 'showboardnews'),
         array('check', 'showrecentposts'),
         array('check', 'showrecenttopics'),
         array('check', 'showtoppoll'),
         array('check', 'showtopposters'),
         array('check', 'showtopboards'),
         array('check', 'showtoptopics'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=sportal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sportal';
   $context['settings_title'] = $txt['sportalsettings'];

   prepareDBSettingContext($config_vars);
}function ModifySPortalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // What does it look like?  [smite]?
         array('check', 'lshowdetails'),
         array('check', 'aspecificannounce'),
         array('check', 'nshowavatar'),
         array('select', 'tttype', array(&$txt['tttypeselect'], &$txt[110], &$txt[301])),
      '',
         array('text', 'aannouncetext'),
         array('int', 'nnewsboard'),
         array('int', 'nnewscount'),
         array('int', 'nnewslength'),
         array('int', 'rppostcount'),
         array('int', 'rttopiccount'),
         array('int', 'ppollid'),
         array('int', 'tppcount'),
         array('int', 'tbbcount'),
         array('int', 'tttcount'),
      '',
         array('check', 'showleft'),
         array('check', 'showright'),
         array('int', 'leftwidth'),
         array('int', 'rightwidth'),
      '',
         array('check', 'showuser'),
         array('check', 'showusersonline'),
         array('check', 'showboardstats'),
         array('check', 'showlatestmember'),
         array('check', 'showquicksearch'),
         array('check', 'showannouncements'),
         array('check', 'showboardnews'),
         array('check', 'showrecentposts'),
         array('check', 'showrecenttopics'),
         array('check', 'showtoppoll'),
         array('check', 'showtopposters'),
         array('check', 'showtopboards'),
         array('check', 'showtoptopics'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=sportal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sportal';
   $context['settings_title'] = $txt['sportalsettings'];

   prepareDBSettingContext($config_vars);
}
function ModifyKarmaSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Karma - On or off?
         array('select', 'karmaMode', explode('|', $txt['smf64'])),
      '',
         // Who can do it.... and who is restricted by time limits?
         array('int', 'karmaMinPosts'),
         array('float', 'karmaWaitTime'),
         array('check', 'karmaTimeRestrictAdmins'),
      '',
         // What does it look like?  [smite]?
         array('text', 'karmaLabel'),
         array('text', 'karmaApplaudLabel'),
         array('text', 'karmaSmiteLabel'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=karma');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}

?>

Cyber_945

sinan abi ilgilenirmisin lütfen

[SiNaN]

Bakın, gerçekten insanları kırmak istemiyorum burada. Ama yaptığınız sadece şevkimizi kırıyor.

Müsait olsam neden yardımcı olmayayım?

Msn üzerinden destek verilmediğini söyledim yukarıda, neden hala ısrar ediyorsunuz?

Arka arkaya 3 mesaj yazmışsınız, kurallara aykırı ve ne ne işe yarayacak?

Tek eksik özel mesaj kalmıştı, onu da yapmışsınız...

Lütfen biraz daha olgun hareket edin.

Kodların neresinde, nasıl bir hata olduğunu iki kere yazdım yukarıda. Eklediğiniz kodları baştan aşağıya gözden geçiren birisinin sorunun nerede olduğunu görmesi ancak 5 saniye sürecektir.

Bu kadar şeyden sonra şu an destek vermem doğru olmaz. Sorununuzun çözümünü zaten yazdım, ama çözme işini yarına bırakıyorum.

Umarım ısrarlarınız devam etmez.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945


[SiNaN]

Devam ederseniz uyarı alacaksınız.

Yukarıdaki dediklerimi anladığınız zaman yardımcı olacağım.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

vallah anladım billah lütfen abiya bir daha ısrar yok  söz

[SiNaN]

Bundan sonra daha dikkatli olmanızı öneriyorum.
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

#274
cok tesekkur  edirim sinan abi fakat forum secenkerlinde portal ayarı yok boşluk var Temel Özellikler | Düzen ve Seçenekler |BOŞ BURA | Karma  Bu şekil

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

ben bunu kurmsutum hocam

[SiNaN]

Modifications.turkish.php dosyanızı buraya ekler misiniz?
Former SMF Core Developer | My Mods | SimplePortal

Cyber_945

<?php
// Version: 1.1; Modifications
$txt[563] = 'Dogum Tarihi';
$txt[564] = 'Ay (MM)';
$txt[565] = 'Gün (DD)';
$txt[566] = 'Yil (YYYY)';

$txt['uot_total_users_online_today']='Bugün Online Olan Üyeler';
$txt['uot_yesterday']='Dün, þu saatte: ';
$txt['uot_total']='Toplam';
$txt['uot_visible']='Normal';
$txt['uot_hidden']='Gizli';
         $txt['uot_users_online_today_title']='Bugün Online Olan Üyeler';
$txt['uot_total_users_online_today']='Bugün Online Olan Üyeler';
$txt['uot_yesterday']='Dün, þu saatte: ';
$txt['uot_total']='Toplam';
$txt['uot_visible']='Normal';
$txt['uot_hidden']='Gizli';
?>

[SiNaN]

Lütfen yazdıklarımı dikkatlice okuyun. Bahsettiğim paket kurulmamış.

Sizin kurduğunuz pakette sadece İngilizce dili için değişiklikler var. SimplePortal v1.2 paketini kurduktan sonra SimplePortal v.1.1 Turkish paketini de kurmalısınız. Aşağıdaki bağlantıdan bu pakete ulaşabilirsiniz:

http://custom.simplemachines.org/mods/index.php?action=download;mod=1104;id=54566
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: