Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[BBCode] Impressions Details »»
[BBCode] Impressions
Version: 1.00, by TygerTyger TygerTyger is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.6.0 Beta 3 Rating:
Released: 07-14-2006 Last Update: 07-14-2006 Installs: 9
 
No support by the author.

This amused my members for about 30 seconds, perhaps you can achieve such dazzling results yourself! Very simple, just use [charactername][/charactername] tags to allow your members to throw amusing impressions into their posts. If they're anything like mine then they'll already do it regardless of whether the BBCode actually exists, so at least you can put a face to it. Must be a trend or something. Screenshot at the bottom!



INSTRUCTIONS
AdminCP > Styles & Templates > Style Manager > Main CSS

In the Additional CSS box at the bottom:

ADD:
Code:
.impression {
color:red;
min-height:120px;
margin:0 100px 0 100px;
padding:10px 0 0 120px;
}
AND for each character you want to add BBCode for (you can always include moderators if you're especially brave ) add the following CSS below the above code, I'll use Dr Evil as an example from hereon in, wherever his name occurs you replace it with the name of the character you want.

ADD BELOW:
Code:
.drevil {
background:transparent url(images/bbcode/drevil.png) no-repeat;
}

Upload the image you want to use with the Impression to your forum at the URL specified in the CSS above.


Now let's set up the fricken BBCode.

AdminCP > Custom BBCode > Add New BBCode

Title: Impression: Dr Evil
Tag: drevil
<div class="drevil impression">&quot;{param}&quot;<br /><br /><br /><br /><br /><br /></div>
Note: The endless <br />s are a workaround for yet another IE lack of support, I used this method because it is more flexible. If you're happy to go IE7/other browsers only at some point you can remove them or see the foot of this post for a less flexible but more compatible alternative.
Example: [drevil]How about no?[/drevil]
Description: (I'll leave that up to your own initiative!)



Save and you're done. Use them as you would any other BBCode. The four characters in the demo are zipped and included with the post to kick you off.



Demo:




Alternative Version:

Using min-height in the CSS allows for your characters to have different heights without you having to alter your code. However IE does not support it until IE7. Alternatively you can fix the height, which means you can remove all the <br />s from the BBCode and have cross-browser compatibility, but will not be able to add taller characters without changing the CSS to fit. If you're used much smaller characters before they will look a little lost in the larger-sized box.

If that's your preference, removed the min-height line and replace it with the highlighted lines here:

Code:
.impression {
color:red;
display:block;
height:120px;
margin:0 100px 0 100px;
padding:10px 0 0 120px;
}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-16-2006, 01:53 PM
Davidov06 Davidov06 is offline
 
Join Date: Jun 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Haha, this is awesome, although I have no use for it on my forum.
Reply With Quote
  #3  
Old 08-30-2006, 04:59 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack! I'll install it right away...
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 03:57 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.04016 seconds
  • Memory Usage 2,214KB
  • Queries Executed 18 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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