Back to vBulletin 3.5 Add-ons

Test HTML Codes v1.0.0
Mod Version: 1.00, by LNTT

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (1 vote - 5.00 average) Installs: 5
Released: 10 Aug 2005 Last Update: Never Downloads: 11
Not Supported Code Changes  

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= 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
-----------------------
PHP Code:
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'''1560);
print_submit_row($vbphrase['go']);

-----------------------
Replace With
-----------------------
PHP Code:
//////////////////////////////////////
// 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'''1560);
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'''1560);
print_submit_row($vbphrase['go']);
}
//////////////////////////////////////
// Test HTML Codes v1.0.0         //
////////////////////////////////////
// Main - End                //
////////////////////////////// 
-----------------------
Find
-----------------------
PHP Code:
// ########################################### ADD ##################################################### 
-----------------------
Add Above
-----------------------
PHP Code:
//////////////////////////////////////
// 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($vbulletinfetch_tag_list());
$parsed_code $parser->do_parse($vbulletin->GPC['textbb'], falsefalsetruefalsetrue);
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_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($vbphrase['enter_text_with_bb_code'], 'text'$vbulletin->GPC['textbb'], 1560);
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'], 1560);
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! ^_^
::::::::::::::::::::::::::::::::::::::::

Download

This modification is archived and cannot be downloaded.

Screenshots

   


vblts.ru supports vBulletin®, 2022-2025