vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Png Rounded Quotes (PRQ) v.3.10 - Valid XHTML 1.0 (https://vborg.vbsupport.ru/showthread.php?t=94430)

cclaerhout 08-15-2005 10:00 PM

Png Rounded Quotes (PRQ) v.3.10 - Valid XHTML 1.0
 
Png Rounded Quotes (PRQ) version 3.10 - Valid XHTML 1.0

Author: C?dric Claerhout

Thanks to : Elmer, Natch and d00d

Hack description: This hack, based on Elmer?s one, turns the traditional quotes into round quotes with PNG images as border. You can use it with light and dark backgrounds without any graphical problems. For Gif supporters, just use the adobe psd file include to create pictures yourself. Should take 5 minutes, time to open Photoshop and change .png to gif extension in the code.

Zip description : Code, PSD, Pictures ready to use, and useful information.

Time to install: 10 min

Compatible browsers : IE 6 (with png transparency patch), Firefox 1.x, Firefox 1.5x, Safari.

What's new:

20 february 2006 : version 3.10
-quotes are now included in just one table (instead of two)
-width bug for optional bbcodes in IE corrected
-works now with Safari

14 february 2006 : version 3.00
-code complitely rewritten for quotes AND bbcodes ; it shoud fix some display bugs with IE
-code patched to work with Firefox 1.5
-new option for quotes : one or two bubbles (thanks majorxp). See joined pictures to understand : citationmonobulle.jpg and citationdoublebulle.jpg

22 august 2005 : version 2.2
-code rewritten
-option bbcodes interface integrated in the zip files

17 august 2005 : version 2.1
-option : php and code tags template
-update .psd file in in quotesPNG_v2.1.zip
-put a missing png picture in quotesPNG_v2.1.zip
-Bug corrected in code template

16 august 2005 :
-Valid XHTML 1.0
-I had forgotten to join the transparency background version (70%).




Instructions:


First of all, you HAVE to install that hack.
Link : https://vborg.vbsupport.ru/showthread.php?t=93415 (need vB 3.5 RC)

It will allow png picture transparency work with Internet Explorer.


Then download the zip file and follow the instructions:

1. Login to your Admin Control Panel
2. In the Styles & Templates category, click on Style Manager and expand the group of templates in your prefered style, by clicking on the [<<>>] button.
3. Select the group of templates BB Code Layout. Click the 'Expand/Collapse' button, or double-click the group name to expand or collapse the BB Code Layout ? group of templates.
3. Now select the template bbcode_quote. Double-click the template name or click the 'Customize' button to edit this template.
4. Replace all the content in the template field withd the code provided in the txt file in the zip below.
5. Upload the folder "quotes" (or quotestr) containing all the images to your misc images directory of your style :
Code:

[style]/images/misc


Notes:

>You have to increase the amount of images to use in a post through your admin cp, because this mod use images and it counts as post images.
>If new png quotes pictures don?t appear immediately in your old messages, don?t panic and just wait. If you're hurry, just write a new message and it will work.
>I give you the PDF file so that you can modify if you want the quotes. Now it?s easy to do. I give you also a picture that helps you to localise where each segment of the PSD goes.
>Of course i?ve tested this hack, both in IE and Mozilla, and it works great.



Bonus
Once installed, you can make your code, html and php tags the same look if you want. Just go into the option directory included in the zip file, and replace the templates of each of this tags by the content of the text files.
N.B : For those three bbcode, the width depends on the value indicated in "All Style option" under "Code Block Width (pixels)".

Floris 08-16-2005 05:31 PM

Great job, thank you for sharing. Always nice to see png work at its best, and xhtml valid! :) Karma++ for you.

Oblivion Knight 08-16-2005 05:35 PM

Quote:

Originally Posted by floris
Karma++ for you.

You're not at vbulletin.nl now you know.. :laugh:

Boofo 08-17-2005 09:00 AM

This doesn't stretch the quote box in the post. It is fixed and in the middle.

cclaerhout 08-17-2005 09:40 AM

Quote:

Originally Posted by Boofo
This doesn't stretch the quote box in the post. It is fixed and in the middle.

Yes the quote box is in the middle, but it streches. There's just a minimum size (see the example)which can change according to the name of the personn who is quoted.

I'm going to look if i can make it align on left if you prefer.

Boofo 08-17-2005 10:20 AM

Is there a way to make it stretch like the current quote box does?

cclaerhout 08-17-2005 10:42 AM

Thanks to you, i've seen a mistake in my code :D I'm going to update zip archives.

