vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Borgs' [BB Code] Pack - Signs, User, Divider, Search Tags, Float Images (https://vborg.vbsupport.ru/showthread.php?t=103257)

Borgs8472 12-18-2005 10:00 PM

Borgs' [BB Code] Pack - Signs, User, Divider, Search Tags, Float Images
 
Well no one else will start a bbcode archive, so I'll do it myself!

I love bbcodes, bits of HTML joy that are often really lacking a most fora. I have made several in my time, some I have seen mentioned in passing at vb.org but never pinned down so I'm going to do these myself!

All of the following codes are added in your admincp under:
Custom BB Codes -> BB Code Manager -> Add New BB Code
or
Custom BB Codes -> Add New BB Code

Where I have typed '-->>' this is to show you an example of the output of using the code. Do not copy that data into your bbcode form.

All tags are tested in IE and Firefox - none of these 'IE only' rubbish tags ;)

Credit to the following sign tags (well at least the first one) goes out to Hoffi in this thread which appeared ages ago when there was a separate vbtemplates site.
Quote:

SIGN TAG
Upload attached schildhalter.gif to your images folder or wherever you like
Title: Sign
Tag: s
Replacement:
Code:

<table border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><FONT COLOR="Black"><normalfont>{param}</normalfont></FONT>
                </td>
        </tr>
        <tr>
                <td align="center">
                <img src="/images/schildhalter.gif" alt="" border="0">
                </td>
        </tr>
</table>

Example: [ s ]Look at me![/ s ] -->>https://vborg.vbsupport.ru/
Description: Wrap your text with a cynical looking smiley holding a sign.
Use {option}: No
Button Image: /images/s-tag.gif https://vborg.vbsupport.ru/
NB - remove the spaces around the example [ s ], there is a conflict here with vb.org 's' bbcode
Quote:

DEVIL SIGN TAG

Upload attached devilsign.gif to your images folder or wherever you like
Title: Devil Sign
Tag: evil
Replacement:
Code:

<table border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="center" style="background-color: Red; border: 1px solid Black; padding: 1px;"><FONT COLOR="White"><normalfont>{param}</normalfont></FONT>
                </td>
        </tr>
        <tr>
                <td align="center">
                <img src="/images/devilsign.gif" alt="" border="0">
                </td>
        </tr>
</table>

Example: [evil]He's so evil![/evil] -->>https://vborg.vbsupport.ru/
Description: Wrap your text with a devil smiley for those evil thoughts.
Use {option}: No
Button Image: /images/evil-tag.gif https://vborg.vbsupport.ru/
The following image was designed by vb.org's very own Boofo and was once his site mascot! We love the mouse!
Quote:

MOUSE SIGN TAG

Upload attached mouse.png to your images folder or wherever you like
Title: Mouse
Tag: mouse
Replacement:
Code:

<table border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><FONT COLOR="Black"><normalfont>{param}</normalfont></FONT>
                </td>
        </tr>
        <tr>
                <td align="center">
                <img src="/images/mouse.png" alt="" border="0">
                </td>
        </tr>
</table>
<!-- courtesy of Boofo -->

Example: [mouse]Duh huh![/mouse]-->>https://vborg.vbsupport.ru/
Description: Act like a silly old mouse
Use {option}: No
Button Image: /images/mouse-tag.gif https://vborg.vbsupport.ru/
Quote:

MAD SIGN TAG

Upload attached mad.gif to your images folder or wherever you like
Title: Mad
Tag: mad
Replacement:
Code:

<table border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><FONT COLOR="Black"><normalfont>{param}</normalfont></FONT>
                </td>
        </tr>
        <tr>
                <td align="center">
                <img src="/images/mad.gif" alt="" border="0">
                </td>
        </tr>
</table>

Example: [mad]RABBLE RABBLE RABBLE![/mad]-->>https://vborg.vbsupport.ru/
Description: Rouse the mob!
Use {option}: No
Button Image: /images/mad-tag.gif https://vborg.vbsupport.ru/
Quote:

BANANA SIGN TAG

Upload attached banana_sign.gif to your images folder or wherever you like
Title: Banana Sign
Tag: banana
Replacement:
Code:

