PDA

View Full Version : Test HTML Codes v1.0.0


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! ^_^
::::::::::::::::::::::::::::::::::::::::

MentaL
08-10-2005, 03:30 PM
very useful

KTBleeding
08-10-2005, 09:18 PM
I do HTML work at my job, and they have this feature for us. I find it useful, but I rarely use it. Good idea for a hack though.

LNTT
08-14-2005, 10:00 AM
very useful

i will update THC final version(1.1.0) - *1.0.0 : Stable*

Nigh7mar3
02-05-2006, 12:21 PM
nice mod

PoetJA-1975
03-09-2007, 08:37 AM
Fabulous share - Still works for vB 3.6.5
Thanx,

Jacquii.

PoetJA-1975
05-13-2007, 04:46 AM
Great - still works in vB 3.6.6
Thanx

Jacquii.

PoetJA-1975
09-03-2007, 02:11 AM
Nice - works on 3.6.8
Thanx again.

Jacquii.