Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Deprecated on September 15, 2008, 08:05:20 PM

Title: Prettier Quotes
Post by: Deprecated on September 15, 2008, 08:05:20 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1394)

Obsolete
Title: Re: Prettier Quotes
Post by: Sabre™ on September 16, 2008, 04:43:46 AM
Nice mod mate :)
It's compatible to 1.1.6 aswell.

A question... How would you go about adding the closing quotation??
Would you be willing to add this also?

Thanks mate :)
Title: Re: Prettier Quotes
Post by: Deprecated on September 16, 2008, 07:32:35 AM
It had been my understanding (an incorrect one as it turns out) that the new quote style would be included in the Beta 4 release. Obviously that wasn't the case so I went ahead and released the mod.

I had been using this mod package on my Beta 3.1 sites so it was just a matter of slapping a screen shot on it and releasing the package, and no additional work necessary. A "free" mod so to speak.

So it works on 1.1.6? I haven't had any time available to test my mods on older SMF versions.
Title: Re: Prettier Quotes
Post by: Sabre™ on September 16, 2008, 07:35:57 AM
So thats a no? lol
Cheers
Title: Re: Prettier Quotes
Post by: Deprecated on September 16, 2008, 07:22:21 PM
No closing quote. You will have to satisfy your grammarian urges somewhere else other than my mod. :)
Title: Re: Prettier Quotes
Post by: Sabre™ on September 16, 2008, 08:01:33 PM
*rolls eyes
(http://briefcase.pathfinder.gr/download/540731/numberone.gif)
(http://img527.imageshack.us/img527/4656/54360285gk4.png)
Title: Re: Prettier Quotes
Post by: Asshandler on October 07, 2008, 05:57:07 PM
This
Quote from: Sabre™ on September 16, 2008, 04:43:46 AM
Nice mod mate :)
It's compatible to 1.1.6 aswell.

A question... How would you go about adding the closing quotation??
Would you be willing to add this also?

Thanks mate :)

Didn't work on 1.1.6 for me.  Well, the package installer didn't anyway, I'll poke around the manual method and see if it works.
Title: Re: Prettier Quotes
Post by: Asshandler on October 07, 2008, 06:05:31 PM
Works fine if you manually implement it.  :)
Title: Re: Prettier Quotes
Post by: Sabre™ on October 07, 2008, 06:16:11 PM
Yeah, the package is set to install only on smf2.x.x
So it would only install if you edit that to accept 1.x.x, or manually install it.
I forgot to mention that for others, as I usually manually install and well.....  just forgot lol ;)

P.S.
Had a good laugh at your handle
Title: Re: Prettier Quotes
Post by: Deprecated on October 07, 2008, 06:25:07 PM
I'm checking it out right now. It never occurred to me to see if it worked on 1.1.6. Unfortunately I've got a problem with my 1.1.6 test site and I'm in the middle of resetting the files.

Please! That's Equus asinus Handler. ;)
Title: Re: Prettier Quotes
Post by: Asshandler on October 07, 2008, 06:27:07 PM
The mod itself definitely works on 1.1.6, just the package installer needs to updated to let it know.
Title: Re: Prettier Quotes
Post by: Deprecated on October 10, 2008, 03:03:32 PM
Please be advised that I have added SMF 1.1.6 compatibility to this mod package.


As far as I know it should be compatible with all SMF versions.
Title: Re: Prettier Quotes
Post by: efil59 on October 18, 2008, 06:00:45 AM
Hi,
My site us hebrew. How can i change it to rtl, so the Quote will appear at the right position?

Title: Re: Prettier Quotes
Post by: Deprecated on October 18, 2008, 08:36:57 AM
Hi Efil!

My friend Sabre has already done that (both sides actually) and I've invited him to join us and tell you how to get it done. I'm pretty sure he'll be by later today because he too is a great SMF enthusiast. He is better able to help you since he's already done it where I would have to do some research and testing first.

Hey Sabre, you around? :)
Title: Re: Prettier Quotes
Post by: efil59 on October 18, 2008, 08:41:54 AM
Quote from: Deprecated on October 18, 2008, 08:36:57 AM
Hi Efil!

My friend Sabre has already done that (both sides actually) and I've invited him to join us and tell you how to get it done. I'm pretty sure he'll be by later today because he too is a great SMF enthusiast. He is better able to help you since he's already done it where I would have to do some research and testing first.

Hey Sabre, you around? :)

Thank you!
Title: Re: Prettier Quotes
Post by: Sabre™ on October 28, 2008, 03:35:02 PM
Hi Efil.

I'll get to you as soon as I can mate.
Im trying to recover my site from a corrupt backup.
Note to self: keep more than one >:(

Thanks
Title: Re: Prettier Quotes
Post by: efil59 on October 29, 2008, 12:35:47 AM
Quote from: Sabre™ on October 28, 2008, 03:35:02 PM
Hi Efil.

I'll get to you as soon as I can mate.
Im trying to recover my site from a corrupt backup.
Note to self: keep more than one >:(

Thanks

OK
Title: Re: Prettier Quotes
Post by: FragaCampos on November 05, 2008, 10:38:54 AM
I installed it manually in my 1.1.6 forum and it works. But i only made the change that comes in the modification1.xml file, since i was unable to find "blockquote" on my theme's style.css. Is this ok?

Also:

QuoteThis modification reduces the SMF footer to minimal size by removing the MySQL, PHP & W3C images. Only the copyright notice remains. This is often done when advanced themes are applied. This modification does the same for the SMF default theme. The "Display time taken to create every page" display is not affected.
is this the right description of this mod? :P
Title: Re: Prettier Quotes
Post by: Deprecated on November 07, 2008, 04:15:09 PM
I was obviously working on multiple projects at the same time. :) (I've fixed the typos.)

As long as it works it's okay. It's probably that your theme just added a CSS rather than replacing the default CSS. It is okay for pages to have multiple CSS files, that's how CSS works.
Title: Re: Prettier Quotes
Post by: kanza on November 16, 2008, 03:11:18 AM
Hi,

My custom theme can't works well with this mod, so i install it manually

after replacing the code


.quote
{
   font-weight: normal;
   font-size: 1em;
   line-height: 1.4em;
   font-family: "Lucida Grande", "Trebuchet MS", Helvetica, Arial, sans-serif;
   background-color: #F2F2F2;
   color: #000000;
}


with


.quote
{
background: url(images/quote_bg.png) 5px 5px no-repeat #F0F3FC;
border: 1px solid #AAA;
margin: 1px;
padding: 5px 5px 5px 28px;
font-size: x-small;
line-height: 1.4em;
}


what should i deal with the ".quoteheader"
.quoteheader
{
   margin: 10px 5px 0 5px;
   padding: 4px;
   border-width: 1px 1px 1px 1px;
   border-style: solid;
   border-color: #3C71A3;
   border-bottom: 8px solid #c2c2c2;
   color: #c2c2c2;
   background: transparent;
   font-size: 0.85em;
   font-weight: bold;
}

I just deleted it away, but still can't get what exactly i want
(http://img204.imageshack.us/img204/3240/19006134jg2.png)

what should i do to let it become just like yours?
p/s: for manual installation, do i still need to upload the package and execute it in my admin panel?

thanks :D
Title: Re: Prettier Quotes
Post by: Father Luke on December 09, 2008, 04:13:14 PM
Quote from: efil59 on October 18, 2008, 08:41:54 AM
Quote from: Deprecated on October 18, 2008, 08:36:57 AM
Hi Efil!

My friend Sabre has already done that (both sides actually) and I've invited him to join us and tell you how to get it done. I'm pretty sure he'll be by later today because he too is a great SMF enthusiast. He is better able to help you since he's already done it where I would have to do some research and testing first.

Hey Sabre, you around? :)

Thank you!


Bump?

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: Sabre™ on December 09, 2008, 11:08:31 PM
PM returned Luke :)




@ kanza

I'd "guess" you'd leave the .quoteheader code, as it is for the header of the quote.
Your quote image looks exactly how it should be.
What do you mean to make it look like Deprecateds?  It does.

You will not need to install the mod package if youve manually installed it, unless you change the package so it installs into your custom theme, which will make uninstalling it a faster process if needed.
Title: Re: Prettier Quotes
Post by: Father Luke on December 09, 2008, 11:20:02 PM
Quote from: Sabre™ on December 09, 2008, 11:08:31 PM
PM returned Father Luke :)



Thanks, Sabre™.

I've made a poast in the coding section as you requested,
asking if anyone can figure out how to close the quotes.

Sorry to hear about your troubles. And I won't ask about
back-ups and the like. I always hated losing things, and then
having good  people asking me if I had a back-up.

Fare thee well, mate.

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: M-DVD on December 13, 2008, 09:36:46 PM
Hi, i can?  :-\

1.- In Subs.php

Search:
         array(
            'tag' => 'quote',
...
            'before' => ....... '</div><blockquote>',
            'after' => '</blockquote>',
            'block_level' => true,
         ),

Replace:
         array(
            'tag' => 'quote',
...
            'before' => ....... '</div><blockquote><div class="blockquote2">',
            'after' => '</div></blockquote>',
            'block_level' => true,
         ),

2.- CSS:

.blockquote2
{
background: url('images/quote_bg2.png') bottom right no-repeat;
// + other styles, if you like
}

:)
Title: Re: Prettier Quotes
Post by: Father Luke on December 14, 2008, 06:29:30 PM
Quote from: M-DVD on December 13, 2008, 09:36:46 PM
Hi, i can?  :-\

1.- In Subs.php

Search:
         array(
            'tag' => 'quote',
...
            'before' => ....... '</div><blockquote>',
            'after' => '</blockquote>',
            'block_level' => true,
         ),


While I am very grateful that you took the time to work on this,
I didn't find it?

I'm working with SMF 1.1.7, and I'm looking at Sources/Subs.php

I do find:

         array(
            'tag' => 'quote',
            'before' => '<div class="quoteheader">' . $txt['smf240'] . '</div><div class="quote">',
            'after' => '</div><br />',
            'block_level' => true,
         ),
         array(
            'tag' => 'quote',
            'parameters' => array(
               'author' => array('match' => '(.{1,192}?)', 'quoted' => true, 'validate' => 'parse_bbc'),
            ),
            'before' => '<div class="quoteheader">' . $txt['smf239'] . ': {author}</div><div class="quote">',
            'after' => '</div><br />',
            'block_level' => true,
         ),
         array(
            'tag' => 'quote',
            'type' => 'parsed_equals',
            'before' => '<div class="quoteheader">' . $txt['smf239'] . ': $1</div><div class="quote">',
            'after' => '</div><br />',
            'quoted' => 'optional',
            'block_level' => true,
         ),
         array(
            'tag' => 'quote',
            'parameters' => array(
               'author' => array('match' => '([^<>]{1,192}?)'),
               'link' => array('match' => '(?:board=\d+;)?((?:topic|threadid)=[\dmsg#\./]{1,40}(?:;start=[\dmsg#\./]{1,40})?|action=profile;u=\d+)'),
               'date' => array('match' => '(\d+)', 'validate' => 'timeformat'),
            ),
            'before' => '<div class="quoteheader"><a href="' . $scripturl . '?{link}">' . $txt['smf239'] . ': {author} ' . $txt[176] . ' {date}</a></div><div class="quote">',
            'after' => '</div><br />',
            'block_level' => true,
         ),
         array(
            'tag' => 'quote',
            'parameters' => array(
               'author' => array('match' => '(.{1,192}?)', 'validate' => 'parse_bbc'),
            ),
            'before' => '<div class="quoteheader">' . $txt['smf239'] . ': {author}</div><div class="quote">',
            'after' => '</div><br />',
            'block_level' => true,
         ),


but nothing with blockquote.

Ideas?


Again, thank you for your response.

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: M-DVD on December 14, 2008, 07:32:40 PM
Ok, for SMF 1.1.X not <blockquote>, seek <div class="quote">

Search:
         array(
            'tag' => 'quote',
...
            'before' => ....... '</div><div class="quote">',
            'after' => '</div><br />',
            'block_level' => true,
         ),

Replace:
         array(
            'tag' => 'quote',
...
            'before' => ....... '</div><div class="quote"><div class="blockquote2">',
            'after' => '</div></div><br />',
            'block_level' => true,
         ),
Title: Re: Prettier Quotes
Post by: Father Luke on December 14, 2008, 08:05:58 PM
Quote from: M-DVD on December 14, 2008, 07:32:40 PM
Ok, for SMF 1.1.X not <blockquote>, seek <div class="quote">(. . . )

Worked.


Very nice work.
Thank you much.

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: FragaCampos on December 15, 2008, 05:49:10 PM
It didn't work with me...
I have SMF 1.1.7 and added "<div class="blockquote2"> and </div> and the result is the same...
Title: Re: Prettier Quotes
Post by: Father Luke on December 15, 2008, 09:01:00 PM
Well, the usual questions:


