vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Wabuf BB Code Pack! (https://vborg.vbsupport.ru/showthread.php?t=126381)

Wabuf 03-14-2007 07:22 PM

Quote:

Originally Posted by Repentless (Post 1203417)
These are horrible, most of them are basic and the rest are ones that only work on the bloated +++++ of Internet Explorer. What a waste of space.

I don't think they're a waste of space... BB Codes are addicting! Also, IE is more commonly found than Firefox I think.

And don't worry, I'm planning on getting some far advanced ones for V3.0 in the near future. It's just people need basic ones now. Later comes advanced ones (some are getting snatched up left and right, so it may take a while)

Repentless 03-14-2007 10:29 PM

It's not a matter of which is more commonly found. It's a matter of coding. If you write IE-proprietary code, you're shunning 25 to 75 percent of the users on your site, and it also means you're both writing pathetic, sloppy code and supporting Microsoft.

Fail.

Necrosaro420 03-18-2007 11:48 PM

What is all of this stuff below, and what/where do I do with it??? Thanks

These:

Title: Marquee
tag: Marquee
Replacement: <marquee>{param}</marquee>
Example: [Marquee]Scrolling text[/Marquee]
Description: Makes text scroll from right to left
Use {option}: no
Button Image: /"your forum root"/images/marquee.GIF

Title: Strike Through
Tag: Strike
Replacement: <span style="text-decoration: line-through;">{param}</span>
Example: [Strike]Text goes here[/Strike]
Description: Makes a line through text.
Use {option} no
Button Image: /"your forum root"/images/strike.GIF

Title: Background Color
Tag: Bgcolor
Replacement: <div style="width: 100%; background-color:{option}">{param}</div>
Example: [Bgcolor=red]text goes here[/Bgcolor]
Description: Adds background color to your posts.
Use {option} yes
Button Image: /"your forum root"/images/bg.GIF

smoovie 03-19-2007 12:22 AM

Can anyone tell me where I would have to place the code from some of these to use them for UserGroup names? Like, I want to make Admons names show in rainbow text. Where would I place the code for that. Thank you.

thincom2000 03-19-2007 02:57 AM

Installed for the [rainbow] tag. I didn't think much of BB-codes at first, but recently I've been making plenty of bb-codes and replacement variables that are really helping out in my forum (most forum specific, sorry guys).

Like for example, I have a logo image that I use over and over again in posts, and it has gotten REALLY annoying to type out every time, and even worse to fix all the posts whenever we move to a different server or whatnot. So I now have a Replacement Variable {logo}.

Thanks for sharing!

harlita 03-19-2007 06:18 AM

Quote:

Originally Posted by Repentless (Post 1203670)
It's not a matter of which is more commonly found. It's a matter of coding. If you write IE-proprietary code, you're shunning 25 to 75 percent of the users on your site, and it also means you're both writing pathetic, sloppy code and supporting Microsoft.

Fail.

Hey seriously, if you don't like the hack - you don't need to slam the creator of it for what he is/isn't doing.


Besides, you're making the rest of us anti-microsoft people look like jerks. So chill, yeah?


Wabuf - *installed* =)

marc2005 03-19-2007 06:30 AM

Thanks man, great work!

Wabuf 03-19-2007 01:37 PM

Quote:

Originally Posted by Necrosaro420 (Post 1206924)
What is all of this stuff below, and what/where do I do with it??? Thanks

These:

Title: Marquee
tag: Marquee
Replacement: <marquee>{param}</marquee>
Example: [Marquee]Scrolling text[/Marquee]
Description: Makes text scroll from right to left
Use {option}: no
Button Image: /"your forum root"/images/marquee.GIF

Title: Strike Through
Tag: Strike
Replacement: <span style="text-decoration: line-through;">{param}</span>
Example: [Strike]Text goes here[/Strike]
Description: Makes a line through text.
Use {option} no
Button Image: /"your forum root"/images/strike.GIF

Title: Background Color
Tag: Bgcolor
Replacement: <div style="width: 100%; background-color:{option}">{param}</div>
Example: [Bgcolor=red]text goes here[/Bgcolor]
Description: Adds background color to your posts.
Use {option} yes
Button Image: /"your forum root"/images/bg.GIF

you go into your admin control panel, click on "custom BB codes" and add custom BB Code.
You would then fill in the fields as they are listed (i.e. where it says "Tag" you would put what I put after the colon)

as for the admin name being rainbowed colored, I don't know that javascript would work in username HTML markup.

thincom2000 03-19-2007 03:53 PM

Quote:

Originally Posted by Wabuf (Post 1207310)
as for the admin name being rainbowed colored, I don't know that javascript would work in username HTML markup.

It required a little tweaking, but I got it to work: http://www.crackedeggstudios.com/sho...56&postcount=2

Create a file in your clientscript folder called rainbow.js (would also make the BB-code replacement text simpler):

Code:

function MakeArray(n){
  this.length=n;
  for(var i=1; i<=n; i++) this[i]=i-1;
  return this
}

hex=new MakeArray(16);
hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D";
hex[15]="E"; hex[16]="F";

function ToHex(x){  // Changes a int to hex (in the range 0 to 255)
  var high=x/16;
  var s=high+"";        //1
  s=s.substring(0,2);  //2 the combination of these = trunc funct.
  high=parseInt(s,10);  //3
  var left=hex[high+1]; // left part of the hex-value
  var low=x-high*16;    // calculate the rest of the values
  s=low+"";            //1
  s=s.substring(0,2);  //2 the combination of these = trunc funct.
  low=parseInt(s,10);  //3
  var right=hex[low+1]; // right part of the hex-value
  var string=left+""+right; // add the high and low together
  return string;
}

function fadeout(text){
  text=text.substring(4,text.length);
                        // gets rid of the HTML-comment-tags
  color_d1=255;          // any value in 'begin' 0 to 255
  mul=color_d1/text.length;
  var j=1;
for(i=0;i<text.length;i++){
  color_d1=255*Math.sin(i/(text.length/3));
  // some other things you can try>>
  // "=255-mul*i" to fade out, "=mul*i" to fade in,
  // or try "255*Math.sin(i/(text.length/3))"
  color_h1=ToHex(color_d1);
  color_d2=mul*i;
  color_h2=ToHex(color_d2);
  color_d3=mul*(text.length-i);
  color_h3=ToHex(color_d3);

      j = i;

  if (text.substring(i,i+1) == '&')
  {
        for (j = i+1; j < text.length; j++)
        {
              if (text.substring(j,j+1) == ';') { break; }
        }
        if (j == text.length) { j = i; }
  }

  if (text.substring(i,i+1) == '<')
  {
        for (j = i+1; j < text.length; j++)
        {
              if (text.substring(j,j+1) == '>') { break; }
        }
        if (j == text.length) { j = i; }
  }

  document.write('<span style="color:#'+color_h3+color_h1+color_h2+'">'+
                  text.substring(i,j+1)+'</span>');
        i = j;
 }
}

Add the following to your headinclude template:
HTML Code:

<script type="text/javascript" src="$vboptions[bburl]/clientscript/rainbow.js"></script>
Then for your Usergroup Markup -
Opening tag:
HTML Code:

<script type="text/javascript">fadeout("//-->
Closing tag:
HTML Code:

");</script>
Note that the javascript code is NOT surrounded by HTML comment tags. While not W3C, if you add the comment tags, the usernames of this group will seem to disappear.

MDK-Indy 03-19-2007 06:43 PM

Salü,

wie geht das mit dem Marquee right Code?

Gruß Indy


All times are GMT. The time now is 04:12 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.01238 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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