And here's to you the code (tested on Firefox and Internet Explorer ; Valid XHTML 1.0 according to W3C) to align left and strecht the quote box :

Code:

<table border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top:5px; margin-bottom:5px;"
width="100%">
<tr>
<td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
        <td width="75" valign="bottom">
                <table border="0" cellpadding="0" cellspacing="0" width="50">
                <tr>
                <td width="37" height="24" valign="top">
                <img src="$stylevar[imgdir_misc]/quotes/06.png" alt="" width="37" height="24"/></td>
                <td width="100%" style="background-image: url('$stylevar[imgdir_misc]/quotes/07.png');width:1px;height:24px; background-position: center;" valign="middle">
                <span class="smallfont">$vbphrase[quote]:</span></td>
                <td valign="top">
                <img src="$stylevar[imgdir_misc]/quotes/08a.png" alt="" width="16" height="24"/></td>
                </tr>
                </table>
        </td>
        <td align="left" valign="bottom">
        </td>
        <if condition="$show['username']">
        <td width="0" align="left" valign="bottom">
                <table border="0" cellpadding="0" cellspacing="0" width="200">
                <tr>
                <td valign="top">
                <img src="$stylevar[imgdir_misc]/quotes/08b.png" alt="" width="17" height="24"/></td>
                <td width="100%" style="background-image: url('$stylevar[imgdir_misc]/quotes/09.png'); width:100%; height:24px" align="left" valign="middle" nowrap="nowrap">
                <span class="smallfont">
                <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></span></td>
                <td valign="top">
                <img src="$stylevar[imgdir_misc]/quotes/10.png" alt="" width="18" height="24"/></td>
                </tr>
                </table>
        </td>
        <else /></if>
        <td width="100%" align="right" valign="bottom">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                <td width="100%">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                        <td style="background-image: url('$stylevar[imgdir_misc]/quotes/11.png');width:100%;height:24px" width="100%" valign="middle">
                        </td>
                        <td align="left" valign="top">
                        <img src="$stylevar[imgdir_misc]/quotes/12.png" alt="" width="18" height="24"/></td>
                        </tr>
                        </table>
                </td>
                </tr>
                </table>
        </td>
        </tr>
        </table>
</td>
</tr>
<tr>
<td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
        <td width="37" style="background-image: url('$stylevar[imgdir_misc]/quotes/04.png');width:37px;height:1px">
        </td>
        <td width="100%" style="background-image: url('$stylevar[imgdir_misc]/quotes/00.png'); width:100%; height:1px" valign="top"></td>
        <td width="18" style="background-image: url('$stylevar[imgdir_misc]/quotes/05.png'); width:18px; height:1px">
        </td>
        </tr>
        <tr>
        <td width="37" style="background-image: url('$stylevar[imgdir_misc]/quotes/04.png'); width:37px;height:1px">
        </td>
        <td width="100%" style="background-image: url('$stylevar[imgdir_misc]/quotes/00.png');width:100%;height:1px" valign="top" class="smallfont">
        <if condition="$show['username']"><i>$message</i>
        <else />$message</if></td>
        <td width="18" style="background-image: url('$stylevar[imgdir_misc]/quotes/05.png'); width:18px; height:1px">
        </td>
        </tr>
        <tr>
        <td width="37" valign="bottom">
        <img src="$stylevar[imgdir_misc]/quotes/01.png" alt="" width="37" height="14"/></td>
        <td width="100%" style="background-image: url('$stylevar[imgdir_misc]/quotes/02.png');width:100%;height:14px">
        </td>
        <td width="18" valign="bottom">
        <img src="$stylevar[imgdir_misc]/quotes/03.png" alt="" width="18" height="14"/></td>
        </tr>
        </table>
</td>
</tr>
</table>


P.S : if it doesn't update immediatly after you change the template, that's normal. Just make a new quote and you will see that it works.

Boofo 08-17-2005 10:50 AM

Thank you, sir. ;)

Just curious, what was the mistake in the code?

Boofo 08-17-2005 10:59 AM

I don't know what happened but that code you gave me really screwed up the posts. I took it out until I can figure out why it did that. ;)

cclaerhout 08-17-2005 11:01 AM

That code was missing between the two subtables :
Code:

</td>
</tr>
<tr>
<td>

Quite strange, because XHTML validator didn't notice it...


----
Zip archives updated.

Boofo 08-17-2005 11:22 AM

Ok, that's better. We almost have it. The center is off color for some reason still.

