Jump to content


Tutorial info Visit support topic

  • Added on: Jul 25 2006 09:51 PM
  • Date Updated: Jul 28 2006 07:13 PM
  • Views: 1075
 


* * * * *
0 Ratings

Attachments in Fast Reply

[AA]This simple edit allows you to, theoretically, attach files in quick/fast reply on IPB 1.2.x and 1.3.x -only-.

Posted by mavrevMatt on Jul 25 2006 09:51 PM

Quote

Attachements in Fast Reply
For IPB 1.2.x, & 1.3.x
By AgentA of MavRev.com

This simple edit allows you to, theoretically, attach files in quick/fast reply on IPB 1.2.x and 1.3.x -only-.
___________________________________________________________
Step 1. Gather the following files

Skin/s#/skin_topic.php (# is your skin number. Do for all skins.)
___________________________________________________________
Download and backup before proceeding.

Step 2. Edit 'Skin/s#/skin_topic.php'

Find:

	<input type='submit' name='submit' value='{$ibforums->lang['qr_submit']}' class='forminput' tabindex="2" accesskey="s" />
	<input type='submit' name='preview' value='{$ibforums->lang['qr_more_opts']}' class='forminput' />

and add above

function edit_upload_field($data, $file_name="") {
global $ibforums;
return <<<EOF
<tr>
		  <td class="pformstrip" colspan="2">{$ibforums->lang['upload_title']}</td>
		</tr>
		<tr>
		  <td class='pformleft'>{$ibforums->lang['upload_text']} $data</td>
		  <td class='pformright' width="100%">
		   <table cellpadding='4' cellspacing='0' width='100%' border='0'>
			<tr>
			 <td><input type='radio' name='editupload' value='keep' checked></td>
			 <td width='100%'><b>{$ibforums->lang['eu_keep']}</b> ( $file_name )</td>
			</tr>
			<tr>
			 <td><input type='radio' name='editupload' value='delete'></td>
			 <td width='100%'><b>{$ibforums->lang['eu_delete']}</b></td>
			</tr>
			<tr>
			 <td valign='middle'><input type='radio' name='editupload' value='new'></td>
			 <td><b>{$ibforums->lang['eu_new']}</b><br /><input class='textinput' type='file' size='30' name='FILE_UPLOAD' onclick='document.REPLIER.editupload[2].checked=true;' /></td>
			</tr>
		   </table>
		  </td>
		</tr>
EOF;
}


function Upload_field($data) {
global $ibforums;
return <<<EOF
  <tr>
	<td colspan="2" class='pformstrip'>{$ibforums->lang['upload_title']}</td>
  </tr>
  <tr>
	<td class='pformleft'>{$ibforums->lang['upload_text']} $data</td>
	<td class='pformright'><input class='textinput' type='file' size='30' name='FILE_UPLOAD' /></td>
  </tr>
  
EOF;
}

Do the same thing for the others. Members is for members online. ANON is for anonymous members online. Very simple.
___________________________________________________________
Step 3. Save and upload 'skin_topic.php' and place back in the 'Skin/s#' folder.
___________________________________________________________
Step 4. Go to your forum and click a topic. Test uploading a text file or somthing using fast reply.
___________________________________________________________
You're done. Enjoy the mod and make good use of it!


Powered by Tutorials 1.4.1 © 2012, by Michael McCune