Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>open file includes/message_parser.php</p> <p>find about line 1373</p> <pre><code> $upload_file = (isset($_FILES[$form_name]) &amp;&amp; $_FILES[$form_name]['name'] != 'none' &amp;&amp; trim($_FILES[$form_name]['name'])) ? true : false; </code></pre> <p>and replace with</p> <pre><code> $upload_file = (isset($_FILES[$form_name]) &amp;&amp; $_FILES[$form_name]['name'] != 'none' &amp;&amp; trim($_FILES[$form_name]['name'])) ? true : (!empty($_POST['urlupload'])) ? true : false; </code></pre> <p>open file includes/functions_posting.php</p> <p>find about line 414</p> <pre><code> $file = ($local) ? $upload-&gt;local_upload($local_storage, $local_filedata) : $upload-&gt;form_upload($form_name); </code></pre> <p>replace with</p> <pre><code> $file = ($local) ? $upload-&gt;local_upload($local_storage, $local_filedata) : (!empty($_POST['urlupload'])) ? $upload-&gt;remote_upload($_POST['urlupload']) : $upload-&gt;form_upload($form_name); </code></pre> <p>open styles/your_style/templates/posting_attach_body.html</p> <p>find </p> <pre><code> &lt;dl&gt; &lt;dt&gt;&lt;label for="fileupload"&gt;{L_FILENAME}:&lt;/label&gt;&lt;/dt&gt; &lt;dd&gt; &lt;input type="file" name="fileupload" id="fileupload" maxlength="{FILESIZE}" value="" class="inputbox autowidth" /&gt; &lt;input type="submit" name="add_file" value="{L_ADD_FILE}" class="button2" onclick="upload = true;" /&gt; &lt;/dd&gt; &lt;/dl&gt; </code></pre> <p>add after</p> <pre><code> &lt;dl&gt; &lt;dt&gt;&lt;label for="urlupload"&gt;Remote File:&lt;/label&gt;&lt;/dt&gt; &lt;dd&gt; &lt;input type="url" name="urlupload" id="urlupload" maxlength="{FILESIZE}" value="" class="inputbox autowidth" /&gt; &lt;input type="submit" name="add_file" value="{L_ADD_FILE}" class="button2" onclick="upload = true;" /&gt; &lt;/dd&gt; &lt;/dl&gt; </code></pre> <p>Let me know if you would like me to create a mod for you to install with automod or if you need extra mime types with the remote_upload function</p> <p>tested @ <a href="http://www.damienkeitel.com" rel="nofollow" title="My Website">http:/www.damienkeitel.com</a></p> <p><a href="/questions/tagged/phpbb" class="post-tag" title="show questions tagged 'phpbb'" rel="tag">phpbb</a><a href="/questions/tagged/phpbb3" class="post-tag" title="show questions tagged 'phpbb3'" rel="tag">phpbb3</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload