22 พฤษภาคม 2555, 15:07:25
ยินดีต้อนรับผู้เยี่ยมชม
  • noavata
  • ยินดีต้อนรับคุณ, ผู้เยี่ยมชม กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
    เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
Page Rank

ทำเว็บไซต์ | แต่งบอร์ด | ออกแบบ | SMF | Joomla | Drupal | WordPress | JQuery | CMS | ECommerce | Tel. +668-08577477

ส่งหัวข้อนี้พิมพ์ หน้า: 1 
icon message ผู้เขียน หัวข้อ: Simple ImageShack อัพโหลดไฟล์สำเร็จรูป  (อ่าน 2036 ครั้ง)
0 สมาชิก และ 1 ผู้เยี่ยมชม กำลังดูหัวข้อนี้
*
*


!NeverDie

United States Minor Outlying Islands   หญิง ผู้เริ่มต้นกระทู้นี้ ออฟไลน์ เว็บไซต์
icon message
general เมื่อ: 13 เมษายน 2553, 21:45:14
  • ชื่อ: Simple ImageShack
  • ผู้เขียน: Rik©
  • นำเสนอโดย: DexMoreGroup
  • ประเภท: New Feature
  • รองรับ: SMF 1.1.xx, 2.0.xx
  • ปรับปรุงล่าสุด: 5 มิถุนายน 2553
  • ต้นฉบับ: Simple ImageShack

รายละเอียด
      mods ตัวนี้มีมานานแล้ว แต่ทิ้งช่วงการพัฒนาไปนานพอสมควร เมื่อ 2-3 วันก่อนเข้าไปเจอก็เห็นเขาพัฒนาขึ้นมาได้น่าใช้ระดับหนึ่งก็เลยเอามาเล่าสู่กันฟัง จัดการแปลไทยและแก้ไขอีก 2-3 จุด เลยเอามาฝากกันเนื่องในวันปีใหม่ไทย ลองดูกันนะ..

ตัวอย่าง


อัพโหลดเสร็จแสดง Tag พร้อมรูปย่อ สามารถอัพโหลดเพิ่มโดยการคลิกไอค่อน


ลากมาใส่เลย


สำหรับ SMF 1.1.xx

แก้ไขไฟล์:

file source/ModSettings.php

ค้นหา -->>
โค๊ด: [Select]
);

// By default do the basic settings.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'sis' => 'ModifySisSettings',

ค้นหา -->>
โค๊ด: [Select]
'is_last' => true,
),

แก้เป็น -->>
โค๊ด: [Select]
),
'sis' => array(
'title' => $txt['SimpleImageShack_title'],
'href' => $scripturl . '?action=featuresettings;sa=sis;sesc=' . $context['session_id'],
'is_last' => true,
),

ค้นหา -->>
โค๊ด: [Select]
);

// Default to core (I assume)

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'sis' => 'ModifySisSettings',

ค้นหา -->>
โค๊ด: [Select]
?>

เพิ่มไว้ก่อน -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

file source/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
)

แก้เป็น -->>
โค๊ด: [Select]
'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
),
'SimpleImageShack' => array(
'SimpleImageShack_view' => false,
)

file theme/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
// Finally, the submit buttons.
echo '

แก้เป็น -->>
โค๊ด: [Select]
// SimpleImageShack v3.0.5 - SimpleTweaks.info
if (empty($modSettings['SimpleImageShack_addops']))
{

$sisframe_width = $modSettings['SimpleImageShack_width'];
$sisframe_height = $modSettings['SimpleImageShack_height'];

global $boardurl;

if (!empty($modSettings['SimpleImageShack_permis']))
{
if (!empty($modSettings['SimpleImageShack_enable']) && AllowedTo('SimpleImageShack_view'))
{
echo '
<tr>
<td align="center" colspan="2">
<iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
</td>
</tr>';
}
}
else
{
if (!empty($modSettings['SimpleImageShack_enable']))
{
echo '
<tr>
<td align="center" colspan="2">
<iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
</td>
</tr>';
}
}

}
// SimpleImageshack v3.0.5 - SimpleTweaks.info

// Finally, the submit buttons.
echo '

ค้นหา -->>
โค๊ด: [Select]
</table>
</div>
</td>
</tr>';

