 |
 |
 |
 |
#150727 - 08/01/02 01:57 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150741 - 08/10/02 12:53 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150746 - 08/11/02 09:06 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
|
#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:</font><hr /> <blockquote><font class="small">code:</font> <hr /></blockquote>but on mine (again no mods) it is: <blockquote><font class="small">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"?)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150762 - 11/03/02 10:20 PM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Enthusiast
Registered: 10/10/02
Posts: 394
Loc: Toronto
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150765 - 11/09/02 08:59 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
|
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.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150770 - 11/09/02 02:20 PM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Admin / Code Breaker
Registered: 03/24/01
Posts: 7396
|
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:</font><hr /> $match++ if $_[0] =~ s/([QUOTE])(.+?)([/QUOTE])(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;<hr /></blockquote>Add below:<blockquote><font class="small">code: [qb] $match++ if $_[0] =~ s/[BIBLE=([A-Za-z0-9s]+)](d+):(d+)[/BIBLE]/&bible($1,$2,$3)/eisg; [/qb] Find: code:</font><hr /> <hr /></blockquote>Add below:<blockquote><font class="small">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:</font><hr /> [quote][bible=EPH]1:16[/bible][/quote] <hr /></blockquote>Result: <blockquote><font class="small">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
_________________________
My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150771 - 11/09/02 03:16 PM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Master Hacker
Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
|
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.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150780 - 11/13/02 07:03 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Junior Member
Registered: 06/09/02
Posts: 28
|
quote:</font><hr />Originally posted by LK: ubb_lib.cgi, where you see "$vars_wordlets{ubbcode_quote}:", replace it with "<span class="small">$vars_wordlets{ubbcode_quote}:</span>"<hr /></blockquote>I tried your code, but there is a bug: </span>, not </span> With "/ only" I obtained an error...ubb was unable to load. I added that inv.slash and it worked. Here's my headerinsert code: <blockquote><font class="small">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!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150783 - 11/19/02 01:34 PM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 08/14/00
Posts: 182
|
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 </font><blockquote><font size="1" face="Verdana, Arial,Helvetica, sans-serif"><span class="small">quote:</span></font><hr /><font size="2" face="Verdana, Arial,Helvetica, sans-serif">Originally posted by Mike: Testing Quote Editing</font><hr /></blockquote> <font size="2" face="Verdana, Arial,Helvetica, sans-serif">Testing Quote Editing The only change I made to the original was adding after the </blockcode> to add alittle separation. My line in ubb_lib.cgi looks like this $match++ if $_[0] =~ s/( )(s|n|r)*/ </font><blockquote><font size="1" face="$vars_style{FontFace}"><span class="small">$vars_wordlets{ubbcode_quote}:</span></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; Any ideas?
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150790 - 12/09/02 11:24 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Enthusiast
Registered: 10/10/02
Posts: 394
Loc: Toronto
|
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
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150793 - 02/04/03 12:26 AM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
|
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]
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#150795 - 02/06/03 02:24 PM
Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
|
Member
Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
|
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!
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
Registered: 07/03/01
Posts: 811
|
|
 |
 |
 |
 |
|