|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Name: Smarter Looking Quotes and Codes Author: Maze , adapted for ubb.classic by me Description: Hides hr's in quotes and encloses them in colored boxes Requirements: Valid license, Works in any UBB, tested in 6.3.1 Code: Place this in your headerinsert: <style type="text/css"> blockquote { font-size: 9pt; border: 1px solid #c3c3c3; background: #f6f6f6; color: black; margin: 0px 20px; padding: 0px 10px } blockquote .small { background:#e5e5e5; color: black; margin-left:-10px; padding:1px 2px } blockquote hr { visibility:hidden; height:1px } blockquote br { font-size:1px } </style> Demo: Here, check with the "frost" theme.
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Really sweet!  Nice work.
|
|
|
|
Joined: Oct 2001
Posts: 572
Member
|
Member
Joined: Oct 2001
Posts: 572 |
Nice and Simple. 
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
Simple, but very good 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by alone: Simple, but very good hmmm
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
|
|
|
|
Joined: Apr 2001
Posts: 214
Member
|
Member
Joined: Apr 2001
Posts: 214 |
Nothing like a 2 sec Addon =) thanks AA, works GREAT!!
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
By far the easiest hack I have done and very nice and useful.
Now being that CSS can be used in this way, are the other possibilities for quote blocks in this way?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Sure, you can experiment with it, it shouldn't harm anything 
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
for those using JCTemplates:
Remove the first and last line of the hack Insert into CSS section of template
|
|
|
|
Joined: Apr 2001
Posts: 31
Junior Member
|
Junior Member
Joined: Apr 2001
Posts: 31 |
very cool, much better looking!
Did you use wordlets to change the background color of the small 'quote:'?
Thanks, Adam
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
I guess I am just an idiot - The line that is quoteblock .small which I assume sets up the parameters for the section that says quote: does not work for me <style type="text/css"> blockquote { font-size: 9pt; border: 3px solid #34669a; background: #FDF5E6; color: black; margin: 12px 20px; padding: 0px 10px } blockquote .small { background: #34669A; color: white; margin-left:-10px; padding: 1px 2px } blockquote hr { visibility: hidden; height: 1px } blockquote br { font-size: 1px } </style> what am I doing wrong?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
In ubb_lib_posting.cgi and ubb_lib.cgi, before the part of "quote:" and "code:", add ' ', and afterwards, add ' '.
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
I can only guess you are referring to sections that look like this:
*** deleted cause it was obviously not the right area ***
there are no areas that match what you refer to since wordlets are used
then there are something like 3 or 4 areas in each file that might match taking wordlets into consideration
oh well.... as I said....
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
I guess nothing is ever as simple as it appears.
This "mod" appeared to be simple, yet as published it does not do what is displayed here.
It takes further modifications and unfortunately what you have said LK does not affect anything - assuming (big word) I have place the div tags in the right place which considering wordlets I have.
I did not put it the sections that undoes the code for editing - only in the section where it converts the ubb code to what is displayed.
Suggestions???
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
Suggestions beyond going out and getting a brain, thank you. 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
i tried this: <style type="text/css"> blockquote { font-size: 9pt; border: 1px solid #c3c3c3; background: #f6f6f6; color: black; margin: 0px 20px; padding: 0px 10px } div.small { background:#e5e5e5; color: black; margin-left:-10px; padding:1px 2px } blockquote hr { visibility:hidden; height:1px } blockquote br { font-size:1px } </style> and it was the closest I could get to this actually working as shown on this board (changed the second blockquote to div) but it would then do the whole line in the different color
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
but adding anything to only the two lines that create the code causes for all the created code to appear if the post is edited so obviously there must be much more to make that dang little box a different color perhaps too much to even freaking bother with i have lost two hours of sleep messing with this i'm such an idiot
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
heheh What version ubb are you running? There's some slight differences between versions when we went xhtml-compliant 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
|
|
|
|
Joined: May 2002
Posts: 14
Junior Member
|
Junior Member
Joined: May 2002
Posts: 14 |
i have a problem, when i enter the text so long, it keep on going and going and expand the forum width and it look nasty, is there a way to fix it so when we enter a text this long it will automatic cut and to next line according to the forum width
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
before I edit your post  , that's the designed behaviour of the code tags, not this modification. It is set to keep your line breaks the same, because if you are posting actual code, that's a very important feature. use the quote tag if you need line breaks, that's what it is for CaCoffin, if you haven't edited the quote tags in ubb_lib_posting.cgi, then yours should work the same as those here. Please give me a link to a post at your site that isn't looking right using the code as specified here 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
I have absolutely ZERO mods to the board - I have erased my previous attempt to enter this mod - I have rentered the MOD EXACTLY has shown - (copy / paste to be exact)
It does not left align the word "code" or "quote" and it does not have the extra coloring around the word.
Here is what code I do have in that same section:
X X X deleted by me X X X
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
oh and here is a page to see it
http://iambornagainru.org/bab/ultimatebb.php?ubb=get_topic;f=12;t=000071
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
#1 I am truly a doofus! #2 I failed to read Header INSERT #3 I had other code in there too that was not working well with the rest #4 I erased that other coding #5 Put just the style coding for the quote in there #6 Still does not work #7 I know why but I don't know why blockquote .small on your pages you have this code: code:
<blockquote><font class="small">code:</font>
but on mine (again no mods) it is: code: [qb]<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font> [/qb] I have no font class small! So where is this being used instead of what I have???? (That is where in the control panel do I have something that can be changed to "small"?)
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
Does no one know why I using the latest version of UBB has different code than you guys do here?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ubb_lib.cgi and ubb_lib_posting.cgi, where you see the code/quote things, you can just put class="small" after .
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
quote: Originally posted by CaCoffin: Does no one know why I using the latest version of UBB has different code than you guys do here?  We have completely different templates based on our css work we did a few months back, so yeah, they're different. Do as LK said and it should work for you. You'll most likely need to experiment to make sure editing/quoting those posts with quotes/codes work out right - you'll probably need to put it in where it changes ubb code to html, and also where it changes html back to ubbcode.
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
Thank you
It now works for the average schmendrick (me) that has no MODS installed (other than this one now).
I have been trying to make zero MODS to the coding. I can get them installed just fine but then when a new version of the UBB comes out I managed to mess everything up and have lost everything several times over the last two years.
Which of course has caused us to lose many members.
So I don't do any hacking of the actual files anymore.
If a "mod" is going to be done by me it has to be something that can be done in such a way that it does not alter the member files (main cause of problems for me) and can easily be redone with an upgrade (thus does not mess with the posts either).
One of these days I'll get into the templates thing and figure some stuff out but for now, so as not to chase members away I have to leave things alone.
Thanks for the help on this one!
|
|
|
|
Joined: Aug 2002
Posts: 3
Junior Member
|
Junior Member
Joined: Aug 2002
Posts: 3 |
quote: Originally posted by CaCoffin: I guess nothing is ever as simple as it appears.
This "mod" appeared to be simple, yet as published it does not do what is displayed here.
It takes further modifications and unfortunately what you have said LK does not affect anything - assuming (big word) I have place the div tags in the right place which considering wordlets I have.
I did not put it the sections that undoes the code for editing - only in the section where it converts the ubb code to what is displayed.
Suggestions??? Very Nice =)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Hey CaCoffin, set up a test forum to practice on... until you get the hang of it you really don't wanna modify your live site without making sure it works ahead of time. What works for me may not work for you based on what other things we both have installed.
|
|
|
|
Joined: Aug 2002
Posts: 97
Member
|
Member
Joined: Aug 2002
Posts: 97 |
Worked great for me thanks 
|
|
|
|
Joined: Feb 2001
Posts: 54
Member
|
Member
Joined: Feb 2001
Posts: 54 |
quote: Originally posted by AllenAyres: Code: Place this in your headerinsert: Mod looks great, sounds super easy to install, only one catch... where the heck do I find the "headerinsert"?? UBB 6.3.1
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
that's in your style templates, under the header and footer boxes. 
|
|
|
|
Joined: Sep 2002
Posts: 16
Junior Member
|
Junior Member
Joined: Sep 2002
Posts: 16 |
I like it... Thanks a lot for this nice hack bobbel
|
|
|
|
Joined: Mar 2001
Posts: 56
Member
|
Member
Joined: Mar 2001
Posts: 56 |
It adds a nice box around the quote and code, but the .small reference is useless.
|
|
|
|
Joined: Feb 2001
Posts: 169
Member
|
Member
Joined: Feb 2001
Posts: 169 |
Things so simpe are also so sweeeeet ! Thank you, works perfectly !
|
|
|
|
Joined: May 2002
Posts: 28
Junior Member
|
Junior Member
Joined: May 2002
Posts: 28 |
Nice and easy, even I done that one 
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
anybody explain please where this header insert is? is there a instruction for dummies? 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
quote: Originally posted by AllenAyres: that's in your style templates, under the header and footer boxes. Answered before you asked!
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
|
|
|
|
Joined: Jan 2002
Posts: 5
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 5 |
Easiest mod I've ever installed. Would there be a way to put more spacing around the quote and the reply area? When multple quotes are used the text gets so cramped it's kinda hard to read.... maybe a way to add tranparent gifs before and after the quoted field? [edit] - figured this would be easier to understand with an example: Too cramped: ![[Linked Image]](http://www.anihina.com/kamuix/nospacing.jpg) Would help a lot: ![[Linked Image]](http://www.anihina.com/kamuix/withspacing.jpg)
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
I added s or was it
s to the quote translating code so there is gap after the quotes - been awhile - but it is possible
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
Sorry for the bad information it has just been awhile since I added the MOD. Within the code for the header insert: <style type="text/css"> blockquote { font-size: 9pt; border: 1px solid #4577AB; background: #FDF5E6; color: black; margin: 8px 20px; padding: 0px 10px } blockquote .small { background:#34669A; color: white; margin-left:-10px; padding:1px 2px } blockquote hr { visibility:hidden; height:1px } blockquote br { font-size:8px } a:visited { text-decoration: none } a:link { text-decoration: none } a:hover { color: #008000; font: italic; text-decoration: none } a:active { text-decoration: none } </style> It is the padding that adds the spacing around the outside of the quote block. The MOD as written has a padding of ZERO. As you look over the code above you will see I increased it to 10px. This is the code that gets inserted into the header insert section. Which is located in the Style Template you are using for your board.
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
Oh and that is the first padding which sets up the padding around the outside of the entire quote block. The next padding sets up the padding around the small quote: or code: set. For those of you who would like different options for quotes and codes (such as a Christian board quoting the Bible) it is easy, using this MOD, to set up another code such as for my example I added a special tag for our users when quoting the Bible. [bible]add bible quote[/bible] Which simply puts the words "Bible Quote" in the small block. As seen here: http://iambornagainru.org/cgi-bin/bab/ultimatebb.cgi?ubb=get_topic&f=3&t=000561#000002 It is nothing really, but offering your users a specialized quote or whatever can be very useful.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Or maybe you can use [bible=Ephesians 1:16]do not cease ...[/bible] To make the ephesians 1:16 wording look more special? Or of course, in the future (if someone can give me a vars file with the whole bible) we could make it [bible=Ephesians]1:16[/bible] and it will post the quote for you 
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
LK! That would be fantastic!!!
I'll get that for you - one that is in the public domain.
That would be fantastic!
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
LK this site ( http://www.bf.org/bfetexts.htm ) has several text files of various versions. Can you take a look and see if they are useable? If not then let me know what needs to be changed and I'll do the work.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
I made a version that works with "darbybib.zip" in that URL. It works with bbe.zip and av.zip as well, as long as you rename the extension to ".DBY". Instructions: download the darbybib.zip file, and upload all its files to cgi-bin/bible dir. open ubb_lib.cgi. Find: code:
$match++ if $_[0] =~ s/()(s|n|r)*/ </font><blockquote><font size="1" face="$vars_style{FontFace}">$vars_wordlets{ubbcode_quote}:</font><hr /><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">$2</font><hr /></blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">/isg;
Add below: code: [qb] $match++ if $_[0] =~ s/[BIBLE=([A-Za-z0-9s]+)](d+):(d+)[/BIBLE]/&bible($1,$2,$3)/eisg; [/qb] Find: code:
Add below: code: [qb]sub bible { my ($a, $b, $c) = @_; $a =~ s/^(.*?)$/U$1E/; if (&FileExists("$vars_config{CGIPath}/bible/$a.DBY")) { my $file = &OpenFileAsString("$vars_config{CGIPath}/bible/$a.DBY"); if ($file =~ m/$b:$c /) { $file =~ s/(.*?)$b:$c//isg; $d = $b+1; $e = $c+1; $file =~ s/$d:1(.*?)$//isg; $file =~ s/$b:$e(.*?)$//isg; return &ConvertReturns($file); } } return "[BIBLE=$a] $b:$c [/BIBLE]"; } [/qb] Then use code:
Result: code: [qb]do not cease giving thanks for you, making mention [of you] at my prayers, [/qb] Note: if you give me a list of all long names (like John) with their short form (like JOH) I can make it so you can type [bible=John] instead of [bible=joh]... After we get it to work like that, I'll make it like you want it to be if you wish - like [quote] but with "Bible Quote" and make the name more emphasized Edit: now it works with darbybib.zip instead of bbe.zip cause I think it's better.. Note: I haven't tested it since I modified it to read .dby, so lemme know if it doesn't work
|
|
|
|
Joined: Sep 2000
Posts: 4,211
Master Hacker
|
Master Hacker
Joined: Sep 2000
Posts: 4,211 |
quote: Originally posted by LK: if you give me a list of all long names (like John) with their short form (like JOH) Here you go, in order of appearance: Old Testament Gen. Ex. Lev. Num. Deut. Josh. Judg. Ruth 1 Sam. 2 Sam. 1 Kings 2 Kings 1 Chron. 2 Chron. Ezra Neh. Est. Job Ps. Prov. Eccl. Song Isa. Jer. Lam. Ezek. Dan. Hos. Joel Amos Obad. Jonah Mic. Nah. Hab. Zeph. Hag. Zech. Mal. New TestamentMatt. Mark Luke John Acts Rom. 1 Cor. 2 Cor. Gal. Eph. Phil. Col. 1 Thess. 2 Thess. 1 Tim. 2 Tim. Titus Philem. Heb. James 1 Peter 2 Peter 1 John 2 John 3 John Jude Rev.
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
There is a standard 3 letter abbreviations list, which is as follows:
OT:
GEN - Genesis EXO - Exodus LEV - Levitcus NUM - Numbers DEU - Deuteronomy JOS - Joshua JGS - Judges RTH - Ruth 1SAM - 1 Samuel 2SAM - 2 Samuel 1KGS - 1 Kings 2KGS - 2 Kings 1CHR - 1 Chronicles 2CHR - 2 Chronicles EZR - Ezra NEH - Nehemiah EST - Esther JOB - Job PSA - Psalms PRO - Proverbs ECC - Ecclesiastes SOL - Song of Solomon ISA - Isiah JER - Jeremiah LAM - Lamentations EZE - Ezekiel DAN - Daniel HOS - Hosea JOE - Joel AMO - Amos OBA - Obadiah JON - Jonah MIC - Micah NAH - Nahum HAB - Habakuk ZEP - Zephaniah HAG - Haggai ZEC - Zechariah MAL - Malachi
NT:
MAT - Matthew MAR - Mark LUK - Luke JNO - John ACT - Acts ROM - Romans 1COR - 1 Corinthians 2COR - 2 Corinthians GAL - Galatians EPH - Ephesians PHI - Philippians COL - Colossians 1THS - 1 Thessalonians 2THS - 2 Thessalonians 1TIM - 1 Timothy 2TIM - 2 Timothy TIT - Titus PHN - Philemon HEB - Hebrews JAS - James 1PET - 1 Peter 2PET - 2 Peter 1JNO - 1 John 2JNO - 2 John 3JNO - 3 John JUD - Jude REV - Revelation
I think that is the whole list.
Thanks again for the work you are doing on this!
|
|
|
|
Joined: Dec 2000
Posts: 151
Member
|
Member
Joined: Dec 2000
Posts: 151 |
LK, it would be very helpful, if it is possible, that the book chapter:verse reference is included in the quote too.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Try the following sub bible, including the whole Old Testament sub bible { my ($orig, $b, $c) = @_; $a = $orig; $a =~ s/^(GEN|Genesis)$/GE/i; $a =~ s/^(Exodus|EXO)$/EX/i; $a =~ s/^(LEV|Levitcus)$/LE/i; $a =~ s/^(NUM|Numbers)$/NU/i; $a =~ s/^(DEU|Deuteronomy)$/DE/i; $a =~ s/^(JOS|Josh|Joshua)$/JOS/i; $a =~ s/^(JGS|Judges)$/JUD/i; $a =~ s/^(RTH|Ruth)$/RU/i; $a =~ s/^(1SAM|1.*?Samuel)$/1SA/i; $a =~ s/^(2SAM|2.*?Samuel)$/2SA/i; $a =~ s/^(1KGS|1.*?Kings)$/1KI/i; $a =~ s/^(2KGS|2.*?Kings)$/2KI/i; $a =~ s/^(1CHR|1.*?Chronicles)$/1CH/i; $a =~ s/^(2CHR|2.*?Chronicles)$/2CH/i; $a =~ s/^Ezra$/EZR/i; $a =~ s/^(NEH|Nehemiah)$/NE/i; $a =~ s/^(EST|Esther)$/ES/i; $a =~ s/^(PSA|Psalms)$/PS/i; $a =~ s/^(PRO|Proverbs)$/PR/i; $a =~ s/^(ECC|Ecclesiastes)$/EC/i; $a =~ s/^(SOL|Song.*?Solomon|Song.*?Songs)$/SO/i; $a =~ s/^Isiah$/ISA/i; $a =~ s/^Jeremiah$/JER/i; $a =~ s/^(LAM|Lamentations)$/LA/i; $a =~ s/^Ezekiel$/EZE/i; $a =~ s/^(DAN|Daniel)$/DA/i; $a =~ s/^(HOS|Hosea)$/HO/i; $a =~ s/^Joel$/JOE/i; $a =~ s/^(AMO|Amos)$/AM/i; $a =~ s/^(OBA|Obadiah)$/OB/i; $a =~ s/^Jonah$/JON/i; $a =~ s/^Micah$/MIC/i; $a =~ s/^(NAH|Nahum)$/NA/i; $a =~ s/^Habakuk$/HAB/i; $a =~ s/^Zephaniah$/ZEP/i; $a =~ s/^Haggai$/HAG/i; $a =~ s/^Zechariah$/ZEC/i; $a =~ s/^Malachi$/MAL/i; $a =~ s/^(.*?)$/U$1E/; if (&FileExists("$vars_config{CGIPath}/bible/$a.DBY")) { my $file = &OpenFileAsString("$vars_config{CGIPath}/bible/$a.DBY"); if ($file =~ m/$b:$c /) { $file =~ s/(.*?)$b:$c//isg; $d = $b+1; $e = $c+1; $file =~ s/$d:1(.*?)$//isg; $file =~ s/$b:$e(.*?)$//isg; return qq~ </font><blockquote><font size="1" face="$vars_style{FontFace}">bible quote:</font><hr /><font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>$orig $b:$c</b> ~.&ConvertReturns($file).qq~</font><hr /></blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">~; } } return "[BIBLE=$orig] $b:$c [/BIBLE]"; } Lemme know of any problem.. Edit: there are some bugs, I'll fix them when I get back...
|
|
|
|
Joined: Jan 2002
Posts: 5
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 5 |
Thanks CaCoffin, that's perfect! 
|
|
|
|
Joined: Jun 2002
Posts: 28
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 28 |
Wow...a newbie coding guide no, huh? I didn't understand a thing, could someone explain me, clearly, slowly and with a lot of patience? I want these quote and code boxes, with the "quote" word surrounded by another color (like this one in ubbdev  ). I installed a lot of hacks on my ubb, but I didn't understand a thing with this code! What files have I to modify? Where and WHAT codes have I to insert? I have UBB.classic 6.2.1. Thanks a lot 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Go to your Control Panel, choose "Style Settings", choose your style template and in "Header Insert" portion, paste the code in this thread's first post 
|
|
|
|
Joined: Jun 2002
Posts: 28
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 28 |
quote: Originally posted by LK: Go to your Control Panel, choose "Style Settings", choose your style template and in "Header Insert" portion, paste the code in this thread's first post Yep, I did it...but it's all white, no grey background on "quote" or "code"... How can i do this?
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
ubb_lib.cgi, where you see "$vars_wordlets{ubbcode_quote}:", replace it with "$vars_wordlets{ubbcode_quote}:"
|
|
|
|
Joined: Jun 2002
Posts: 28
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 28 |
quote:
Originally posted by LK: ubb_lib.cgi, where you see "$vars_wordlets{ubbcode_quote}:", replace it with "$vars_wordlets{ubbcode_quote}:"
I tried your code, but there is a bug: , not With "/ only" I obtained an error...ubb was unable to load. I added that inv.slash and it worked. Here's my headerinsert code: code: [qb]<style type="text/css"> blockquote { font-size: 9pt; border: 1px solid #c3c3c3; background: #f6f6f6; color: black; margin: 8px 20px; padding: 0px 10px}blockquote .small { background:#c3c3c3; color: black; margin-left:-10px; padding:1px 2px}blockquote hr { visibility:hidden; height:1px}blockquote br { font-size:10px}</style> [/qb] Tnx a lot LK!
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
LK, I sent you a PM regarding these quotes, they just wont work for me. Can you read it and help me out?
Thank you
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
All done, the mod works perfectly thanks to LK. He went the extra mile going into my bins and fixing the bugs right down to the root.
This community should be happy having such a man around.
Thank you very much.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
I have a wierd problem after adding this hack. If you try to edit a post that has a quote in it you end up with this in the edit window quote: Originally posted by Mike: Testing Quote Editing
Testing Quote Editing
The only change I made to the original was adding after the to add alittle separation.
My line in ubb_lib.cgi looks like this $match++ if $_[0] =~ s/()(s|n|r)*/ $vars_wordlets{ubbcode_quote}: $2
/isg;
Any ideas?
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
quote: Originally posted by Painfool: I have a wierd problem after adding this hack.
Any ideas? Testing it here... Nope did not do it here... hmmm
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
yes, you need to take that out, the code that converts ubbcode to html has to match the code that converts the html back to ubb code Adjusting the css will give you the space you are wanting 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Painfool, you should also add and to ubb_lib_posting.cgi, sub reverse_ubb_code, the line with $vars_wordlets{ubbcode_quote} 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Thanks that fixed it right up! I had originally removed the to see if that was the problem... and although it was, removing it does not fix the posts that were made while it was "broken"  Thanks!
|
|
|
|
Joined: Jan 2002
Posts: 88
Member
|
Member
Joined: Jan 2002
Posts: 88 |
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
you're welcome 
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
I am not sure would I post this question, please move if this is not the right location. A weird thing happened. After installing Advanced UBB I lost the small blue background of "quote" box. Can see the example HERE , a comparison between Quote and Code. Any idea what should I do? Thank you
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Just disregard the request. Problem solved.
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Okay, now for an entirely NEW question... How in the heck can I partially disable the [QB], so that it is inserted into to top of each quote, where it says, " Originally posted by ???:"..? It's really annoying to have the complete quote in bold print! 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
After a bit of beating my head against a wall, I finally figured it out! My quotes now look like this, except I have the bold text underlined as well... Just add and inside the and references. The additional "n" adds the line spacing between the header and the text body. quote: Orginally posted by ????: This is the body of the text blah, blah, blah. Note the blank line between the header and the text body! If anyone ( for any reason) is interested, the following is what I did. ubb_new_reply.cgiFind: [/code] Replace with: [code]
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Nice Now try to make the name of the post originator a different color 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Oh, I see how you're gonna be now... My board is currently DOA, as it is undergoing a server upgrade, so I can't actually test anything for you. This will probably be wrong (but headed in one of the right directions[/i]), but since I'm claiming idiot status beforehand, I should get an exemption from public ridicule and floggings... If it actually worked, this would require you to preset a specific hex code for your color tag. [code][/code]I told you earlier, that I'm just an idiot that gets lucky every now and again, so before you start laughing and pointing fingers at me, I'm gonna run away and hide under my favorite rock!
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Tim, it doesnt work. I only get this on the Quote post preview: [QUOTE][COLOR=
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Re-read the disclaimer that I added before the code attempt! 
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
I have a question for those who like to play. I'm thinking of installing this into my board, but I notice that the quote box is right up against the next piece of text. Example: spacing between the quote box & this? I'd love to see at least one, if not two, line breaks. Thanks. [edit to ask: how on earth did that little quote skew this page so badly?!  ]
Sue adwoff.com
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I believe if you remove this section it fixes that blockquote br { font-size:1px }
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
quote: Originally posted by AllenAyres:
I believe if you remove this section it fixes that
blockquote br { font-size:1px }Okay, I'll give it a shot. Thanks, Allen. 
Sue adwoff.com
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Okay, Allen, I think what you suggested worked w/in the box, but now I'm trying to address the spacing outside of the box. Here's a snapshot: Is this making any sense? Thank you for whatever  you can give.
Sue adwoff.com
|
|
|
|
Joined: Jun 2005
Posts: 17
Junior Member
|
Junior Member
Joined: Jun 2005
Posts: 17 |
Could someone show me how to remove the tags around the quoted portions in this mod?
Did I say PLEASE? I sure did.
Thanks to all the caring people at UBBDEV. I should have come around sooner and gotten professional help rather than wasting precious time and energy. Thanks again.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
well you can do it 2 ways, first, you can use CSS
blockquote strong { font-weight: normal; }
which would not require modifications.
The other would be to look for [ qb] in ubb_new_reply.cgi and remove both the [ qb] and the [ /qb]
|
|
|
|
Joined: Dec 2003
Posts: 49
User
|
User
Joined: Dec 2003
Posts: 49 |
Originally posted by ADWOFF: Okay, Allen, I think what you suggested worked w/in the box, but now I'm trying to address the spacing outside of the box. Here's a snapshot: Is this making any sense? Thank you for whatever  you can give. You need to add some width to the margin. The current setting of 0px for the vertical will cause it to pull tight. So either adjust it to 0px 20px 20px 20px or just change it to 20px to have a 20 pixel margin all the way around.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|