vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Added js buttons in new thread/reply thread (https://vborg.vbsupport.ru/showthread.php?t=34316)

Bald Bouncer 01-22-2002 03:47 PM

you missed on thing mate

in vbcode_language

add

glow_text = "Make your text Glow";
shadow_text = "Give text a Shadow effect";

below

img_text = "Insert an image into your message";


cheers for this hack mate :p

StarBuG 01-22-2002 04:46 PM

VERY NICE! Hehe

Is it possible to let the User define both (the font and the glow color? The same for Shadow??

Would be a great improvment!!!!

Hope you can help!

Thx

StarBuG

Bald Bouncer 01-22-2002 05:01 PM

heres the ICQ button

Bioderm 01-22-2002 07:53 PM

Quote:

Originally posted by Bald Bouncer
you missed on thing mate

in vbcode_language

add

glow_text = "Make your text Glow";
shadow_text = "Give text a Shadow effect";

below

img_text = "Insert an image into your message";


cheers for this hack mate :p

well thats an old button was included with it,so it should have been in there already.atleast i though it was.

Bald Bouncer 01-23-2002 12:34 PM

how come you can only use these once before getting a JS error?

Xelation 01-23-2002 03:54 PM

yes, please make a drop down menu!! that would be very helpful!

Bioderm 01-24-2002 09:09 PM

you get a js error.weird i have had no problems with it.

Psychdrone 01-25-2002 12:44 AM

like I siad before I have a problem also when I click it more than ounce!

pogo 01-30-2002 11:54 AM

I rewrote this hack because I couldn't find the error in the first version :(
I had the same problem that the Glow and Shadow buttons were working one time only.

Add this add the end of vbcode.js :
Code:

function glow(theform) {
        glowtext = prompt(glow_text_prompt,"");
        glowcolor = prompt(color_text_prompt,"");
        if ((glowcolor != null) && (glowcolor != "")) {
                if ((glowtext != null) && (glowtext != ""))
                        theform.message.value += "[GLOW="+glowcolor+"]"+glowtext+"[/GLOW] ";
                else
                        theform.message.value += "[GLOW="+glowcolor+"][/GLOW] ";
                }
        theform.message.focus();
}


// *******************************************************

function shadow(theform) {
        shadowtext = prompt(shadow_text_prompt,"");
        shadowcolor = prompt(color_text_prompt,"");
        if ((shadowcolor != null) && (shadowcolor != "")) {
                if ((shadowtext != null) && (shadowtext != ""))
                        theform.message.value += "[SHADOW="+shadowcolor+"]"+shadowtext+"[/SHADOW] ";
                else
                        theform.message.value += "[SHADOW="+shadowcolor+"][/SHADOW] ";
                }
        theform.message.focus();
}


// *******************************************************

Add this at the end of vbcode_language.js :
Code:

glow_text_prompt = "Enter the glowing text";
color_text_prompt = "Enter the color you want to use";
shadow_text_prompt = "Enter the text that you want to have a shadow around";
glow_text = "Make your text Glow";
shadow_text = "Give text a Shadow effect";

Insert this into the vbcode_buttons template :
Code:

<input type="button" class="bginput" value=" Glow " onclick="glow(this.form)" onmouseover="stat('glow')" title="Glow (alt+g)" accesskey="g">
<input type="button" class="bginput" value=" Shadow " onclick="shadow(this.form)" onmouseover="stat('shadow')" title="Shadow (alt+s)" accesskey="s">

possibly before
Code:

<input type="button" class="bginput" value=" B " onclick="vbcode(this.form,'B','')" onmouseover="stat('b')" title="BOLD (alt+b)" accesskey="b">

Platinumgamer 04-12-2002 09:42 PM

I am going to install this. Is there any chance someone could make something like this for alignment?


All times are GMT. The time now is 03:42 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.02075 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete