- Mở file templates\Default\addnews.tpl
- Chèn đoạn code sau vào đầu file:
- Mở file engine\modules\bbcode.php
- Tìm:
- Thêm vào sau:
- Download 3 file ảnh sau:
http://www.downforall.com/file.php?file=22c7143ac5c6e4de3f6d0f89d5ad9814
Lưu vào các folder:
templates\Default\bbcodes
engine\skins\bbcodes\images
download.gif
mirror.gif
password.gif
- Mở file engine\inc\inserttag.php
- Tìm:
- Thêm vào đằng trước:
- Tìm:
- Thêm vào sau:
Vậy là OK
- Chèn đoạn code sau vào đầu file:
[hide]<script language="JavaScript">
function tag_url_download()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Download[/B]';
if (!thesel) {
thesel ='[B]Download[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_url_mirror()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Mirror[/B]';
if (!thesel) {
thesel ='[B]Mirror[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_password()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_url, "");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[B][COLOR=#FF0000]Password: "+enterURL+"[/COLOR][/B]", "", false);
}
</SCRIPT>
[/hide]
function tag_url_download()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Download[/B]';
if (!thesel) {
thesel ='[B]Download[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_url_mirror()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Mirror[/B]';
if (!thesel) {
thesel ='[B]Mirror[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_password()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_url, "");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[B][COLOR=#FF0000]Password: "+enterURL+"[/COLOR][/B]", "", false);
}
</SCRIPT>
[/hide]
- Mở file engine\modules\bbcode.php
- Tìm:
[hide]<div class="editor_button" onclick="pagelink()"><img title="$lang[bb_t_p]" src="/templates/Default/bbcodes/page.gif" width="23" height="25" border="0"></div>
<div class="editor_button"><img src="/templates/Default/bbcodes/brkspace.gif" width="5" height="25" border="0"></div>[/hide]
<div class="editor_button"><img src="/templates/Default/bbcodes/brkspace.gif" width="5" height="25" border="0"></div>[/hide]
- Thêm vào sau:
[hide]<div class="editor_button" onclick="tag_url_download()"><img title="Download" src="/templates/Default/bbcodes/download.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_url_mirror()"><img title="Mirror" src="/templates/Default/bbcodes/mirror.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_password()"><img title="Password" src="/templates/Default/bbcodes/password.gif" width="23" height="25" border="0"></div>
[/hide]
<div class="editor_button" onclick="tag_url_mirror()"><img title="Mirror" src="/templates/Default/bbcodes/mirror.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_password()"><img title="Password" src="/templates/Default/bbcodes/password.gif" width="23" height="25" border="0"></div>
[/hide]
- Download 3 file ảnh sau:
http://www.downforall.com/file.php?file=22c7143ac5c6e4de3f6d0f89d5ad9814
Lưu vào các folder:
templates\Default\bbcodes
engine\skins\bbcodes\images
download.gif
mirror.gif
password.gif
- Mở file engine\inc\inserttag.php
- Tìm:
[hide]<div style="width:98%; height:50px; border:1px solid #BBB; background-image:url('engine/skins/bbcodes/images/bg.gif');">[/hide]
- Thêm vào đằng trước:
<script language="JavaScript">
function tag_url_download()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Download[/B]';
if (!thesel) {
thesel ='[B]Download[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_url_mirror()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Mirror[/B]';
if (!thesel) {
thesel ='[B]Mirror[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_password()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_url, "");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[B][COLOR=#FF0000]Password: "+enterURL+"[/COLOR][/B]", "", false);
}
</SCRIPT>
function tag_url_download()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Download[/B]';
if (!thesel) {
thesel ='[B]Download[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_url_mirror()
{
var FoundErrors = '';
var thesel ='';
if ( (ua_vers >= 4) && is_ie && is_win)
{
thesel = document.selection.createRange().text;
} else thesel ='[B]Mirror[/B]';
if (!thesel) {
thesel ='[B]Mirror[/B]';
}
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, thesel);
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (!enterTITLE) {
FoundErrors += " " + error_no_title;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[URL="+enterURL+"]"+enterTITLE+"[/URL]", "", false);
}
function tag_password()
{
var FoundErrors = '';
var enterURL = prompt(text_enter_url, "");
if (!enterURL) {
FoundErrors += " " + error_no_url;
}
if (FoundErrors) {
alert("Error!"+FoundErrors);
return;
}
doInsert("[B][COLOR=#FF0000]Password: "+enterURL+"[/COLOR][/B]", "", false);
}
</SCRIPT>
- Tìm:
<div class="editor_button"><img src="engine/skins/bbcodes/images/brkspace.gif" width="5" height="25" border="0"></div>
- Thêm vào sau:
<div class="editor_button" onclick="tag_url_download()"><img title="Download" src="engine/skins/bbcodes/images/download.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_url_mirror()"><img title="Mirror" src="engine/skins/bbcodes/images/mirror.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_password()"><img title="Password" src="engine/skins/bbcodes/images/password.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_url_mirror()"><img title="Mirror" src="engine/skins/bbcodes/images/mirror.gif" width="23" height="25" border="0"></div>
<div class="editor_button" onclick="tag_password()"><img title="Password" src="engine/skins/bbcodes/images/password.gif" width="23" height="25" border="0"></div>
Vậy là OK








