[REQ][BBCODE] Download Box

Hoxxy

New Member
1. Download the zip, extract it and upload the images to "images/misc/" folder in your forum.
2. Go to AdminCP » Custom BB Codes » Add New BB Code


Title: Download Box
Tag: down
Replacement:
HTML:
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td height="39" colspan="3">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td width="113" background="images/misc/down1.gif" height="39">
				&nbsp;</td>
				<td background="images/misc/down2.gif">&nbsp;</td>
				<td width="48" background="images/misc/down3.gif" height="39">
				&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td bgcolor="#C0DDFF" width="10">&nbsp;</td>
		<td bgcolor="#C0DDFF">
		<table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #007FD8" bgcolor="#FFFFFF">
			<tr>
				<td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center">
				<p style="margin: 5px">{param}</td>
			</tr>
		</table>
		</td>
		<td bgcolor="#C0DDFF" width="10">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="3">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td background="images/misc/down4.gif" height="11" width="11">
				<img border="0" src="images/misc/space.gif" width="1" height="1"></td>
				<td bgcolor="#C0DDFF" height="11">
				<img border="0" src="images/misc/space.gif" width="1" height="1"></td>
				<td background="images/misc/down5.gif" height="11" width="11">
				<img border="0" src="images/misc/space.gif" width="1" height="1"></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
Example: [down]http://www.your-link.com[/down]
Description: Put your link(s) in a custom box.
Use {option}: No
Button Image: images/misc/down-button.gif
 

Freedom

New Member
This works good, but when links are added they go as live links and i want them to be links as such as in the code box, can anyone help me with the code for that. Thanks in advance.
 

Hoxxy

New Member
Freedom said:
This works good, but when links are added they go as live links and i want them to be links as such as in the code box, can anyone help me with the code for that. Thanks in advance.

In the code find:
HTML:
{param}

and try wrapping it in code tags

HTML:
[CODE]{param}[/CODE]
 

nitins60

New Member
hoxxy, i just want to modify existing code tag as download tag instead of adding one more tag. since my forum got many download links in code tags already plz help
 

pandusetiawan

New Member
nitins60 said:
hoxxy, i just want to modify existing code tag as download tag instead of adding one more tag. since my forum got many download links in code tags already plz help

Maybe you can try to use the SQL query function at the ACP->Maintenance section with the following command (BUT PLEASE USE WITH EXTREME CAREFULL AND BACKUP YOUR DATABASE FIRST) :

PHP:
update `post` set pagetext=replace(pagetext,'[code]','[download]'),pagetext=replace(pagetext,'[/code]','[/download]')

But "replace" function is case sensitive, so maybe you have to run those query to replace CODE & /CODE with download & /download.

Once again, backup your database first.
 
Top