<table border="0" cellspacing="0" cellpadding="0">
        <tr>
                <td align="center" style="background-color: White; border: 1px solid Black; padding: 1px;"><FONT COLOR="Black"><normalfont>{param}</normalfont></FONT>
                </td>
        </tr>
        <tr>
                <td align="center">
                <img src="/images/banana_sign.gif" alt="" border="0">
                </td>
        </tr>
</table>

Example: [banana]:banana:[/banana]-->>https://vborg.vbsupport.ru/
Description: Bananas holding bananas?
Use {option}: No
Button Image: /images/banana-tag.gif https://vborg.vbsupport.ru/
Someone on vb.org told me this one. Whoever you are, thanks!
Quote:

USER TAG

Title: User
Tag: user
Replacement:
Code:

<b><a href="member.php?do=getinfo&username={param}">{param}</a></b>
Example: [user]Borgs8472[/user] -->> Borgs8472
Description: Wrap these tags to make a quick link to a user's profile anywhere at all.
Use {option}: No
Button Image: Not created
If this makes no sense to you, don't worry! It can obviously be customised with images of your choice!. But for those who wish to be enlightened about pie:
http://www.weebl.jolt.co.uk/
Quote:

PIE TAG

You must upload the attached images under /images/pie/
Title: Pie
Tag: pie
Replacement:
Code:

<table cellpadding="0" cellspacing="0">
  <tr>
      <td width="60"></td>
      <td><img src="/images/pie/1.gif"></td>
      <td style="background-image: url('/images/pie/2.gif')"></td>
      <td><img src="/images/pie/3.gif"></td>
  </tr>
  <tr>
      <td width="60"></td>
      <td style="background-image: url('/images/pie/4.gif')"></td>
      <td bgcolor=white>{param}</td>
      <td style="background-image: url('/images/pie/5.gif')"></td>
  </tr>
  <tr>
      <td width="60"></td>
      <td><img src="/images/pie/6.gif"></td>
      <td style="background-image: url('/images/pie/7.gif')"></td>
      <td><img src="/images/pie/8.gif"></td>
  </tr>
</table>
<img src="/images/pie/weebl.gif">

Example: [pie]mmm pie![/pie] -->>
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
Description: Talk like Weebl and Bob!
Use {option}: No
Button Image: /images/weebltag.gif https://vborg.vbsupport.ru/

Quote:

STRIKETHROUGH

Title: Strikethrough
Tag: -
Replacement:
Code:

<strike>{param}</strike>
Example: [-]censored![/-] -->> [s]censored![/s]
Description: Wrap these tags to used strikethrough text.
Use {option}: No
Button Image (Optional): /images/strikethrough.gif -->> https://vborg.vbsupport.ru/
Ever tire of arguments where the other party say 'what was that'? Every tire of telling to to f'ing google it? Wrap the google tag around keywords in your argument and shut them up!
Quote:

GOOGLE

Title: Google
Tag: google
Replacement:
Code:

<a href="http://www.google.com/search?&q={param}">{param}</a>
Example: [google]torrentforge[/google] -->> torrentforge
Description: Quick Links to google things!
Use {option}: No
Button Image (Optional): /images/google.gif https://vborg.vbsupport.ru/
Again, too lazy to search in another window while you make a post? Just wrap these tags and have others do your research for you!
Quote:

WIKIPEDIA

Title: Wikipedia
Tag: wiki
Replacement:
Code:

<a href="http://en.wikipedia.org/wiki/{param}">{param}</a>
Example: [wiki]wikipedia[/wiki] -->> wikipedia
Description: Links to facts and dates without a seperate search!
Use {option}: No
Button Image (Optional): /images/wikipedia.gif https://vborg.vbsupport.ru/
Good for long posts and portals especially, have images that text can wrap around!
Quote:

FLOAT LEFT

Title: Float Left
Tag: imgl
Replacement:
Code:

<div style="float: left">https://vborg.vbsupport.ru/</div>
Example: https://vborg.vbsupport.ru/
Description: Float and image to the left, wrap text around it!
Use {option}: No
Button Image (Optional): /images/imgl.gif https://vborg.vbsupport.ru/
Quote:

