LNTT
08-09-2005, 10:00 PM
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Test HTML Codes
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Version : 1.0.0 {Unstable}
-= Installation Level: Easy.
=-=-=-=-=-=-=
-= Installation Time: 2 Minutes.
=-=-=-=-=-=-=
-= For vBulletin: 3.5.x
-= THC 1.0.0 tested on vBulletin RC 1 & RC 2.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
::::::::::::::::::::::::::::::::::::::::
::::FEATURES
::::::::::::::::::::::::::::::::::::::::
Test HTML codes before add new BB Code ^_^
::::::::::::::::::::::::::::::::::::::::
::::INSTALL
::::::::::::::::::::::::::::::::::::::::
admincp/bbcode.php
-----------------------
Find
-----------------------
if (empty($donetest))
{
print_form_header('bbcode', 'test');
print_table_header($vbphrase['test_your_bb_code']);
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'text', '', 15, 60);
print_submit_row($vbphrase['go']);
}
-----------------------
Replace With
-----------------------
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////
// Main - Start //
//////////////////////////////
if (empty($donetestbb))
{
print_form_header('bbcode', 'testbb');
print_table_header($vbphrase['test_your_bb_code']);
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'textbb', '', 15, 60);
print_submit_row($vbphrase['go']);
}
if (empty($donetesthtml))
{
print_form_header('bbcode', 'testhtml');
print_table_header("Test HTML Code");
print_textarea_row("Enter text with HTML code(s):", 'texthtml', '', 15, 60);
print_submit_row($vbphrase['go']);
}
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////////
// Main - End //
//////////////////////////////
-----------------------
Find
-----------------------
// ########################################### ADD ################################################## ###
-----------------------
Add Above
-----------------------
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////////
////////////////////////////////
// Testing - Start //
//////////////////////////////
// ######################################### TEST BB CODES #############################
if ($_POST['do'] == 'testbb')
{
$vbulletin->input->clean_array_gpc('p', array(
'textbb' => TYPE_STR
));
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$parsed_code = $parser->do_parse($vbulletin->GPC['textbb'], false, false, true, false, true);
print_form_header('bbcode', 'testbb');
print_table_header($vbphrase['test_your_bb_code']);
print_label_row($vbphrase['this_is_how_your_test_appeard_after_bb_code_forma tting'], '<table border="0" cellspacing="0" cellpadding="4" width="100%" class="tborder"><tr class="alt2"><td>' . iif(!empty($parsed_code), $parsed_code, '<i>' . $vbphrase['n_a'] . '</i>') . '</td></tr></table>');
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'text', $vbulletin->GPC['textbb'], 15, 60);
print_submit_row($vbphrase['go']);
$donetestbb = 1;
$_REQUEST['do'] = "modify";
}
// ######################################### TEST HTML CODES ###########################
if ($_POST['do'] == 'testhtml')
{
$vbulletin->input->clean_array_gpc('p', array(
'texthtml' => TYPE_STR
));
$parsed_code = $vbulletin->GPC['texthtml'];
print_form_header('bbcode', 'testhtml');
print_table_header("Test your HTML Code");
print_label_row("This is how your text appears after BB Code formatting", '<table border="0" cellspacing="0" cellpadding="4" width="100%" class="tborder"><tr class="alt2"><td>' . iif(!empty($parsed_code), $parsed_code, '<i>' . $vbphrase['n_a'] . '</i>') . '</td></tr></table>');
print_textarea_row("Enter text with HTML code(s):", 'texthtml', $vbulletin->GPC['texthtml'], 15, 60);
print_submit_row($vbphrase['go']);
$donetesthtml = 1;
$_REQUEST['do'] = "modify";
}
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////
// Testing - End //
//////////////////////////////
==================================
[Installation Completed]
==================================
::::::::::::::::::::::::::::::::::::::::
::::PLANS FOR FUTURE VERSIONS
::::::::::::::::::::::::::::::::::::::::
- If bugs aren't found, i finish one's mod.
-- Next Version: 1.x.x
::::::::::::::::::::::::::::::::::::::::
::::HISTORY
::::::::::::::::::::::::::::::::::::::::
== Version 1.0.0
- Initial release.
::::::::::::::::::::::::::::::::::::::::
::::HAVE FUN! ^_^
::::::::::::::::::::::::::::::::::::::::
-= Test HTML Codes
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= Version : 1.0.0 {Unstable}
-= Installation Level: Easy.
=-=-=-=-=-=-=
-= Installation Time: 2 Minutes.
=-=-=-=-=-=-=
-= For vBulletin: 3.5.x
-= THC 1.0.0 tested on vBulletin RC 1 & RC 2.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
::::::::::::::::::::::::::::::::::::::::
::::FEATURES
::::::::::::::::::::::::::::::::::::::::
Test HTML codes before add new BB Code ^_^
::::::::::::::::::::::::::::::::::::::::
::::INSTALL
::::::::::::::::::::::::::::::::::::::::
admincp/bbcode.php
-----------------------
Find
-----------------------
if (empty($donetest))
{
print_form_header('bbcode', 'test');
print_table_header($vbphrase['test_your_bb_code']);
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'text', '', 15, 60);
print_submit_row($vbphrase['go']);
}
-----------------------
Replace With
-----------------------
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////
// Main - Start //
//////////////////////////////
if (empty($donetestbb))
{
print_form_header('bbcode', 'testbb');
print_table_header($vbphrase['test_your_bb_code']);
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'textbb', '', 15, 60);
print_submit_row($vbphrase['go']);
}
if (empty($donetesthtml))
{
print_form_header('bbcode', 'testhtml');
print_table_header("Test HTML Code");
print_textarea_row("Enter text with HTML code(s):", 'texthtml', '', 15, 60);
print_submit_row($vbphrase['go']);
}
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////////
// Main - End //
//////////////////////////////
-----------------------
Find
-----------------------
// ########################################### ADD ################################################## ###
-----------------------
Add Above
-----------------------
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////////
////////////////////////////////
// Testing - Start //
//////////////////////////////
// ######################################### TEST BB CODES #############################
if ($_POST['do'] == 'testbb')
{
$vbulletin->input->clean_array_gpc('p', array(
'textbb' => TYPE_STR
));
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$parsed_code = $parser->do_parse($vbulletin->GPC['textbb'], false, false, true, false, true);
print_form_header('bbcode', 'testbb');
print_table_header($vbphrase['test_your_bb_code']);
print_label_row($vbphrase['this_is_how_your_test_appeard_after_bb_code_forma tting'], '<table border="0" cellspacing="0" cellpadding="4" width="100%" class="tborder"><tr class="alt2"><td>' . iif(!empty($parsed_code), $parsed_code, '<i>' . $vbphrase['n_a'] . '</i>') . '</td></tr></table>');
print_textarea_row($vbphrase['enter_text_with_bb_code'], 'text', $vbulletin->GPC['textbb'], 15, 60);
print_submit_row($vbphrase['go']);
$donetestbb = 1;
$_REQUEST['do'] = "modify";
}
// ######################################### TEST HTML CODES ###########################
if ($_POST['do'] == 'testhtml')
{
$vbulletin->input->clean_array_gpc('p', array(
'texthtml' => TYPE_STR
));
$parsed_code = $vbulletin->GPC['texthtml'];
print_form_header('bbcode', 'testhtml');
print_table_header("Test your HTML Code");
print_label_row("This is how your text appears after BB Code formatting", '<table border="0" cellspacing="0" cellpadding="4" width="100%" class="tborder"><tr class="alt2"><td>' . iif(!empty($parsed_code), $parsed_code, '<i>' . $vbphrase['n_a'] . '</i>') . '</td></tr></table>');
print_textarea_row("Enter text with HTML code(s):", 'texthtml', $vbulletin->GPC['texthtml'], 15, 60);
print_submit_row($vbphrase['go']);
$donetesthtml = 1;
$_REQUEST['do'] = "modify";
}
//////////////////////////////////////
// Test HTML Codes v1.0.0 //
////////////////////////////////
// Testing - End //
//////////////////////////////
==================================
[Installation Completed]
==================================
::::::::::::::::::::::::::::::::::::::::
::::PLANS FOR FUTURE VERSIONS
::::::::::::::::::::::::::::::::::::::::
- If bugs aren't found, i finish one's mod.
-- Next Version: 1.x.x
::::::::::::::::::::::::::::::::::::::::
::::HISTORY
::::::::::::::::::::::::::::::::::::::::
== Version 1.0.0
- Initial release.
::::::::::::::::::::::::::::::::::::::::
::::HAVE FUN! ^_^
::::::::::::::::::::::::::::::::::::::::