2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 8604 is not allowed to access /home/hosting/fruitcak3/public_html/forums/Packages/temp owned by uid 33
ไฟล์: /home/hosting/fruitcak3/public_html/forums/Sources/Subs-Package.php
บรรทัด: 1476
<id>
HideTag_10
</id>
<version>
1.00
</version>
<mod info>
Add Hide Tag in Post Message.
</mod info>
<author>
ThaiAnime
</author>
<homepage>
http://helloproject.thaianime.net
</homepage>
<edit file>
Sources/Subs.php
</edit file>
<search>
global $modSettings, $scripturl, $txt, $settings, $context;
</search>
<replace>
global $modSettings, $scripturl, $txt, $settings, $context;
global $ID_MEMBER, $db_prefix, $user_info;
</replace>
<search>
// Moving text... [move]stuff[/move]
</search>
<replace>
// [hide]Guests cannot see this! Mwahaha![/hide]
$codefromcache[] = '~\[hide\](.+?)\[/hide\]~i';
if ($disabled['hide'] || $user_info['is_admin'])
$codetocache[] = $txt['hide_tag'] . '<br><div class="code"> $1</div>';
else
{
if (!empty($context['current_topic']) && !$user_info['is_guest'])
{
$request = mysql_query("
SELECT ID_MSG FROM {$db_prefix}messages
WHERE ID_MEMBER = $ID_MEMBER
AND ID_TOPIC = $context[current_topic]
LIMIT 1");
if (mysql_num_rows($request))
$codetocache[] = $txt['hide_tag'] . '<br><div class="code"> $1</div>';
else
$codetocache[] = $txt['hide_tag'] . '<br><div class="code">' . $txt['hide_tag_a'] . '</div>';
mysql_free_result($request);
}
else
$codetocache[] = $txt['hide_tag'] . '<br><div class="code">' . $txt['hide_tag_b'] . '</div>';
}
// Moving text... [move]stuff[/move]
</replace>
<edit file>
Themes/default/languages/Modifications.english.php
</edit file>
<search>
?>
</search>
<replace>
//Hide Tag
$txt['hide_tag'] = 'Hide Message :';
$txt['hide_tag_a'] = 'This message is hidden from users who have not posted in this topic. To get rid of this and see the actual message, you must reply to the topic.';
$txt['hide_tag_b'] = 'This message is hidden from guests. To get rid of this and see the actual message, you must register or login, and then reply to the topic.';
?>
</replace>
<edit file>
Themes/default/languages/Modifications.thai.php
</edit file>
<search>
?>
</search>
<replace>
//ซ่อนข้อความ
$txt['hide_tag'] = '<b>ข้อความที่ถูกซ่อน :</b> ';
$txt['hide_tag_a'] = 'ข้อความนี้ได้ถูกซ่อน คุณต้องโพสตอบหัวข้อนี้ก่อน.';
$txt['hide_tag_b'] = 'ข้อความนี้ได้ถูกซ่อน <b>บุคคลทั่วไป</b>ถ้าต้องการดูข้อความให้คุณ<a href="index.php?action=register">สมัครสมาชิก</a>หรือ<a href="index.php?action=login">เข้าสู่ระบบ</a>ก่อน แล้วตอบหัวข้อนี้.';
?>
</replace>
<?xml version="1.0" ?>
<!DOCTYPE package-info (View Source for full doctype...)>
- <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<name>Ultimate Shoutbox</name>
<id>grudge:ultimate_shout</id>
<type>modification</type>
<version>1.31</version>
- <install>
<require-file name="shout.php" destination="$sourcedir" />
<require-file name="shout.template.php" destination="$themedir" />
<require-file name="script_shout.js" destination="$themedir" />
<require-file name="deleteshout.gif" destination="$themedir/images" />
<code type="file">shoutPdb.php</code>
- <readme type="inline">
- <![CDATA[
This allows you to put put a shoutbox on your forum, and via SSI anywhere on your web site.
It links in with your members database, and shouting can be limited to admins, members or guests.
The ultimate shoutbox was originally written by Greg Haase and was ported to SMF by Grudge
After installation you will need to add the shoutbox to your template. To do this just call the smfshout(); function
from somewhere within your template. You may need to add it as ', smfshout(), ' if you are inside an echo statement.
Example:
If you want to add the shoutbox to the LEFT of your web page, you could make the following change in index.template.php.
Find:
[code]
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
This is just a basic example, but should be enough to get you started.<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
อ้าวทุกคนกำลังรอคุณติดตั้งอยู่นะเนี๊ย
ว่าแต่ติดตั้งไม่ได้เหรอครับ
งั้นเดี๋ยวจาลองเล่นให้ครับ
เจ้าหญิงมีบัญชามาแล้วนี่ ผู้น้อยอย่างเราต้องทำตามบัญชา
แต่ก็อย่างที่เจ้าหญิงว่า เราจะต้องมาอับ มด ตามไปด้วย ซึ่งบางทีก็มีปัญหา หรือต้องมานั่งไล่โค้ดกัน ปวดหัวพอสมควร
อีกอย่าง หนึ่ง ไม่ได้แปลว่า ทุก ๆ มด จะติดตั้งกับเว็บคุณ หรือ server คุณได้ มันขึ้นอยู่กับสิ่งแวดล้อมอื่นประกอบด้วย
งั้นเราก็ลองมาช่วยกันละกัน
เพื่อเจ้าหญิง เพื่อชุมชน smf ของคนไทย
ปล. ต้องให้คุณเก่ง เพิ่มบอร์ด มด ขึ้นมาอีกตัว
เราไม่มีอำนาจทำ ไม่เหมือนเจ้าหญิงเค้า มีตำแหน่งเป็นถึง Global Moderator แต่ไม่รู้หรอกว่ามันแปลว่าอาไร แต่คาดว่าน่าจะมีอำนาจล้นเหลือ พอที่ตั้งบอร์ดมดขึ้นมาใหม่ได้
การให้คือสิ่งที่เรามีเหมือนกัน. . .
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
ของ index.template.php<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="top">
<td width="120">', smfshout(), '</td>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
แต่ปัญหา คือ index.template.php ของผมไม่มี
โค๊ด:
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';