FLOAT RIGHT

Title: Float Right
Tag: imgr
Replacement:
Code:

<div style="float: right">https://vborg.vbsupport.ru/</div>
Example: https://vborg.vbsupport.ru/
Description: Float and image to the right, wrap text around it!
Use {option}: No
Button Image (Optional): /images/imgr.gif https://vborg.vbsupport.ru/
Quote:

EBAY

Title: eBay
Tag: ebay
Replacement:
Code:

<a href="http://search.ebay.com/{param}">{param}</a>
Example: [ebay]Dodge Charger[/ebay]-->> Dodge Charger
Description: Links to search on eBay with search words or directly to item with item number.
Use {option}: No
Button Image (Optional): /images/ebaytag.gif https://vborg.vbsupport.ru/
Quote:

MARQUEE

Title: marquee
Tag: marquee
Replacement:
Code:

<marquee>{param}</marquee>
Example: [marquee]Annoying Scrolling text![/marquee]-->> {it's that animated text scrolling by default from right to left}
Description: Highlight annoncements etc with scrolling text!
Use {option}: No
Button Image (Optional): Not yet created
The following code is done by replacement variables. Go to style manager in your admincp, on the drop down box of your parent most style, choose 'Replacement Variables' Select 'Add New Replacement Variable'
Quote:

HORIZONTAL DIVIDER


Search for Text: ---
Replacement:
Code:

<hr>
Example:
[hr]whatever[/hr]
Button Image (Optional): Not yet created (would require a little custom coding too)
This is a very useful tag I made for my forum. What it does it takes a large image, e.g. a wallpaper or screenshot and stretches it to take up 100% of the avalible width. It then makes the image a link to the full version.

This stops the syndrome where you'd have either loads of oversized images, or loads of links. Also since the full version is loaded first time, when you click the link the full image loads instantly

Quote:

100 TAG
Title: 100
Tag: 100
Replacement:
Code:

<a href="{param}"><img width="100%" src="{param}" border="0"></a>
Example: [100]<path to image here>[/100] here's a thread on my forum where you can see it in action
Description: An image taking up 100% of the width of the page, click for full version
Use {option}: No
Button Image: not created
Only problem with this system as it stands is that it will occasionally make large images larger for people viewing on a very large resolution which can potentially make an image worse to look at. There are no plans to fix this yet as it would a totally different hack otherwise beyond my capabilities.

Another great benefit of this is it eliminates the moderator/administrator effort to police images that are too wide for people's screens, wrap this code and you'll never have that problem.

I might release 'variations' on this theme if people like. For example the hyperlink to full version may prevent other hyperlinks which may be a problem in some cases so you might use a version without the <a href... but I'm sure people can figure this out for yourselves.

You might want to use alternative tags like [largeimage] or [wide] or [fit] or something rather than [100]. I chose [100] because it's short, and it reminds me it fits the image to 100% width whatever happens. See attachment for what this looks like.

Well that's all folks. Get back to me on any mistakes if you want. This post took a long time to prepare as you might imagine!

If you install any of these tags, please click install :)

*****

Update: 27th December '05 -> Added a lot more button images, as well as fixed some old button images.
Thanks to dodgechargerfan for the ebay tag
Update: 11th March '06 -> Added the maquee tag, I mean why not?
Update: 24th March '06 -> Added the <hr> replacement variable type tag
Updated: 2nd October '6 -> Merged in my oversized image code

FightRice.com 12-19-2005 12:45 AM

AWesome, first install of the egg :woot:

Tidy 12-19-2005 12:45 AM

Very Nice Modification.
Reserved Post While Installing :)

JsnakeJ 12-19-2005 01:20 AM

Using tables isn't that smart as if the user forgets to close it the rest of the page may not work.

Thanks for the user tag.

HMBeaty 12-19-2005 04:21 AM

Thats pretty cool. How do I get them to show up in the table with all the other BB Code icons in the advanced reply and quick reply boxes?

VaaKo 12-19-2005 06:16 AM

thank you vry much

trancetopia 12-19-2005 07:48 AM

My members are going to love these, thanks.

/me clicks install

MrNase 12-19-2005 11:17 AM

It is NOT <strike>{param}</strike>..

It must be <span style="text-decoration: line-through;">{param}</span> :mad:


* MrNase fighting for a valid web :rolleyes:


Here's a button for the editor:


Sooner95 12-19-2005 03:07 PM

Nice, good work.

simsimt 12-19-2005 03:58 PM

Awesome,

Hope there is more...

Borgs8472 12-19-2005 04:56 PM

Quote:

Originally Posted by JsnakeJ
Using tables isn't that smart as if the user forgets to close it the rest of the page may not work.

Thanks for the user tag.

Give them a test. The tags never cause me problems ever. If there's no closing tag, then nothing is parsed, simple as.
Quote:

Originally Posted by NRR
Thats pretty cool. How do I get them to show up in the table with all the other BB Code icons in the advanced reply and quick reply boxes?

I will update soon with some images and brief instructions on how to add them as standard editor buttons if you like :)
Quote:

Originally Posted by MrNase
It is NOT <strike>{param}</strike>..

It must be <span style="text-decoration: line-through;">{param}</span> :mad:


* MrNase fighting for a valid web :rolleyes:


Here's a button for the editor:


Cool, I'll add that button soon. But I like <strike></strike> simply because it's easy to read in one's bbcode manager. I'm considering switching it to your version however because I admit I'm not very familiar with these standards.

kadafi_alive 12-19-2005 05:50 PM

Can someone provide buttons for these codes?

DJ XtAzY 12-19-2005 08:09 PM

shoudnt the PIE TAG be lowercase in its code? <tr> instead of <TR> so that it wuld be xhtml compliant?

chairman miaow 12-19-2005 08:50 PM

Excellent stuff ! Thanks

Borgs8472 12-19-2005 10:53 PM

Everyone asking about buttons to use these codes, I updated. Upload the new attached file with the button images and be sure to use the correct "Button Image (Optional): /images/???" field when managing your bbcodes and you'll add them to your editor!

mathias 12-20-2005 05:20 AM

Keep them coming :)

simsimt 12-20-2005 06:41 AM

I asked for this at vBulletin.com & they said it cannot be done: How can I place images for new custom BB codes where I want in the editor's interface? Now they're been added to the right.

Also, can I integrate them into the WYSIWYG interface mode, so they appear visually on the edting area, not between [][/] tags?

Hoffi 12-20-2005 04:35 PM

Thanks for the Credits. I still use my Tag.
Good Work.

First Time I posted the sign-Tag was in the Thread "I share my BB-Codes" in the vBulletin.com Forums months eralier.

JsnakeJ 12-21-2005 12:44 AM

I remember that thread. Some guy told me on it about the tables thing not being safe and I felt like repeating it.

john1744 12-21-2005 04:00 AM

How about a horizontal rule BBCode?

kadafi_alive 12-21-2005 07:52 AM

Ah, thanks for the effort! However, you haven't added the button that I really wanted :) The mouse, banana ones :(

Borgs8472 12-21-2005 04:50 PM

Quote:

Originally Posted by JsnakeJ
I remember that thread. Some guy told me on it about the tables thing not being safe and I felt like repeating it.

Drop me a link, I'd like to hear what he had to say. There are bbcodes for building tables entirely from scratch complete with cells and rows, I would understand if they were unsafe.

However the tag opens and closes the table in one, therefore I think it's safe.
Quote:

Originally Posted by john1744
How about a horizontal rule BBCode?

What do you mean?

A horizonal divider like:

------------------------------------------------------------------------------------------------------------

Sort of thing?
Quote:

Originally Posted by kadafi_alive
Ah, thanks for the effort! However, you haven't added the button that I really wanted :) The mouse, banana ones :(

Then I will add them as soon as I can (e.g. this week) :)

dodgechargerfan 12-22-2005 12:44 AM

These are great! I've clicked install.

I like the links ones, but I needed something for eBay, so.....

I changed the google and wikipedia one a little bit and got it to work as an ebay search link.
Put your search words in between the tags for a link to do a search on those words.
If you use the actual item number in instead, you get the item's page instead of a search.

