vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Combo BB Codes (https://vborg.vbsupport.ru/showthread.php?t=176165)

legionofangels 04-14-2008 10:18 PM

Combo BB Codes
 
Is it possible to make these, if so I would like them but just wondering if it's possible.

I want a

Bold + Size "4" BB Code = Header Text

a

Bold + Color "Red" BB Code = Moderated Text

and if possible

Select All or Control + A BB Code = Select All Text In Box

Can these be done?

(( meaning the top two here, are a one button solution to a commonly used combination of BB Codes ))

harmor19 04-14-2008 11:51 PM

Quote:

Originally Posted by legionofangels (Post 1490801)
Is it possible to make these, if so I would like them but just wondering if it's possible.

I want a

Bold + Size "4" BB Code = Header Text

a

Bold + Color "Red" BB Code = Moderated Text

and if possible

Select All or Control + A BB Code = Select All Text In Box

Can these be done?

(( meaning the top two here, are a one button solution to a commonly used combination of BB Codes ))

When you create a custom bbcode put this in replacement
Header: <b><font size="4">{param}</font></b>
Moderator Text: <b><fontcolor="Red">Moderated Text</font>]</b>

The last one you is easy enough to do. There's probably a javascript that can select all text and apply the bold tag around it but I'm not going to bother looking.

SEOvB 04-15-2008 12:19 AM

<span style="font-wieght:bold; font-size: 14px;">{param}</span>

<span style="font-wieght:bold; color: red;">{param}</span>

Is what you really want to use

Boofo 04-15-2008 12:46 AM

How would you add italics to that?

Dismounted 04-15-2008 05:48 AM

Code:

font-style: italic;

legionofangels 04-15-2008 04:22 PM

Quote:

Originally Posted by harmor19 (Post 1490851)
The last one you is easy enough to do. There's probably a javascript that can select all text and apply the bold tag around it but I'm not going to bother looking.

Actually I just bolded that for that post ONLY.

I only want the Select All to Select All, that's it, no other coding or text definitions. Just Select All BB Code. I'll look around but if anyone knows, greatly appreciated, would love to add it.

legionofangels 05-19-2008 11:25 PM

Quote:

Originally Posted by harmor19 (Post 1490851)
When you create a custom bbcode put this in replacement
Header: <b><font size="4">{param}</font></b>

That worked.

Quote:

Originally Posted by harmor19 (Post 1490851)
Moderator Text: <b><fontcolor="Red">Moderated Text</font>]</b>

That did not work. It made the text bold, but did not make it red.

Quote:

Originally Posted by FRDS (Post 1490866)
<span style="font-wieght:bold; color: red;">{param}</span>

Is what you really want to use

That did not work either. It made the text red but it did not make it bold.

Anyway those two can be combined? lol, then it will prolly work.

--------------- Added [DATE]1211246917[/DATE] at [TIME]1211246917[/TIME] ---------------

<span style="color: red;"><b>{param}</b></span>

That did work.

Thank you people.

L E G I O N


All times are GMT. The time now is 03:46 AM.

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.01682 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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