السلام عليكم ورحمة الله
احاول اربط سكربيت التحميل الذي وضعته من قبل بهاك بدل الطريقة اليدويه
اردت من الهاك التعديل على القوالب التالية
new_reply
new_topic
تم التعديل على
new_topic فقط ممكن المساعدة
CODE
<?xml version="1.0" encoding="UTF-8"?>
<plugin name="رفع صور">
<version>الاول</version>
<description>ملحق يجعل صور المنتدى لاتضيعً</description>
<author><a href="http://www.pbboardstyle.info">alshuiby</a></author>
<url>www.4ye.net</url>
<installcode><![CDATA[]]></installcode>
<uninstallcode><![CDATA[]]></uninstallcode>
<templates>
<template name="new_topic" type="before">
<find><![CDATA[<script type='text/javascript'>
function ShowPollTable()
{
]]></find>
<action><![CDATA[ <SCRIPT LANGUAGE="JavaScript">
function OpenUploadWindow() {
window.open('4y/index.php', 'SENDFILE', "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=160,left = 112,top = 259")}
</script>
]]>
</action>
</template>
<template name="new_topic" type="after">
<find><![CDATA[<td class="row1" colspan="2" align="center">
]]></find>
<action><![CDATA[ <input type=button value="رفــع الصور" onClick="OpenUploadWindow()" style="border:1px solid #000000; font-size:10px">
]]>
</action>
</template>
<template name="new_reply" type="before">
<find><![CDATA[
{template}address_bar_part1{/template}
]]></find>
<action><![CDATA[ <SCRIPT LANGUAGE="JavaScript">
function OpenUploadWindow() {
window.open('4y/index.php', 'SENDFILE', "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=160,left = 112,top = 259")}
</script>
]]>
</action>
</template>
<template name="new_reply" type="after">
<find><![CDATA[<td class="row1" align="center">
]]></find>
<action><![CDATA[ <input type=button value="رفــع الصور" onClick="OpenUploadWindow()" style="border:1px solid #000000; font-size:10px">
]]>
</action>
</template>
</templates>
</plugin>