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) ,
Code:
<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
Code:
<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