// If this post already has attachments on it - give information about them.

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
';
// SimpleImageShack v3.0.5 - SimpleTweaks.info
if (!empty($modSettings['SimpleImageShack_addops']))
{
$sisframe_width = $modSettings['SimpleImageShack_width'];
$sisframe_height = $modSettings['SimpleImageShack_height'];

global $boardurl;

if (!empty($modSettings['SimpleImageShack_permis']))
{
if (!empty($modSettings['SimpleImageShack_enable']) && AllowedTo('SimpleImageShack_view'))
{
echo '
<tr>
<td align="center" colspan="2">
<iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
</td>
</tr>';
}
}
else
{
if (!empty($modSettings['SimpleImageShack_enable']))
{
echo '
<tr>
<td align="center" colspan="2">
<iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
</td>
</tr>';
}
}

}
// SimpleImageshack v3.0.5 - SimpleTweaks.info
echo '

file languages/ModSettings.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SimpleImageshack mod - SimpleTweaks.info
$txt['SimpleImageShack_enable'] = 'Enable the Simple ImageShack mod';
$txt['SimpleImageShack_addops'] = 'Display Simple ImageShack inside the Additional Options';
$txt['SimpleImageShack_permis'] = 'Use SMF permission system with Simple ImageShack';
$txt['SimpleImageShack_rembar'] = 'Remove information bar from thumbnail';
$txt['SIS_imagelink'] = 'Show image link';
$txt['SIS_imagelink_bbcode'] = 'Show bbcode image';
$txt['SIS_thumblink_bbcode'] = 'Show bbcode thumbnail';
$txt['SIS_thumblink_click'] = 'Show bbcode clickable thumbnail';
$txt['SimpleImageShack_forumtag'] = 'Add Forumtag';
$txt['SimpleImageShack_tags'] = 'Add Personaltag(s) to image<br /><small>Use commas between multiple tags</small>';
$txt['SimpleImageShack_cookie'] = 'Your ImageShack Registration Code<br /><small><a href="http://profile.imageshack.us/prefs/index.php" target="_blank">click here to retrieve your reg code</a></small>';
$txt['SimpleImageShack_width'] = 'Simple ImageShack iframe Width';
$txt['SimpleImageShack_height'] = 'Simple ImageShack iframe Height';
$txt['SimpleImageShack_color'] = 'Simple ImageShack Text Color (hex)';
// SimpleImageshack mod - SimpleTweaks.info

file languages/ManagePermissions.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SimpleImageshack mod - SimpleTweaks.info
$txt['permissiongroup_SimpleImageShack'] = 'Simple ImageShack mod';
$txt['permissionname_SimpleImageShack_view'] = 'View Simple ImageShack mod';
$txt['permissionhelp_SimpleImageShack_view'] = 'Enabling this permission adds an ImageShack.us upload field to the post template. This feature can be enabled and configured in \'Edit Features and Options---Layout and Options\'.';
// SimpleImageshack mod - SimpleTweaks.info

file languages/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// SimpleImageshack mod - SimpleTweaks.info
$helptxt['SimpleImageShack_enable'] = 'This option allows you to turn on or off the Simple ImageShack mod';
$helptxt['SimpleImageShack_addops'] = 'This option allows you to put the mod inside the Additional Options';
$helptxt['SimpleImageShack_permis'] = 'This option allows you to turn on or off the use of the SMF permission system with the Simple ImageShack mod';
$helptxt['SimpleImageShack_rembar'] = 'This option allows you to remove the information bar from thumbnails';
$helptxt['SimpleImageShack_forumtag'] = 'This option adds a tag with forum+user info to the image';
$helptxt['SimpleImageShack_tags'] = 'This option allows you to add one or more Personaltags to the image<br />
<small>Use commas between multiple tags</small>
';
$helptxt['SimpleImageShack_cookie'] = 'This option allows you to load the image into your ImageShack account.<br />
<small>Leave blank if you don\'t have an ImagShack account.</small><br />
<br /><br />
<b>How to get your registration code</b><br />
- Register at ImageShack<br /> <a href="http://profile.imageshack.us/registration/" target="_blank">http://profile.imageshack.us/registration/</a> and log in.<br /><br />
- When logged-in go to<br /> <a href="http://profile.imageshack.us/prefs/index.php" target="blank">http://profile.imageshack.us/prefs/index.php</a><br /><br />
- Copy your ImageShack Registration Code
';
$helptxt['SimpleImageShack_width'] = 'This option allows you to set the width of the iframe of the Simple ImageShack mod';
$helptxt['SimpleImageShack_height'] = 'This option allows you to set the height of the iframe of the Simple ImageShack mod';
$helptxt['SimpleImageShack_color'] = 'This option allows you to set the text-color of the Simple ImageShack mod';
// SimpleImageshack mod - SimpleTweaks.info

