Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2014, 01:18 AM
jlbrown81 jlbrown81 is offline
 
Join Date: Nov 2013
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default color fade text

what do i need to do so my members can have color fade texts in our shout box?
Reply With Quote
  #2  
Old 06-25-2014, 09:24 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would need to ask in the thread where you downloaded the shout box from. Any questions/issues with mods/styles need to be handled in the mods/styles thread.
Reply With Quote
  #3  
Old 06-26-2014, 12:53 PM
jlbrown81 jlbrown81 is offline
 
Join Date: Nov 2013
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not a mod that im looking for its simply a code that u add to a users user groups settings i have used it before but cant remember where i got it from
Reply With Quote
  #4  
Old 07-14-2014, 01:48 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. In Style Manager -> All Style Options edit the headinclude Template for each style
At the bottom add:

PHP Code:
<script type="text/javascript">
function 
makeHex()
{
  
this.length 16;
     
this[1]  = "0";
     
this[2]  = "1";
     
this[3]  = "2";
     
this[4]  = "3";
     
this[5]  = "4";
     
this[6]  = "5";
     
this[7]  = "6";
     
this[8]  = "7";
     
this[9]  = "8";
     
this[10] = "9";
     
this[11] = "A";
     
this[12] = "B";
     
this[13] = "C";
     
this[14] = "D";
     
this[15] = "E";
     
this[16] = "F";
     return 
this;
}
newHex = new makeHex();

function 
con2hex (x)
{
     if( 
17)
          
16;
     var 
top = (16);
     var 
sub top '';
     
sub sub.substring (02);
     
top parseInt (sub10);
     var 
before newHex[top 1];
     var 
bot top 16;
     if (
bot 1)
        
bot 1;
     
sub bot '';
     
sub sub.substring (02);
     
bot parseInt (sub10);
     var 
after newHex[bot 1];
     var 
thestring before '' after;
     return 
thestring;
}

  function 
fadeText (intext)
{
     
intext intext.substring (0intext.length);
     
colorx 255;
     
colorx intext.length;
     for (var 
0intext.lengthi++)
     {
        
colorx 255 Math.sin (/ (intext.length 3));
        
colory con2hex (colorx);
        
colorz i;
        
colorw con2hex(colorz);
        
intext.length;
        
i;
        if(
0)
           
0;
        
coloru j;
        
colorv con2hex(coloru);
        
document.write("<font color=\"#" colorv colory colorw "\">" intext.substring(i1) + "</font>")
     }
}
</
script

2.Add a new BBCode

Title: Text Fade
BB Code Tag Name: fade
Replacement:

PHP Code:
<script>fadeText("{param}");</script
Example: [fade]This code fades text in a rainbow.[/fade]
Note- the example won't work in Admin CP because the standard header is not loaded, but it will work in your forum.

Description: This uses javascript to make a smooth rainbow effect in text.
Use Option: No
Button Image: (optional) attached.
Remove Tag If Empty: Yes
All Disable Options: Yes except disable word wrapping: No
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:28 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.03565 seconds
  • Memory Usage 2,225KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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