Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Limit width of quote box container if quoted text isn't wide as page Details »
Limit width of quote box container if quoted text isn't wide as page
Mod Version: 1.0.3, by Alan_SP (Designer) Alan_SP is offline
Developer Last Online: Oct 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (0 vote - 0 average) Installs: 7
Released: 25 Jan 2015 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

Well, first of all, I saw this on XDA forums. Here's link to one example on their site, to get idea how it looks like. I also attached image, so you can look here how it looks like. Of course, actual look depends on width of quoted text. If text is really wide, you wouldn't notice any difference.

Quote box is normally wide as screen (i.e. it depends on your postbit type, either new or legacy), not as quoted text. And if quoted text is relatively short, to some it might look unaesthetic.

Anyway, if you'd like to limit quote box to width of quoted message, add this to additional.css:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This would produce funny effect, your text would appear on the right of quoted block if there's space. To avoid it if you don't like it (probably you wouldn't) edit template bbcode_quote and add at the very beginning this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Also, you need to add at the very end of the same template (bbcode_quote) this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In case your forum is RTL (arabic etc), you need to change float: left; into float: right; and in template you need to clear:right.

v1.0 - Initial version
v1.0.1 - solved problem with multiple (3 or more) nested quotations
v1.0.2 - solved problem with very short text and quote in the same line
v1.0.3 - solved problem with PHP and HTML BBcode

You can see attached image how it looks.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	quoted.gif
Views:	153
Size:	7.9 KB
ID:	151712  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 26 Jan 2015, 02:08
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Solved problem with multiple nested quotations like in this image:



When more than two nested quotations is used, with original version text outside quotations also appeared as a part of first quotation. In image Tekst 5 should be outside quote, but it isn't. Strange bug.

To avoid this, instead this template change:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use this template change:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

First post is changed accordingly.
Attached Images
File Type: gif quote_bug.gif (5.2 KB, 241 views)
Reply With Quote
  #3  
Old 13 Feb 2015, 14:17
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
There's also a problem with very short text and quote in the same line, for example:

Text: [QUOTE]some quote[/QUOTE]

To resolve this, add at the very beginning of bbcode_quote template one div to clear it:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

First post changed accordingly.
Reply With Quote
  #4  
Old 26 Jul 2016, 04:05
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Originally Posted by Alan_SP
This would produce funny effect, your text would appear on the right of quoted block if there's space. To avoid it if you don't like it (probably you wouldn't) edit template bbcode_quote and add at the very beginning this:
when i use this mod, my text appear on the right of HTML & PHP BBCODE

please fix
Reply With Quote
  #5  
Old 26 Jul 2016, 04:57
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by babyv0x View Post
when i use this mod, my text appear on the right of HTML & PHP BBCODE

please fix
Try using the following selector:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 26 Jul 2016, 17:03
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Please confirm if it solves your problem, so I can change first post.
Reply With Quote
  #7  
Old 26 Jul 2016, 17:17
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Originally Posted by MarkFL View Post
Try using the following selector:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Originally Posted by Alan_SP View Post
Please confirm if it solves your problem, so I can change first post.
Problem solved.

Thanks to MarkFL & Alan_SP
Reply With Quote
  #8  
Old 26 Jul 2016, 17:28
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Changed to version 1.0.3 - Solved problem with PHP i HTML BBcode.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 19:10.

Layout Options | Width: Wide Color: