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: 25366
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: 25366
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: 25366
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
#150742 - 08/10/02 06:38 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
letimeric Offline
Junior Member

Registered: 05/02/02
Posts: 10
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

Top
#150743 - 08/10/02 12:33 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
before I edit your post wink , 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 smile

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 smile
_________________________
- Allen wavey
- What Drives You?

Top
#150744 - 08/10/02 09:22 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

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

Top
#150745 - 08/10/02 09:34 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
oh and here is a page to see it

http://iambornagainru.org/bab/ultimatebb.php?ubb=get_topic;f=12;t=000071

Top
#150746 - 08/11/02 09:06 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
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:

Quote:
code:</font><hr />
Code:
<blockquote><font class="small">code:</font>
<hr /></blockquote>but on mine (again no mods) it is:

<blockquote><font class="small">code:
[qb]
Code:
<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
#150747 - 08/14/02 08:24 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Does no one know why I using the latest version of UBB has different code than you guys do here?

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

Registered: 03/24/01
Posts: 7396
ubb_lib.cgi and ubb_lib_posting.cgi, where you see the code/quote things, you can just put class="small" after <font size="1" face="$vars_style{FontFace}" and before >.
_________________________

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

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

Registered: 03/10/00
Posts: 25366
Loc: Texas
Quote:
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?
smile We have completely different templates based on our css work we did a few months back, so yeah, they're different. wink

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.
_________________________
- Allen wavey
- What Drives You?

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

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

Top
#150751 - 08/17/02 01:09 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Chris Staber Offline
Junior Member

Registered: 08/17/02
Posts: 3
Quote:
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 =)

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

Registered: 03/10/00
Posts: 25366
Loc: Texas
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.
_________________________
- Allen wavey
- What Drives You?

Top
#150753 - 08/18/02 09:36 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Chrimera Offline
Member

Registered: 08/01/02
Posts: 93
Loc: Michigan
Worked great for me thanks smile
_________________________
New to this whole UBB thing
I have <img src="http://www.ubbdev.com/ud/?u=[IGRAINE] Chrimera&s=1" alt=" - " /> points, <img src="http://www.ubbdev.com/ud/?s=2&u=[IGRAINE] Chrimera" alt=" - " /> results and <img src="http://www.ubbdev.com/ud/?u=Chrimera, [IGRAINE] gitp4, [IGRAINE] Erondel &s=1" alt=" - " /> sub-team points.

Top
#150754 - 08/18/02 09:59 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
ericruhl Offline
Member

Registered: 02/16/01
Posts: 57
Quote:
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"?? confused
UBB 6.3.1

Top
#150755 - 08/18/02 10:34 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
that's in your style templates, under the header and footer boxes. smile
_________________________
- Allen wavey
- What Drives You?

Top
#150756 - 10/04/02 04:15 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
bobbel Offline
Junior Member

Registered: 09/04/02
Posts: 16
I like it... smile
Thanks a lot for this nice hack

bobbel

Top
#150757 - 10/05/02 06:53 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Dino Offline
Member

Registered: 03/23/01
Posts: 53
Loc: Troy, MI
It adds a nice box around the quote and code, but the .small reference is useless.
_________________________
Dino Filias
http://dinofilias.com

Top
#150758 - 10/06/02 08:29 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Rutto Offline
Member

Registered: 02/10/01
Posts: 182
Things so simpe are also so sweeeeet !
Thank you, works perfectly !

Top
#150759 - 10/28/02 04:25 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Not Great at this stuff Offline
Junior Member

Registered: 05/11/02
Posts: 27
Loc: London
Nice and easy, even I done that one wink

Top
#150760 - 10/29/02 10:21 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
anybody explain please where this header insert is?
is there a instruction for dummies? confused

Top
#150761 - 10/29/02 10:23 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
CaCoffin Offline
Member

Registered: 12/02/00
Posts: 152
Loc: Las Vegas, NV
Quote:
quote:
Originally posted by AllenAyres:
that's in your style templates, under the header and footer boxes. smile
Answered before you asked!

Top
#150762 - 11/03/02 10:20 PM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Felix 10 Offline
Enthusiast

Registered: 10/10/02
Posts: 391
Loc: Toronto
Thank you

Top
#150763 - 11/07/02 11:41 AM Re: [6.3x] Smarter Looking Quotes and Codes [Finished]
Tama-chan Offline
Junior Member

Registered: 01/09/02
Posts: 5
Easiest mod I've ever installed. laugh

Would there be a way to