Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Upside Down Text BBCode Details »»
Upside Down Text BBCode
Version: 2.00, by Thelonius Beck Thelonius Beck is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.x Rating:
Released: 09-19-2010 Last Update: 09-20-2010 Installs: 10
Re-useable Code  
No support by the author.

~This should work for any version.~

A member on my site requested this, and after failing to find one here, I went ahead and slapped it together.

Description: BB Code that inverts text, smileys, images..whatever. Tested in Firefox, Opera, Safari, Chrome, and IE.

flip.jpg

Upload included button image to "images/editor" folder (Change if using alternative images folder)Attachment 122199


In "All Style Options > Additional CSS Definitions" add;

Code:
/* ***** Flip Code ***** */
.flip {
    -moz-transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
    display: inline-block;
}
Add New BB Code;
Title:
Code:
Flipped Text
BB Code Tag Name:
Code:
flip
Replacement:
Code:
<div class="flip">{param}</div>
Description:
Code:
Invert Text Vertically
Use {option}:
Code:
No
Button Image (Optional)
Code:
images/editor/flip.gif
Remove Tag If Empty:
Code:
Yes
Disable BB Code Within This BB Code:
Code:
No
Disable Smilies Within This BB Code:
Code:
No
Disable Word Wrapping Within This BB Code:
Code:
No
-=[ UPDATE: I HAVE ADDED A SCREENCAP, BUTTON IMAGE, AND A DOWNLOADABLE COPY OF THESE INSTRUCTIONS & IMAGES]=-

Download Now

File Type: zip flip-bbcode.zip (81.4 KB, 40 views)

Show Your Support

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

Comments
  #12  
Old 09-21-2010, 12:36 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that with the updated code, or the original? Unfortunately I do not have a 4.x.x installation to test it on.
Reply With Quote
  #13  
Old 09-21-2010, 01:02 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated code

edit

tested with flipping a whole sentence and it aligns to the right of the screen
Reply With Quote
  #14  
Old 09-21-2010, 01:18 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, can you link me to an example post?
Reply With Quote
  #15  
Old 09-21-2010, 01:35 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

link will be removed after testing

link removed
Reply With Quote
  #16  
Old 09-21-2010, 01:44 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the code currently installed on your forum? I have no hope of finding the error if it's not installed.

***Sorry, looking at the wrong skin.
Reply With Quote
  #17  
Old 09-21-2010, 02:03 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK sulasno, you're code is identical to what I am running on my board, at least on your last 5 selectable styles. Nothing on the first 2.

I have to point out, that the alignment in that post appears correct. Are you, per chance, using an older browser?
Reply With Quote
  #18  
Old 09-21-2010, 02:44 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry I forgot to inform you that I did not add the Additional CSS Definitions to the default style

I suppose I was thinking that the alignment of the BBcode should be right instead of left (correct side up)
Reply With Quote
  #19  
Old 09-21-2010, 02:58 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must apologize here. Maybe I'm just tired, but I'm at a loss as to what you're looking for. Are you looking for a backwards flip, where the text remains upright, but is "mirrored" horizontally?

*******************************

Note: I'll see about adding some screencaps to the first post, as per your suggestion, tomorrow.
Reply With Quote
  #20  
Old 09-21-2010, 03:12 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no; your mod is working prefectly;

I thought the flipped words would be right aligned;

I expected this;

Normal sentence
Flipped sentence
Normal sentence

What I see on my screen is;

Normal sentence
Flipped sentence
Normal sentence
Reply With Quote
  #21  
Old 09-21-2010, 03:21 AM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really? You should not see that. I do not see that on your site. It appears that your browser is not supporting the "display: inline-block". What browser are you using?
Reply With Quote
Reply

Thread Tools

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 10:26 AM.


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.04382 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
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
  • (11)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete