 |
 |
 |
 |
#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
|
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
Registered: 11/04/08
Posts: 7
|
|
 |
 |
 |
 |
|