cclaerhout 08-17-2005 11:43 AM

Quote:

Originally Posted by Boofo
Ok, that's better. We almost have it. The center is off color for some reason still.

Have you cheked if the png picture was missing ?
Try with mozilla to open the background picture, refresh it and see the result.

But there is a strange thing on the picture you've joined : on the top right, it seems to have a grey color. It shouldn't do that.


P.S : that's not better, but different :D

Boofo 08-17-2005 11:45 AM

The top is fixed now. I didn't have the transparent png mod installed yet. It still has the message background a different color. Any way to make that white?

EDIT: I don't have a 00.png image in the quotes directory and that looks like what it is looking for.

cclaerhout 08-17-2005 11:52 AM

Quote:

Originally Posted by Boofo
The top is fixed now. I didn't have the transparent png mod installed yet. It still has the message background a different color. Any way to make that white?

EDIT: I don't have a 00.png image in the quotes directory and that looks like what it is looking for.

Sure there's a way. Just have to find the error ;-)
What version are you using ? The white background or transparency (70%) one ?


Edit : do i forget to put it ???

Edit bis : Oupss, yes i dit it :D

Boofo 08-17-2005 11:59 AM

Which one should I use? I was using the white background one.

cclaerhout 08-17-2005 12:07 PM

Tell me if it's working with this, then i will update archive.

https://vborg.vbsupport.ru/attachmen...id=33531&stc=1

Boofo 08-17-2005 12:16 PM

Bingo! That did the trick. ;)

Thank you, sir. ;)

Just curious, why didn't you go with GIFS withg transparent background instead of png?

And any way to make this work with PHP, CODE and HTML tags, too? ;)

cclaerhout 08-17-2005 12:17 PM

Quote:

Originally Posted by Boofo
Which one should I use? I was using the white background one.

That was the one where the 00.png picture was missing ;-) I've updated the archive. Can you confirm that it works now ?

Boofo 08-17-2005 12:23 PM

It works! ;)

cclaerhout 08-17-2005 12:25 PM

Quote:

Originally Posted by Boofo
Bingo! That did the trick. ;)

Thank you, sir. ;)

Just curious, why didn't you go with GIFS withg transparent background instead of png?

And any way to make this work with PHP, CODE and HTML tags, too? ;)

Because of that :
https://vborg.vbsupport.ru/attachmen...chmentid=33491

Gif doesn't use the alpha transparency, so with dark backgrounds it's ugly.
The only problem with png is Internet Explorer. (well, it's second problem is that it cannot be animated. May be one day...).

This work cannot work with html tags, because with Internet Explorer (and with the transparency hack) the png background will come over the text and all links won't work.

I think it can work with php and code tags, but i'm not sure.

Boofo 08-17-2005 12:47 PM

Quote:

Originally Posted by cclaerhout
Because of that :
https://vborg.vbsupport.ru/attachmen...chmentid=33491

Gif doesn't use the alpha transparency, so with dark backgrounds it's ugly.
The only problem with png is Internet Explorer. (well, it's second problem is that it cannot be animated. May be one day...).

This work cannot work with html tags, because with Internet Explorer the png background will come over the text and all links won't work.

I think it can work with php and code tags, but i'm not sure.

Ahhh, ok. I didn't know that. ;)

I thought the qoutes hack released opn vbulltintemplates.com was with gifs, though. Maybe I'm remembering it wrong. ;)

I'm using IE 6 and it shows up great for me now. ;)

cclaerhout 08-17-2005 12:54 PM

Quote:

Originally Posted by Boofo

I thought the qoutes hack released opn vbulltintemplates.com was with gifs, though. Maybe I'm remembering it wrong. ;)

Correct, they were in gif and i made them in png rewriting the code.


I manage to make the php and code tags. Try them if you want. It's just a beginning. I think it can be improved. But i must find time to update my forum for vB 3.5 :)

Boofo 08-17-2005 01:05 PM

Thank you, sir. ;)

Elmer 08-17-2005 01:13 PM

Quote:

Originally Posted by cclaerhout
Correct, they were in gif and i made them in png rewriting the code.


I manage to make the php and code tags. Try them if you want. It's just a beginning. I think it can be improved. But i must find time to update my forum for vB 3.5 :)

Installed!
cclaerhout thanks for your mod, you did a great work.

Could you change the 'thanks to Dexter' to Elmer, I was the author in vbtemplates.com I had Dexter as my username there but changed with my username here when they combined the forums...

anyways, thanks for your mod.

Boofo 08-17-2005 01:15 PM

Ok, I tried the php and code ones you wanted me to try. The code one works but it is centered and needs to be lined up on the left. The php one is also centered but it is too wide and needs to be lined on the left also. Other than that, they work good. ;)

