::::::::::Wanna USE my tutorials Keep my Credits:::::::::::::
PAYPAL BBCode Button In Standerd Post Edit
NOTE::::: This requires Glow BBCODE to be installed on your Board
Step 1
Go to /jscripts/ipb_editor_std.js on your FTP
Find the following around line 395:
/*-------------------------------------------------------------------------*/
// URL tag
/*-------------------------------------------------------------------------*/
function tag_url()
{
var FoundErrors = '';
//----------------------------------------
// Do we have ranged text?
//----------------------------------------
if ( check_range() )
{
//----------------------------------------
// Yes, just ask for the URL and wrap
//----------------------------------------
var enterURL = prompt(text_enter_url, "http://");
if ( ! enterURL)
{
alert(error_no_url);
return;
}
wrap_tags( "[url="+enterURL+"]", "[/url]", "" );
}
else
{
var enterURL = prompt(text_enter_url, "http://");
var enterTITLE = prompt(text_enter_url_name, jsfile_myweb_lang );
if ( ! enterURL)
{
FoundErrors += " " + error_no_url;
}
if ( ! enterTITLE)
{
FoundErrors += " " + error_no_title;
}
if ( FoundErrors )
{
alert( jsfile_error_lang +FoundErrors);
return;
}
wrap_tags("[url="+enterURL+"]"+enterTITLE+"[/url]", "");
}
}
Add the following below:
/*-------------------------------------------------------------------------*/
// PayPal tag [CUSTOM BUTTON]
/*-------------------------------------------------------------------------*/
function tag_paypal()
{
var FoundErrors = '';
//----------------------------------------
// Do we have ranged text?
//----------------------------------------
if ( check_range() )
{
//----------------------------------------
// Yes, just ask for the OPTION and CONTENT
//----------------------------------------
var enterOPTION = prompt("Sacred Says Put YourMail at yourdomain com", "MailAtDomainDotCom");
if ( ! enterOPTION)
{
alert("Sacred Says you must put your mail here");
return;
}
wrap_tags( "[paypal="+enterOPTION+"]", "[/paypal]", "" );
}
else
{
var enterOPTION = prompt("Sacred Says Put YourMail at yourdomain com", "MailAtDomainDotCom");
var enterCONTENT = prompt("Sacred Says Put Here Reason for the donation???", "Personal Services");
if ( ! enterOPTION)
{
FoundErrors += " " + "Sacred Says Put YourMail at yourdomain com";
}
if ( ! enterCONTENT)
{
FoundErrors += " " + "Sacred Says must put reason For Donation";
}
if ( FoundErrors )
{
alert( jsfile_error_lang +FoundErrors);
return;
}
wrap_tags("[paypal="+enterOPTION+"]"+enterCONTENT+"[/paypal]", "");
}
}
You Can Change where is says "Sacred Says blah blah" here to anything you would like AND "mailAtDomainDotCom" to any text u would like to be ur default shadow on your board
Save Close & upload ipb_editor_std.js
==========================
Step 2 :
NOTE:::: this have to be done to all skins
Go to AdminCP >Look & Feel >Edit Template HTML > Post / PM Editor > editor_std
Find:
<td><div id='do_code'><img class="rteimage" src="{ipb.vars['img_url']}/folder_rte_images/code.gif" width="21" height="21 alt="{ipb.lang['js_tt_code']}" title="{ipb.lang['js_tt_code']}" onclick="simpletag('code')"></div></td>
Add after
<!--/SEP-->
<td><div><img class="rteimage" src="{ipb.vars['img_url']}/folder_rte_images/paypal.jpg" width="40" height="24" alt="Paypal" title="paypal" onclick="tag_paypal()"></div></td>
Save Close Template Bites
============================================
Step 3 Upload the paypal.jpg to
style_images/*/folder_rte_images/
Note: the ( * ) is the name of your skin under the style images folder
Heres The image u can use download it and uplaod to ur site at its legit folder

Thats it your Done
Sacred













