MyBB Community Forums

Full Version: Pro Attachments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi To All!

This plugin makes the attachments download template more beautiful and professional !

For More information see the attachment!

Download Link: http://mods.mybb.com/view/pro-attachments
Approved Big Grin
This plugin does nothing more than replacing the template postbit_attachments_attachment with this:

<html>
		<head>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style>
<!--
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
td.attachrow		{font: normal 11px Tahoma;}
-->
</style>
	</head>

	<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\">
<!-----Postbit_Attachment---->
	</table>
	<table class=\"attachtable\" id=\"table2\" width=\"95%\" align=\"center\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">
		<tr>
			<td colspan=\"3\" class=\"attachheader\" width=\"100%\" align=\"center\"><b>
			{\$attachment[\'filename\']}</b></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">File Type:</span></td>
			<td class=\"attachrow\" width=\"75%\">
			{\$attachment[\'icon\']}</td>
			<td rowspan=\"3\" class=\"attachrow\" width=\"10%\" align=\"center\">
			<a href=\"attachment.php?aid={\$attachment[\'aid\']}\">
			<img src=\"images/download.png\" alt=\"\" border=\"0\"></a><br>
</td>		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Downloaded:</span></td>
			<td class=\"attachrow\" width=\"75%\"><span class=\"genmed\">{\$attachment[\'downloads\']} times</span></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Size:</span></td>
			<td class=\"attachrow\" width=\"75%\">{\$attachment[\'filesize\']}</td>
		</tr>
	</table>
	<br>
	</head>
	</html>

It's just a simple template edit? Huh
(2010-07-23, 01:18 PM)querschlaeger Wrote: [ -> ]This plugin does nothing more than replacing the template postbit_attachments_attachment with this:

<html>
		<head>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style>
<!--
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
td.attachrow		{font: normal 11px Tahoma;}
-->
</style>
	</head>

	<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\">
<!-----Postbit_Attachment---->
	</table>
	<table class=\"attachtable\" id=\"table2\" width=\"95%\" align=\"center\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">
		<tr>
			<td colspan=\"3\" class=\"attachheader\" width=\"100%\" align=\"center\"><b>
			{\$attachment[\'filename\']}</b></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">File Type:</span></td>
			<td class=\"attachrow\" width=\"75%\">
			{\$attachment[\'icon\']}</td>
			<td rowspan=\"3\" class=\"attachrow\" width=\"10%\" align=\"center\">
			<a href=\"attachment.php?aid={\$attachment[\'aid\']}\">
			<img src=\"images/download.png\" alt=\"\" border=\"0\"></a><br>
</td>		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Downloaded:</span></td>
			<td class=\"attachrow\" width=\"75%\"><span class=\"genmed\">{\$attachment[\'downloads\']} times</span></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Size:</span></td>
			<td class=\"attachrow\" width=\"75%\">{\$attachment[\'filesize\']}</td>
		</tr>
	</table>
	<br>
	</head>
	</html>

It's just a simple template edit? Huh

But it's still a plugin.
(2010-07-23, 01:18 PM)querschlaeger Wrote: [ -> ]This plugin does nothing more than replacing the template postbit_attachments_attachment with this:

<html>
		<head>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style type=\"text/css\">
<!--
td.attachrow		{font: normal 11px Tahoma;}
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
-->
</style>
	<style>
<!--
table.attachtable	{font: normal 12px Tahoma;border-collapse : collapse; }
td.attachheader     {font: normal 11px Tahoma; background-color: #ededed; }
td.attachrow		{font: normal 11px Tahoma;}
-->
</style>
	</head>

	<table border=\"0\" cellpadding=\"0\" cellspacing=\"3\">
<!-----Postbit_Attachment---->
	</table>
	<table class=\"attachtable\" id=\"table2\" width=\"95%\" align=\"center\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\">
		<tr>
			<td colspan=\"3\" class=\"attachheader\" width=\"100%\" align=\"center\"><b>
			{\$attachment[\'filename\']}</b></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">File Type:</span></td>
			<td class=\"attachrow\" width=\"75%\">
			{\$attachment[\'icon\']}</td>
			<td rowspan=\"3\" class=\"attachrow\" width=\"10%\" align=\"center\">
			<a href=\"attachment.php?aid={\$attachment[\'aid\']}\">
			<img src=\"images/download.png\" alt=\"\" border=\"0\"></a><br>
</td>		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Downloaded:</span></td>
			<td class=\"attachrow\" width=\"75%\"><span class=\"genmed\">{\$attachment[\'downloads\']} times</span></td>
		</tr>
		<tr>
			<td class=\"attachrow\" width=\"15%\"><span class=\"genmed\">Size:</span></td>
			<td class=\"attachrow\" width=\"75%\">{\$attachment[\'filesize\']}</td>
		</tr>
	</table>
	<br>
	</head>
	</html>

It's just a simple template edit? Huh
What he said: "This plugin makes the attachments download template more beautiful and professional !"
<html> and <head> within a XHTML body isn't professional (it's not allowed)...
Agreed .. it still a plugin

Most MyBB users do not want or need to know how to edit a template as it's deemed hard work
They seem to forget a lot of plugins can be 'template edited' even to embed javascript.

Problem is the MyBB community has become ' plugin dependent ' ....
(2010-07-23, 04:32 PM)crypt Wrote: [ -> ]Problem is the MyBB community has become ' plugin dependent ' ....

perhaps. but plugins allow easy upgrades as they minimize core file changes
(2010-07-23, 06:27 PM)pavemen Wrote: [ -> ]
(2010-07-23, 04:32 PM)crypt Wrote: [ -> ]Problem is the MyBB community has become ' plugin dependent ' ....

perhaps. but plugins allow easy upgrades as they minimize core file changes
But MyBB templates located in database.
(2010-07-27, 05:02 AM)mrl586 Wrote: [ -> ]
(2010-07-23, 06:27 PM)pavemen Wrote: [ -> ]
(2010-07-23, 04:32 PM)crypt Wrote: [ -> ]Problem is the MyBB community has become ' plugin dependent ' ....

perhaps. but plugins allow easy upgrades as they minimize core file changes
But MyBB templates located in database.

so what. there is a built-in template management system and you never need to mess with the database
Pages: 1 2 3