cclaerhout 08-17-2005 01:35 PM

Quote:

Originally Posted by Elmer
Installed!
cclaerhout thanks for your mod, you did a great work.

Could you change the 'thanks to Dexter' to Elmer, I was the author in vbtemplates.com I had Dexter as my username there but changed with my username here when they combined the forums...

anyways, thanks for your mod.

Done :-)

cclaerhout 08-17-2005 01:39 PM

Quote:

Originally Posted by Boofo
Ok, I tried the php and code ones you wanted me to try. The code one works but it is centered and needs to be lined up on the left. The php one is also centered but it is too wide and needs to be lined on the left also. Other than that, they work good. ;)

Check in your Style Manager the "Code Block Width (pixels)", otherwise change in the optional templates (for php and code tags) this :
Code:

width="$stylevar[codeblockwidth]"
to
Code:

width="100%"

Boofo 08-17-2005 01:48 PM

That only made it worse. :(

The coede one is the right width but need to be left aligned. The php one is the one that is stretched.

cclaerhout 08-17-2005 01:54 PM

Can you send a picture of the problem ?
Try theses files (i will delete them if they don't work).

Edit :
zip Delete

cclaerhout 08-22-2005 06:05 PM

Quote:

Originally Posted by cclaerhout
Can you send a picture of the problem ?
Try theses files (i will delete them if they don't work).

Edit :
zip Delete

Update 2.2 is out. Other bbcodes can look similar. Tested on IE and Firefox.

Mr Chad 08-26-2005 06:13 PM

when i use it i just get clear everything it looks like all the images are replaced by the spacers.

cclaerhout 08-26-2005 08:03 PM

Quote:

Originally Posted by chatbum
when i use it i just get clear everything it looks like all the images are replaced by the spacers.

Check if you put pictures directory (quotes or quotestr) in your style misc directory. It should work. Be more precise, i will help you.

Mr Chad 08-27-2005 02:40 AM

Quote:

Originally Posted by cclaerhout
Check if you put pictures directory (quotes or quotestr) in your style misc directory. It should work. Be more precise, i will help you.

wait they are spose to be in images/misc/ ?

cclaerhout 08-27-2005 11:36 AM

Quote:

Originally Posted by chatbum
wait they are spose to be in images/misc/ ?

So so sorry, i've made a mistake in the instructions :

you do have to put quotes or quotestr (transparent version) directory in :
[style]/images/misc

It should work now.

KuRi 08-27-2005 12:20 PM

how can i make all the text black??

Quote: Originally posted by and message??

cus my forums theme uses a light font color it hardly shows in this

cclaerhout 08-27-2005 02:12 PM

Quote:

Originally Posted by KuRi
how can i make all the text black??

Quote: Originally posted by and message??

cus my forums theme uses a light font color it hardly shows in this


Use this :
HTML Code:

<font color="#000000"> </font>
Step 1
You want to change text color of "Quote : (...)" into black ?
Do this in the code

Find
Code:

$vbphrase[quote]:
and change it to
Code:

<font color="#000000">$vbphrase[quote]:</font>
Step 2
Use the same technic for
Code:

$vbphrase[originally_posted_by_x]
->
Code:

<font color="#000000">$vbphrase[originally_posted_by_x]</font>
Step 3
And last for the text :
Code:

$message
->
Code:

<font color="#000000">$message</font>
P.S : $message variable appears two times in the code.

KuRi 08-28-2005 12:35 AM

Thats what i thaught but it had no effect???

cclaerhout 08-28-2005 09:36 AM

Quote:

Originally Posted by KuRi
Thats what i thaught but it had no effect???

It works for me... Have you tried to make another quote ? I mean when you make a modification, you often have to quote another message to see the result. If you want send me a PM with the adress of your site, i'll have a look.

KuRi 08-28-2005 11:43 AM

cheers i didnt realise i had to make another quote.

Snort_2005 08-29-2005 01:55 PM

Installed and working fine.. I had to tweak the optional templates, (php/html/code) tags to get the fixed width font back on there. If the author doesn't mind, I would release those fixes. >_> (My edits is for the trans 70% version.)


All times are GMT. The time now is 05:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01623 seconds
  • Memory Usage 1,863KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (1)bbcode_html_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete