vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Test HTML Codes v1.0.0 (https://vborg.vbsupport.ru/showthread.php?t=93993)

LNTT 08-09-2005 10:00 PM

Test HTML Codes v1.0.0
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= 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! ^_^
::::::::::::::::::::::::::::::::::::::::

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

Quote:

Originally Posted by mentalrz
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.


All times are GMT. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01082 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete