ติดต่อลงโฆษณา [email protected]

ผู้เขียน หัวข้อ: ติดตั้ง mod นี้ไม่ได้อะครับ  (อ่าน 3150 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

CodePro

  • บุคคลทั่วไป
เวลาผมติดตั้ง mod ใช้วิธี อัพโหลดไม่ได้ครับ ก็ต้องมา แก้โค๊ต และ อัพโหลดไฟล์เองตลอด มาเจอ mod นี้ งง อะครับ

<operation> มันคืออะไรง่าา ให้ หาต้อง ไหนและเพิ่มหรือ ทับ อะไร  ??? ??? ???

โค้ด: [เลือก]
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<!-- This information needs to be the same as that in the package-info.xml. -->
<id>snork13:MySpace</id>
<version>1.0</version>

<!-- Edit a specific file.. -->
<file name="$themedir/Profile.template.php">
<!-- A seach operation, with search rules and code to modify the file with. -->
<operation>
<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->
<search position="before"><![CDATA[<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>]]></search>
<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->
<add><![CDATA[</tr><tr>
<td><b>MySpace: </b></td> <td><input type="text" name="default_options[myspace]" size="50" value="', @$context['member']['options']['myspace'], '" /></td>

]]></add>
</operation>

<operation>
<search position="before"><![CDATA[<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>]]></search>
<add><![CDATA[</tr><tr>
', !empty($context['member']['options']['myspace']) ? '</tr><tr> <td><b>MySpace: </b></td> <td>' . $context['member']['options']['myspace'] . '</td>' : '', '
]]></add>
</operation>
</file>

<file name="$themedir/Display.template.php">
<!-- A seach operation, with search rules and code to modify the file with. -->
<operation>
<!-- Search for this text before the code we add.  You can also search for after, and the end of the file. -->
<search position="before"><![CDATA[ // Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';]]></search>
<!-- Add this text when we find it.  Note that it's on it's own line on purpose, and the CDATA keeps things clean. -->
<add>
<![CDATA[if (!empty($message['member']['options']['myspace'])) echo '<a href="http://www.myspace.com/', $message['member']['options']['myspace'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/myspace.gif"></a>';
]]></add>
</operation>

</file>
</modification>