สร้างฐานข้อมูล เซฟโค้ดนี้เป็น add_settings.php อัพไปไว้ในโฟลเดอร์บอร์ด (ที่เดียวกับ SSI.php)  พิมพ์ url บอร์ดของคุณ/add_settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************
* Name : Simple ImageShack
* Version : 3.0.5
*******************************/

/*******************************************************************************

This script can be used to add new settings into the database for use
with SMF's $modSettings array.  It is meant to be run either from the
package manager or directly by URL.

*******************************************************************************/

// Set the below to true to overwrite already existing settings with the defaults. (not recommended, use false instead.)
$overwrite_old_settings false;

// List settings here in the format: setting_key => default_value.  Escape any "s. (" => \")
$mod_settings = array(
'SimpleImageShack_enable' => '1',
'SimpleImageShack_addops' => '1',
'SimpleImageShack_permis' => '0',
'SimpleImageShack_rembar' => '0',
    
'SIS_imagelink' => '1',
    
'SIS_imagelink_bbcode' => '1',
    
'SIS_thumblink_bbcode' => '1',
    
'SIS_thumblink_click' => '1',
'SimpleImageShack_forumtag' => '1',
'SimpleImageShack_tags' => 'SISv304,SimpleTweaks',
'SimpleImageShack_cookie' => 'Your ImageShack Registration Code',
'SimpleImageShack_width' => '660',
'SimpleImageShack_height' => '240',
'SimpleImageShack_color' => 'BFBFBF',
);

