![]() |
Break if there is quote first help
I want to add a break at the top of a post only if someone has started their message and then adds a quote later in the post. But if they list the quote first or don't do a quote anywhere in the message, I don't want a break at the beginning of the message. How can this be done?
|
could you select the data via a query checking it for "[quote]" and use that for a conditional?
|
Quote:
How about a CSS solution ... a little hard-code goes a long way ... A couple of options include assigning a class="breakabove" to the Quote element (whatever that is) or if it has a class already, then you will need to hack the BBCODE for Quote to add the CSS you need ... In either case, the CSS is: for the class solution Code:
.breakabove { margin-top: 1em; } Code:
style="margin-top: 1em;" Any questions, just ask :) |
you can check if the first six characters is [quote
|
All times are GMT. The time now is 07:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|