Title: eBay
Tag: ebay
Replacement:
Code:

<a href="http://search.ebay.com/{param}">{param}</a>
Example: [ebay]Dodge Charger[/ebay] -->> Dodge Charger
Description: Links to search on eBay with search words or directly to item with item number.
Use {option}: No
Button Image (Optional): Not Created


Another example:
[ebay]4598080562[/ebay] gives you 4598080562



Button Image? I don't know. I'll try, but it's a logo so I don't know if it's legal or not.

silurius 12-22-2005 06:24 PM

The Wikipedia button shows up large & fuzzy for me, which is not the case when I view the GIF in an editor. Otherwise, thanks for an excellent release!

john1744 12-22-2005 06:55 PM

Yes I am referring to a _______________ line across the page.

YOimYO 12-26-2005 05:18 PM

thx for this :)

AquilaEagle 12-26-2005 07:03 PM

This looks like it could be fun! :)

AquilaEagle 12-26-2005 07:21 PM

ok help me out here. I got the images, but do i need to edit templates somewhere - if so where, it isn't clear to me from the instructions in your post :( cheers!

AquilaEagle 12-26-2005 07:23 PM

ignore me - I worked it out!! :)

Borgs8472 12-26-2005 11:53 PM

Update! Added lots of button images as well as that ebay tag! The images can be found in the zip still.

Quote:

Originally Posted by silurius
The Wikipedia button shows up large & fuzzy for me, which is not the case when I view the GIF in an editor. Otherwise, thanks for an excellent release!

Ah, I needed to give it a transparent border. I've updated the images, try with the new one.
Quote:

Originally Posted by john1744
Yes I am referring to a _______________ line across the page.

Hmmm... I've found a way to do this but it's so very messy I'm in two minds about whether I should post it here.

PennylessZ28 12-27-2005 12:10 AM

Nice work, thanks

Lottis 12-28-2005 03:30 PM

<u>Example: [nazi]http://www.wordforge.net/gallery/files/7-3.gif[/nazi] -->></u>

Whats the nazishit got with this to do?
Otherwise i liked your stuff, but the nazishit dissapointed. :disappointed:
Get ride of it, pls. Thats affending.

zlos 12-28-2005 04:29 PM

Regarding google BB Code. I tried this and got some questions regarding {param}, which is not html-parsed.

Example: {param} = "word +word1" produces "word%20word2", where %20 makes space simply...

Any idea how to get param fully html-parsed? :)

Borgs8472 01-14-2006 12:18 AM

^ ^
Searching for "X%20Y" does search on both keywords so does work.

However I might later incorperate Andreas' multiple option bbcode hack for something like that.

You could use
Code:

<a href="http://search.ebay.com/{option1}%20{option2}">{param}</a>
For instance maybe in conjunction with more advanced ebay options. But in the mean time, my method keeps things simple and works as far as I can see.

ChuanSE 01-29-2006 01:25 AM

Lovely :D

ChuanSE 01-29-2006 01:26 AM

Quote:

Originally Posted by Lottis
Example: [nazi]http://www.wordforge.net/gallery/files/7-3.gif[/nazi] -->>

Whats the nazishit got with this to do?
Otherwise i liked your stuff, but the nazishit dissapointed. :disappointed:
Get ride of it, pls. Thats affending.


political left = NAZI

political right= COMMUNIST

;)

Smiry Kin's 01-29-2006 03:07 AM

Damn i wish there was a quicker way to install these.. lol

BENSTER 01-29-2006 04:56 AM

Thanks a lot...simple to do, and should provide hours of fun!

Good stuff! :)

Brandon Sheley 01-29-2006 05:55 AM

thank you, added a few

/me hit install

Lottis 01-29-2006 03:18 PM

Quote:

Originally Posted by ChuanSE
political left = NAZI

political right= COMMUNIST

;)

I think that discusion is over. And i know, the different.


All times are GMT. The time now is 09:32 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.02788 seconds
  • Memory Usage 1,901KB
  • 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
  • (18)bbcode_code_printable
  • (26)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
  • (40)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