/******************************************************************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

// Turn the array defined above into a string of MySQL data.
$string '';
foreach (
$mod_settings as $k => $v)
$string .= '
(\'' 
$k '\', \'' $v '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result db_query("
. ($overwrite_old_settings 'REPLACE' 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" 
substr($string0, -1), __FILE____LINE__);

// Uh-oh spaghetti-oh!
if ($result === false)
echo '<b>Error:</b> Database modifications failed!';

?>

ดาวน์โหลด: sis.rar แตกไฟล์แล้วอัพโหลดไปไว้ใน $boarddir CHMOD=777
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

การตั้งค่า:


ภาษาไทย: Simple ImageShack 305 โดย: Crazy™ บอร์ด: SMF Thai Translation

ลิงค์หัวข้อ: http://dexmore.com/topic/1386
Windows XP    Firefox 3.6.3   see ip บันทึกการเข้า
ดูรายการสิ่งของบัตรผ่านห้องเกมส์ใช้ได้ 30 วัน  

-:-DexMore.Com แหล่งมั่วสุมทางปัญญา-:-
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 1 เมื่อ: 24 มิถุนายน 2553, 15:46:29
สำหรับ SMF 2.0.xx

แก้ไขไฟล์:

file $themedir/Post.template.php

ค้นหา -->>
โค๊ด: [Select]
[ // Finally, the submit buttons.
echo '

แก้เป็น -->>
โค๊ด: [Select]
// SimpleImageShack v3.1.3 - SimpleTweaks.info
    if (empty($modSettings['sis_addops']))
    {
        global $boardurl;
        $sisframe_width = $modSettings['sis_width'];
        $sisframe_height = $modSettings['sis_height'];

        if (!empty($modSettings['sis_permis']))
        {
            if (!empty($modSettings['sis_enable']) && AllowedTo('sis_view'))
            {
                    echo '
                        <div>
                            <iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
                        </div>
                    ';
            }
        }
        else
        {
            if (!empty($modSettings['sis_enable']))
            {
                    echo '
                        <div>
                            <iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
                        </div>
                    ';
            }
        }
    }
// SimpleImageShack v3.1.3 - SimpleTweaks.info

// Finally, the submit buttons.
echo '

ค้นหา -->>
โค๊ด: [Select]
</div>';

// If this post already has attachments on it - give information about them.

แก้เป็น -->>
โค๊ด: [Select]
';
// SimpleImageShack v3.1.3 - SimpleTweaks.info
    if (!empty($modSettings['sis_addops']))
    {
     global $boardurl;
     $sisframe_width = $modSettings['sis_width'];
     $sisframe_height = $modSettings['sis_height'];

        if (!empty($modSettings['sis_permis']))
        {
         if (!empty($modSettings['sis_enable']) && AllowedTo('sis_view'))
         {
                    echo '
                        <div>
                            <iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
                        </div>
                    ';
         }
        }
        else
        {
         if (!empty($modSettings['sis_enable']))
         {
                    echo '
                        <div>
                            <iframe src="' . $boardurl . '/sis/SISiframe.php" scrolling="auto" frameborder="0" width="' . $sisframe_width . '" height="' . $sisframe_height . '" allowtransparency="true"> You must have an iframe-compatable browser to view the ImageShack.us upload form.</iframe>
                        </div>
                    ';;
         }
        }
    }
// SimpleImageShack v3.1.3 - SimpleTweaks.info
echo '

file $sourcedir/ManageSettings.php

ค้นหา -->>
โค๊ด: [Select]
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sis' => 'ModifySisModSettings',

ค้นหา -->>
โค๊ด: [Select]
'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sis' => array(
                'label' => 'Simple ImageShack',
),

ค้นหา -->>
โค๊ด: [Select]
// If you have a general mod setting to add stick it here.

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
// Simple ImageShack v3.1.3
function ModifySisModSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

$config_vars = array(

array('check', 'sis_enable'),
array('text', 'sis_cookie', 36),
'',
array('check', 'sis_permis'),
array('check', 'sis_addops'),
array('check', 'sis_forumtag'),
array('text', 'sis_tags', 36),
'',
array('check', 'sis_imagelink'),
array('check', 'sis_imagelink_bbcode'),
array('check', 'sis_thumblink_bbcode'),
array('check', 'sis_thumblink_click'),
array('check', 'sis_rembar'),
'',
array('int', 'sis_width'),
array('int', 'sis_height'),
array('text', 'sis_color'),
array('select', 'sis_loader', array('0' => &$txt['sis_loader_0'], '1' => &$txt['sis_loader_1'], '2' => &$txt['sis_loader_2'], '3' => &$txt['sis_loader_3'], '4' => &$txt['sis_loader_4'])),
);

if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sis';
$context['settings_title'] = 'Simple ImageShack';

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: SIS Rocks!
saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: Keep IT Simple!
redirectexit('action=admin;area=modsettings;sa=sis');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: Friendly Froggy!
prepareDBSettingContext($config_vars);
}
// Simple ImageShack v3.1.3

file $sourcedir/Admin.php

ค้นหา -->>
โค๊ด: [Select]
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:

เพิ่มไว้ก่อน -->>
โค๊ด: [Select]
'sis' => array('Simple ImageShack'),

file $sourcedir/ManagePermissions.php

ค้นหา -->>
โค๊ด: [Select]
'post_attachment' => array(false, 'attachment', 'attach'),

เพิ่มไว้หลัง -->>
โค๊ด: [Select]
'sis_view' => array(false, 'sis', 'sis'),

file $languagedir/Modifications.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// Simple ImageShack v3.1.3
$txt['sis_enable'] = 'Enable Simple ImageShack';
$txt['sis_cookie'] = 'Your ImageShack.us registration code<br /><small><a href="http://profile.imageshack.us/prefs/index.php" target="_blank">click here to retrieve your reg code</a></small>';
$txt['sis_addops'] = 'Display inside additional options';
$txt['sis_permis'] = 'Use smf permission-system';
$txt['sis_forumtag'] = 'Add forumtag';
$txt['sis_tags'] = 'Add Personaltag(s) to image<br /><small>use commas between multiple tags</small>';
$txt['sis_loader'] = 'Select loader image';
$txt['sis_loader_0'] = 'off';
$txt['sis_loader_1'] = 'classic';
$txt['sis_loader_2'] = 'modern blue';
$txt['sis_loader_3'] = 'modern green';
$txt['sis_loader_4'] = 'froggy';
$txt['sis_rembar'] = 'Remove information bar from thumbnail';
$txt['sis_imagelink'] = 'Show direct link to image';
$txt['sis_imagelink_bbcode'] = 'Show bbcode image';
$txt['sis_thumblink_bbcode'] = 'Show bbcode thumbnail';
$txt['sis_thumblink_click'] = 'Show bbcode clickable thumbnail';
$txt['sis_width'] = 'Simple ImageShack iframe width';
$txt['sis_height'] = 'Simple ImageShack iframe height';
$txt['sis_color'] = 'Simple ImageShack text color (hex)';
$txt['permissiongroup_sis'] = 'Simple ImageShack mod';
$txt['permissiongroup_simple_sis'] = 'Use Simple ImageShack mod';
$txt['permissionname_sis_view'] = 'Use the Simple ImageShack mod';
$txt['permissionhelp_sis_view'] = 'Enabling this permission adds an ImageShack.us upload field to the post template';
// Simple ImageShack v3.1.3

file $languagedir/Help.thai-utf8.php

เพิ่ม -->>
โค๊ด: [Select]
// Simple ImageShack v3.1.3
$helptxt['sis_enable'] = 'This will turn on the Simple ImageShack mod.';
$helptxt['sis_cookie'] = 'This option allows you to load the image into your ImageShack account.<br />
<small>Leave blank if you don\'t have an ImagShack account.</small><br />
<br /><br />
<b>How to get your registration code</b><br />
- Register at ImageShack<br /> <a href="http://profile.imageshack.us/registration/" target="_blank">http://profile.imageshack.us/registration/</a> and log in<br /><br />
- When logged-in go to<br /> <a href="http://profile.imageshack.us/prefs/index.php" target="blank">http://profile.imageshack.us/prefs/index.php</a><br /><br />
- Copy and Paste your ImageShack Registration Code
';
$helptxt['sis_addops'] = 'This option allows you to put the mod inside the Additional Options.';
$helptxt['sis_permis'] = 'This option allows you to turn on or off the use of the SMF permission system with the Simple ImageShack mod.';
$helptxt['sis_forumtag'] = 'This option adds a tag with forum+user info to the image';
$helptxt['sis_tags'] = 'This option allows you to add one or more Personaltags to the image.<br />
<small>Use commas between multiple tags</small>
';
$helptxt['sis_loader'] = 'This option allows you to select the loader image.<br />
    <table border="1" bordercolor="LightSteelBlue" rules="rows" frame="hsides" cellpadding="3" cellspacing="1">                
    <tr><td>classic</td><td><img src="./sis/img/sis-loader_1.gif" alt=""></td>                
    </tr>                
    <tr><td>modern blue</td><td><img src="./sis/img/sis-loader_2.gif" alt=""></td>                
    </tr>                
    <tr><td>modern green</td><td><img src="./sis/img/sis-loader_3.gif" alt=""></td>                
    </tr>                
    <tr><td>froggy</td><td><img src="./sis/img/sis-loader_4.gif" alt=""></td>                
    </tr>        
    </table>
                        ';
$helptxt['sis_rembar'] = 'This option allows you to remove the information bar from thumbnails.';
$helptxt['sis_imagelink'] = 'Enable to show a direct link to the image.';
$helptxt['sis_imagelink_bbcode'] = 'Enable to show the bbcode for direct link.';
$helptxt['sis_thumblink_bbcode'] = 'Enable to show the bbcode for thumbnail.';
$helptxt['sis_thumblink_click'] = 'Enable to show the bbcode for clickable thumbnail.';
$helptxt['sis_width'] = 'This option allows you to set the width of the Simple ImageShack iframe.';
$helptxt['sis_height'] = 'This option allows you to set the height of the Simple ImageShack iframe.';
$helptxt['sis_color'] = 'This option allows you to set the text-color of Simple ImageShack.';
// Simple ImageShack v3.1.3

สร้างไฟล์: SISv313_add-settings.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url/$boarddir/SISv313_add-settings.php -->> Enter เสร็จแล้วลบทิ้ง
โค๊ด: [Select]
<?php
/*******************************
* Name : Simple ImageShack
* Version : 3.1.3
*******************************/

