vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   BB Code Enhancements - Nice Looking Sotw BBcode (https://vborg.vbsupport.ru/showthread.php?t=196537)

haxcommunity 11-16-2008 10:00 PM

Nice Looking Sotw BBcode
 
What this is:
Well, I was looking to spice up my site Sig Of the Week threads a little bit, so I came up with this. Your users can use this bbcode when submitting their work for your competition, and it gives a slightly more "professional" look to it.

Works very nicely if you have an Advanced BBcode Permissions hack installed.

Previews:
Light Skin

Dark Skin

Installation/Setup:
  1. Go to your admincp, find Custom BB codes, and open "Add new BBcode"
  2. For the title, put SOTW entry
  3. For BB code tag name, enter : sotw
  4. Paste this code into the replacement box:
    Code:

    <center><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="80%" align="center">

    <tr>
    <td class="thead"><center>Signature of the Week Entry</center></td>
    </tr>
    <tr>
    <td class="panelsurround" align="center">
    <div class="panel">
    <div align="center">
    <div class="fieldset">
    <div style="padding:3px">
    <strong>{option}</strong>
    </div>
    </div>
    </td>
    </tr>
    <tr>

    <td class="panelsurround" align="center">
    <div class="panel">
    <div align="center">
    <div class="fieldset">
    <div style="padding:3px">
    <a href="{param}" border="none"><img src="{param}" alt="{option}" border="none"></a>
    </div>
    </div>
    </td>
    </tr>
    <tr>
    <td class="panelsurround" align="center">
    <div class="panel">
    <div align="left">
    <div class="fieldset">
    <div style="padding:3px">
    <div class="alt2" style="align:left;">
    <b> <center> I have read the rules pertaining to this week's Sig of the Week Competition, and would like to enter my image above. I acknowledge that it I vote for my own work when the poll is posted, I will be disqualified<br> <a href="{param}">[Direct Link To Image]</a>

    </div>
    </div>
    </td>
    </tr>
    </table></center>

  5. In the Example Box, paste this:
    Code:

    [sotw="Rune Despair"]http://i327.photobucket.com/albums/k449/Haxcommunity/runic.png[/sotw]
  6. Enter Whatever you like for the description
  7. Set use {option} to YES
  8. There is no button image at this time
  9. Set remove tag if empty to YES
  10. Set Disable BB Code Within This BB Code to yes (This will prevent users from messing up and posting img tags inside the sotw tags, it also will prevent users from putting size bbcodes in the tag.
  11. Set Disable Smilies to Yes
  12. Set Disable Word Wrapping Within This BB Code to NO

Now hit save, and all should work fine! :D

I would now advise making a stickied thread in your Sotw forum, with something like this:

Quote:

I've added a new mod that will help "spice up" the entries a little, from now on, I'd like to ask that all submissions be made using this new bbcode.

Just So You know what it looks like,
[sotw="Rune Despair"]http://i327.photobucket.com/albums/k449/Haxcommunity/runic.png[/sotw]

How to Use:

You need 2 things to submit your image: A name, and a direct link to the image.

For example; If I had named my sig Rune Despair, and the url for the image is http://i327.photobucket.com/albums/k...nity/runic.png , then I would type something like this:

HTML Code:

[sotw="Rune Despair"]http://i327.photobucket.com/albums/k449/Haxcommunity/runic.png[/sotw]
Its a pretty easy format to figure out.
Do not use this BBCode outside of the SOTW forum, if you are seen doing it, you will receive an infraction for it.
Feel free to replace any of that post with your own writing/images.

Also, one thing to check is if your shoutbox allows other bbcodes to be posted, if so, then you may want to manually disallow it from your shout.

Magnumutz 11-17-2008 02:00 PM

Pretty nice BBCode :)
Good job dude.

K4GAP 11-17-2008 05:38 PM

Is it possible to maybe share any known offenders? If you don't want to disclose it maybe you can message me? I job out a lot of my mods and add ons. I don't want to use someone that would do such a thing.

haxcommunity 11-18-2008 12:53 AM

Quote:

Originally Posted by GaryT (Post 1667646)
Is it possible to maybe share any known offenders? If you don't want to disclose it maybe you can message me? I job out a lot of my mods and add ons. I don't want to use someone that would do such a thing.

Hmm? What exactly are you talking about?

TheInsaneManiac 11-18-2008 02:14 AM

Quote:

Originally Posted by haxcommunity (Post 1667826)
Hmm? What exactly are you talking about?

Wondering the same thing lol.

Anyway great job! Installed!

EDIT: I had to remove the option as if someone does NOT include an option it disables the BBCode. Is there a way so that if there is no option the BBCode still works?

haxcommunity 11-20-2008 12:27 AM

Quote:

Originally Posted by TheInsaneManiac (Post 1667850)
Wondering the same thing lol.

Anyway great job! Installed!

EDIT: I had to remove the option as if someone does NOT include an option it disables the BBCode. Is there a way so that if there is no option the BBCode still works?

Off the top of my head, no. I'd just tell your users that they HAVE to follow that stucture, Mine never had a problem with it.

I'll see if there some kind of work around...

K4GAP 11-20-2008 01:28 AM

Quote:

Originally Posted by TheInsaneManiac (Post 1667850)
Wondering the same thing lol.

Anyway great job! Installed!

EDIT: I had to remove the option as if someone does NOT include an option it disables the BBCode. Is there a way so that if there is no option the BBCode still works?

Sorry, I was referring to the message in her sig :confused:

OMGNOWAI 11-22-2008 10:16 PM

Wow I love this, THANKS MAN! ;D

Dingo14 12-19-2008 01:49 AM

yep nice one looks great on site thanks

princeedward 07-26-2009 07:11 AM

nice one....thanks... ;)


All times are GMT. The time now is 12:54 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.01194 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete