Description : Insert an image via a popup
Open file
styles/prosilver/template/posting_buttons.html
Find :
Code: Select all
var imageTag = false;
Code: Select all
function BBCimg()
{
var FoundErrors = '';
var enterURL = prompt('{L_ENTER_URL}');
if (!enterURL) {
FoundErrors += "{L_ENTER_URL_EXPLAIN}";
}
if (FoundErrors)
{
alert("{L_ERROR_URL} : "+FoundErrors);
return;
}
var bbtags = "[img]"+enterURL+"[/img]";
document.forms[form_name].elements[text_name].value+=bbtags;
document.forms[form_name].elements[text_name].focus();
}
Code: Select all
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
Code: Select all
<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="BBCimg()" title="{L_BBCODE_P_HELP}" />
language/en/posting.php
Find :
Code: Select all
'EMPTY_REMOTE_DATA' => 'File could not be uploaded, please try uploading the file manually.',
Code: Select all
'ENTER_URL' => 'Enter URL of your image',
'ENTER_URL_EXPLAIN' => 'You must enter the link to your image',
'ERROR_URL' => 'Error',