php forum
php mysql forum
php mysql smarty
 
Page 1 of 5 1 2 3 4 5 >
Topic Options
#150722 - 07/31/02 03:30 PM [6.3x] Smarter Looking Quotes and Codes [Finished]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25461
Loc: Texas
Name: Smarter Looking Quotes and Codes

Author: Maze , adapted for ubb.classic by me smile

Description: Hides hr's in quotes and encloses them in colored boxes smile

Requirements: Valid license, Works in any UBB, tested in 6.3.1

Code: Place this in your headerinsert:
Code:
<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.
_________________________
- Allen wavey
- What Drives You?

Top
#150723 - 07/31/02 04:04 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Greg Hard Offline
Member

Registered: 02/21/00
Posts: 5533
Loc: My Room
Really sweet! smile Nice work.

Top
#150724 - 07/31/02 04:25 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
eXtremeTim Offline
Member

Registered: 10/13/01
Posts: 544
Nice and Simple. smile
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=extremetim&s=1[/img]

Top
#150725 - 07/31/02 05:31 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Halobreak Offline
Member

Registered: 09/25/01
Posts: 69
Simple, but very good smile

Top
#150726 - 07/31/02 07:18 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Quote:
quote:
Originally posted by alone:
Simple, but very good smile
hmmm
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#150727 - 08/01/02 01:57 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Nice work AA.

Top
#150728 - 08/01/02 01:56 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Raichu Babai Offline
Member

Registered: 04/01/01
Posts: 206
Loc: Brooklyn NY
Nothing like a 2 sec Addon =) thanks AA, works GREAT!!
_________________________
My lame BUTT only have <img src="http://www.ubbdev.com/ud/?u=Raichu Babai&s=1" alt=" - " /> points,
because my POS computer ONLY grinded out <img src="http://www.ubbdev.com/ud/?s=2&u=Raichu Babai" alt=" - " /> results

Top
#150729 - 08/01/02 08:01 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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?

Top
#150730 - 08/02/02 11:27 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25461
Loc: Texas
Sure, you can experiment with it, it shouldn't harm anything smile
_________________________
- Allen wavey
- What Drives You?

Top
#150731 - 08/07/02 12:45 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Ron M Offline
Admin Emeritus
Developer

Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
for those using JCTemplates:

Remove the first and last line of the hack
Insert into CSS section of template
_________________________
http://thegeeksinc.com
[img]http://www.ubbdev.com/ud/?u=Sub_Zero&s=1[/img] points generated

Top
#150732 - 08/07/02 09:28 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Dome Offline
Junior Member

Registered: 04/22/01
Posts: 21
very cool, much better looking!

Did you use wordlets to change the background color of the small 'quote:'?

Thanks,
Adam

Top
#150733 - 08/08/02 01:21 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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

Code:
<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?

Top
#150734 - 08/08/02 01:31 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
In ubb_lib_posting.cgi and ubb_lib.cgi, before the part of "quote:" and "code:", add '<div id="small">', and afterwards, add '</div>'.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#150735 - 08/08/02 06:49 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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....

Top
#150736 - 08/08/02 06:54 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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???

Top
#150737 - 08/08/02 07:22 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Suggestions beyond going out and getting a brain, thank you. wink

Top
#150738 - 08/08/02 08:02 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
i tried this:

Code:
<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

Top
#150739 - 08/08/02 08:06 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
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 eek

i'm such an idiot

Top
#150740 - 08/09/02 02:48 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25461
Loc: Texas
heheh smile

What version ubb are you running? There's some slight differences between versions when we went xhtml-compliant smile
_________________________
- Allen wavey
- What Drives You?

Top
#150741 - 08/10/02 12:53 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
the latest!

v6.3.1

Top
Page 1 of 5 1 2 3 4 5 >


Who's Online
0 registered (), 34 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
ubb.social
by Placebo
Today at 04:25 AM
Displaying a gif for a paying member
by Iann128
01/06/09 07:04 AM
Restore The "New Topic Is Highlighted" Feature
by hikelite
01/02/09 07:41 PM
Web Hosting
by Pilgrim
01/02/09 04:13 PM
Finishing touches on a UBB migration
by AllenAyres
01/02/09 03:04 PM
Sidebar options?
by Pilgrim
12/26/08 03:40 PM
Legacy Style
by sirdude
12/24/08 07:18 PM
New Mods
Displaying a gif for a paying member
by Iann128
12/29/08 11:44 AM
Legacy Style
by Micky
12/21/08 01:36 PM
ubb.social
by
08/03/06 10:38 AM
Newest Members
bluedthunder, blaqskreen, RAICHU, sebak, BaronDriver
13371 Registered Users
Top Posters
AllenAyres 25461
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks