Q-v-n-s-Q
12-18-2006, 10:00 PM
Pop Attach beta
this is beta version only!!
i was in a hurry so ima share it fist!!!
i will update latter
Enjoy
open dl.php
replace : http://www.sitename.com/ to your site url
upload dl.php to /forumroot
replace : postbit_attachment
with:
<script language="javascript">
<!--
var openwin;
function popupwin(url,myname,w,h,s)
{
settings='height='+h+',width='+w+',scrollbars='+s+ ',toolbar=no,location=no,status=no,menubar=no,resi zable=no,dependent=no'
openwin=window.open(url,myname,settings);
}// -->
</script>
<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="#" onClick="popupwin('dl.php?attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline] ','Loading','400','400','no');">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)</td>
</tr>
done!!!
example: http://www.gamerzarea.com/forums/php/1294-pop-attachment-vb3-5-x.html
this is beta version only!!
i was in a hurry so ima share it fist!!!
i will update latter
Enjoy
open dl.php
replace : http://www.sitename.com/ to your site url
upload dl.php to /forumroot
replace : postbit_attachment
with:
<script language="javascript">
<!--
var openwin;
function popupwin(url,myname,w,h,s)
{
settings='height='+h+',width='+w+',scrollbars='+s+ ',toolbar=no,location=no,status=no,menubar=no,resi zable=no,dependent=no'
openwin=window.open(url,myname,settings);
}// -->
</script>
<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="#" onClick="popupwin('dl.php?attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline] ','Loading','400','400','no');">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)</td>
</tr>
done!!!
example: http://www.gamerzarea.com/forums/php/1294-pop-attachment-vb3-5-x.html