// If SSI.php is in the same place as this file, and SMF isn't defined, this is being run standalone.
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');


// Add mod setting to the database
global $modSettings;

if(!isset(
$modSettings['sis_enable']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_enable", "1")'
,
      array()
   );


if(!isset(
$modSettings['sis_cookie']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_cookie", "Your ImageShack Registration Code")'
,
      array()
   );

if(!isset(
$modSettings['sis_permis']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_permis", "0")'
,
      array()
   );

if(!isset(
$modSettings['sis_addops']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_addops", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_forumtag']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_forumtag", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_tags']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_tags", "SIS313,www.SimpleTweaks.info")'
,
      array()
   );

if(!isset(
$modSettings['sis_imagelink']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_imagelink", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_imagelink_bbcode']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_imagelink_bbcode", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_thumblink_bbcode']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_thumblink_bbcode", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_thumblink_click']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_thumblink_click", "1")'
,
      array()
   );

if(!isset(
$modSettings['sis_rembar']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_rembar", "0")'
,
      array()
   );

if(!isset(
$modSettings['sis_width']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_width", "660")'
,
      array()
   );

if(!isset(
$modSettings['sis_height']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_height", "240")'
,
      array()
   );

if(!isset(
$modSettings['sis_color']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_color", "7A7A7A")'
,
      array()
   );

if(!isset(
$modSettings['sis_loader']))
   
$smcFunc['db_query']('''
      INSERT INTO {db_prefix}settings
      VALUES ("sis_loader", "2")'
,
      array()
   );

?>

ดาวน์โหลด: sis.rar แตกไฟล์แล้วอัพโหลดไปไว้ใน $boarddir CHMOD=777
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Com

ลิงค์หัวข้อ: http://dexmore.com/topic/1386
Windows XP    Firefox 3.6.4   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
ด้วยรักษ์อาข่า โซ
*
***


รักษ์ชนเผ่าอาข่า

Thailand   ชาย ออฟไลน์ เว็บไซต์
icon message
general ความคิดเห็นที่ 2 เมื่อ: 13 พฤษภาคม 2554, 23:13:30
ผมเพิ่ม add_settings.php ไม่ได้เลยครับ

เวลา http://www.xxxx.com/forum/add_settings.php กด enter
ไม่มีปฏิกิริยาอะไร เป็นหน้าขาวไป

ขอบคุณมากครับ

ลิงค์หัวข้อ: http://dexmore.com/topic/1386
Windows XP    Chrome 11.0.696.65   see ip บันทึกการเข้า
*
*


!Personal

Germany   ชาย ออฟไลน์544566157 DexMore DexMore DexMore
เว็บไซต์
icon message
general ความคิดเห็นที่ 3 เมื่อ: 13 พฤษภาคม 2554, 23:41:20
หน้าขาวก็เสร็จซิครับ ดูในคำสั่งการเพิ่มตารางซิครับ ถ้าสำเร็จมันจะไม่แจ้งอะไรเลย ถ้าผิดพลาดมันถึงจะบอก..

ลิงค์หัวข้อ: http://dexmore.com/topic/1386
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
ดูรายการสิ่งของสำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  สำหรับติดหมุดกระทู้ของคุณ!  เพิ่มเวลาที่อยู่ในระบบอีก 12 ชั่วโมง  น้องหมี..เอาไว้กอดนอนแทนกิ๊ก  สำหรับบอกรักใครสักคน ก็ส่งไปให้เขาเลย!  
*



Thailand   ชาย ออฟไลน์
icon message
general ความคิดเห็นที่ 4 เมื่อ: 17 มิถุนายน 2554, 00:16:53
ลำบากมากแต่ก็โอเค

ลิงค์หัวข้อ: http://dexmore.com/topic/1386
Windows XP    Firefox 4.0.1   see ip บันทึกการเข้า
โฮสต์ดีๆ บริการด้วยใจ
ส่งหัวข้อนี้พิมพ์ หน้า: 1 
กระโดดไป:  

Creative Commons License

SMF Thai Translation Powered by SMF © 2006–2012, Simple Machines LLC

WordPress Google เข้าเยี่ยมชมหน้านี้ล่าสุดเมื่อ : 21 พฤษภาคม 2555, 11:18:00

jQuery Plugin Copyright © 2551-2555 Themes Design & Hosting by DexMoreGroup

Sitemap | Thai Simple Machines Forum support SMF Thai

Web Begining | SMF Modifications | SMF Thai Translation Web Begining

Drupal | WordPress | CMS Joomla | jQuery Plugin | Web Graphics CMS Joomla