Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Test HTML Codes v1.0.0 Details »»
Test HTML Codes v1.0.0
Version: 1.00, by LNTT LNTT is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-09-2005 Last Update: Never Installs: 5
Code Changes  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-10-2005, 03:30 PM
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
Posts: 550
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful
Reply With Quote
  #3  
Old 08-10-2005, 09:18 PM
KTBleeding's Avatar
KTBleeding KTBleeding is offline
 
Join Date: Feb 2004
Location: Tooele, UT
Posts: 756
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-14-2005, 10:00 AM
LNTT's Avatar
LNTT LNTT is offline
 
Join Date: Apr 2005
Location: Viet Nam
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mentalrz
very useful
i will update THC final version(1.1.0) - *1.0.0 : Stable*
Reply With Quote
  #5  
Old 02-05-2006, 12:21 PM
Nigh7mar3 Nigh7mar3 is offline
 
Join Date: Nov 2005
Location: Roma
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod
Reply With Quote
  #6  
Old 03-09-2007, 08:37 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fabulous share - Still works for vB 3.6.5
Thanx,

Jacquii.
Reply With Quote
  #7  
Old 05-13-2007, 04:46 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great - still works in vB 3.6.6
Thanx

Jacquii.
Reply With Quote
  #8  
Old 09-03-2007, 02:11 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice - works on 3.6.8
Thanx again.

Jacquii.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04552 seconds
  • Memory Usage 2,306KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete