pertanyaan
11-20-2011, 12:41 AM
Hello, i want to know if it possible to modified attachment for "Source / Reference link".
I didn't use BBcode (to prevent post from junk link), or custom field that create additonal database table.
I tried some modifications to newattachment.php, but still failed.
The process i need :
- get original file url ($vbulletin->GPC['attachmenturl'])
- insert attachmenturl to filename field on attachment table
- disable uploading function
Final goal is replace attachment (postbit_attachment) ,
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
to
<a href="{vb:raw attachment.filename}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
let me know how to do this modification, thanks :D
I didn't use BBcode (to prevent post from junk link), or custom field that create additonal database table.
I tried some modifications to newattachment.php, but still failed.
The process i need :
- get original file url ($vbulletin->GPC['attachmenturl'])
- insert attachmenturl to filename field on attachment table
- disable uploading function
Final goal is replace attachment (postbit_attachment) ,
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
to
<a href="{vb:raw attachment.filename}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
let me know how to do this modification, thanks :D