Do you have a custom theme installed?
Did you replace each instance (yes there are more than one) ?

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: FragaCampos on December 16, 2008, 11:00:48 AM
I did replace each instance (four, i think) but I just saw the css file modification :P
But i don't have blockquote in my style.css... instead, i have this:

.quote
{
background: url(images/quote_bg.png) 5px 5px no-repeat #F0F3FC;
border: 1px solid #AAA;
margin: 1px;
padding: 5px 5px 5px 28px;
font-size: x-small;
line-height: 1.4em;


What should i do?
Title: Re: Prettier Quotes
Post by: Father Luke on December 16, 2008, 12:21:23 PM
Quote from: FragaCampos on December 16, 2008, 11:00:48 AM
I did replace each instance (four, i think) but I just saw the css file modification :P
But i don't have blockquote in my style.css... instead, i have this:

.quote
{
background: url(images/quote_bg.png) 5px 5px no-repeat #F0F3FC;
border: 1px solid #AAA;
margin: 1px;
padding: 5px 5px 5px 28px;
font-size: x-small;
line-height: 1.4em;


What should i do?

I believe it would work best to follow directions and add to your .css file.

Once you have followed directions, do please come
back and tell us if it hasn't worked for you.

--
Okay,
Father Luke
Title: Re: Prettier Quotes
Post by: FragaCampos on December 16, 2008, 02:14:39 PM
Ok, thank you for your help.
It already shows the second image, but it's not quite right. I think there's a LINE break missing somewhere...
You can see here (http://www.docspt.com/index.php/topic,5920.0.html).
I would like to have the text below the first image and above the second.  O:)
Title: Re: Prettier Quotes
Post by: Sabre™ on December 19, 2008, 07:57:03 PM
wOOt!!   Thanks M-DVD 8)

I've attached the package I updated for my own sites, for those uneasy about manual edits.
I have no smf2 board running, so haven't tested the edits for that. But it looks ok to me lol

As always, I will remove it upon request :)
Title: Re: Prettier Quotes
Post by: FragaCampos on December 20, 2008, 02:27:44 PM
Quote from: Sabre™ on December 19, 2008, 07:57:03 PM
wOOt!!   Thanks M-DVD 8)

I've attached the package I updated for my own sites, for those uneasy about manual edits.
I have no smf2 board running, so haven't tested the edits for that. But it looks ok to me lol

As always, I will remove it upon request :)

Hi, Sabre. Do you managed to correct this?
QuoteI would like to have the text below the first image and above the second.  O:) 
Title: Re: Prettier Quotes
Post by: Sabre™ on December 20, 2008, 04:10:55 PM
Hi mate,
A little play in your css file should do the trick.
Add
padding: 10px 0px 10px 0px;
beneath  "blockquote2"
So it now looks like this
.blockquote2
{
background: url('images/quote_bg2.png') bottom right no-repeat;
padding: 10px 0px 10px 0px;
}


The first 10px should adjust the top quote image, and the second 10px should adjust the closing quote.
Adjust the values until you have it displayed how you like.

Good luck :)
Title: Re: Prettier Quotes
Post by: FragaCampos on December 21, 2008, 05:05:08 PM
Thank you very, very much Sabre (once again ;))
It works beautifully!

Cheers.
Title: Re: Prettier Quotes
Post by: Sabre™ on December 21, 2008, 06:29:19 PM
hahaa
always my pleasure mate :)

Enjoy
Title: Re: Prettier Quotes
Post by: ddarrell on December 26, 2008, 07:21:26 PM
Hi, nice mod. 
It installed without error on ver 1.1.7.

Something odd, though:

On Firefox Browser, you cannot see the initial " graphic.
But you see it just fine on IE7 Browser.

Otherwise it's just fine.  --still looks better than the original quote box colors.


Sorry My mistake.  It was just a Browser cache issue (on my machine), immediately after I installed the Mod on the forum.  Afterward, when cache refreshed, Firefox displayed the Mod exactly the same as IE7.

Title: Re: Prettier Quotes
Post by: Chandy on February 16, 2009, 10:11:25 PM
Any chance for add background image like:

(http://hosting03.imagecross.com/image-hosting-th-06/8417quote.gif) (http://www.imagecross.com/03/image-hosting-view-06.php?id=8417quote.gif)

Thx in advanced :) !
Title: Re: Prettier Quotes
Post by: PhiLiz on February 27, 2009, 11:33:02 AM
I've tried to install this mod for a long time in my forum but I just can't. I even managed to install it properly in a test forum similar to the other one (same language, same theme - SMF default with colour variation in Black -  and of course, same version, 1.1.8 ) but nothing seems to work on the main one.

First, I've tried to install it automatically but it gave me two errors while executing subs.php and style.css. Last time I've uninstalled and then installed again it gave me no errors, but also didn't work. I've tried to do the process manually, but it's still the same thing. I've tried to modify the subs.php and the style.css files according to the modifications in 1.1.3 (the version I'm using... but I've also tried and 1.1.2 and didn't work) and even according to the working files in my test forum. Both failed to do the trick.

Can somebody help me? I'll send you all the files you need to identify the problem, just ask. Thank you very much.
Title: Re: Prettier Quotes
Post by: Neverhurry on March 30, 2009, 03:24:58 PM
Hello Deprecated,

I love this mod a lot, and installed it at the beginning of my first smf forum. it worked for a month without problem, but yesterday i found out that it didn't work any more. When I wanted to uninstall it, i got this:

"
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "Prettier_Quotes":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/style.css    Test failed
2.    Delete File    ./Themes/default/images/quote_bg.png"

now what can i do to make it work again? Thank you very very much.
Title: Re: Prettier Quotes
Post by: Sabre™ on April 17, 2009, 02:06:17 AM
@ PhiLiz and neverhurry

Do you still require assistance with this?
Title: Re: Prettier Quotes
Post by: divecall on June 06, 2009, 06:05:04 PM
Anyone was trying this mod with DilberMC ?

I think, this is not so easy.... :-X
Title: Re: Prettier Quotes
Post by: Sabre™ on June 07, 2009, 07:00:33 AM
It will work with the dilber mc theme.
You just need to add the CSS code to the style.css file and it will work on all of the themes colours.
But the background of the quote image will be the same for each theme, as the attached image below will show you.

You could add the CSS code to All of the colours css files eg. style_lightblue.css, style_lightbrown.css, and add a new quote_bg image in your images folder, for each of the themes colours.
You would have to make slight changes to the quote_bg name for each colour of course ;)
eg. quote_bg1, quote_bg2, quote_bg3 and so on n so forth.

I hope that helps a little.
Good luck :)
Title: Re: Prettier Quotes
Post by: TheListener on July 18, 2009, 09:45:10 AM
Managed to install manually onto a blackrain v2 theme (2.0 rc1-1) yet there are no quote images.

Am I missing something? If so what?
Title: Re: Prettier Quotes
Post by: TheListener on July 18, 2009, 08:16:39 PM
The mod is working properly now.

BUT

Due to the forums theme being black and members using white text is there a way of making the background a different colour?
Title: Re: Prettier Quotes
Post by: Neo_TE on August 08, 2009, 05:05:41 PM
Works FINE in DILBERMC THEME after editing the CSS FILES.

Cheers.
:D
Title: Re: Prettier Quotes
Post by: Costa on August 08, 2009, 05:12:11 PM
Quote from: TheListener on July 18, 2009, 08:16:39 PM
Due to the forums theme being black and members using white text is there a way of making the background a different colour?

background: url(images/quote_bg.png) 5px 5px no-repeat #F0F3FC;

replace the red part for another hexadecimal color
http://www.december.com/html/spec/color.html
Title: Re: Prettier Quotes
Post by: Sabre™ on August 10, 2009, 12:11:35 AM
Ahh yes of course!
Thanks Costa  8)
Title: Re: Prettier Quotes
Post by: ArkServer on September 27, 2009, 08:41:30 AM
canbe it updated to support the latest 2.0 rc  version?
Title: Re: Prettier Quotes
Post by: Costa on September 27, 2009, 09:02:52 AM
do the edits mannually, this trick works in rc1.2 without any problem
Title: Re: Prettier Quotes
Post by: futeball on February 24, 2010, 11:02:55 PM
This mod works on ver 1.1.11 on any theme. Just edit the style.css manually & put the image on theme/images.
Title: Re: Prettier Quotes
Post by: ChasX on April 17, 2010, 10:41:18 PM
(http://img143.imageshack.us/img143/2161/quoteur.jpg)


How come my quote symbol is backwards?