Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Png Rounded Quotes (PRQ) v.3.10 - Valid XHTML 1.0 Details »»
Png Rounded Quotes (PRQ) v.3.10 - Valid XHTML 1.0
Version: 3.00, by cclaerhout cclaerhout is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-15-2005 Last Update: 02-19-2006 Installs: 58
Template Edits
 
No support by the author.

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)".

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-16-2005, 05:31 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job, thank you for sharing. Always nice to see png work at its best, and xhtml valid! Karma++ for you.
Reply With Quote
  #3  
Old 08-16-2005, 05:35 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by floris
Karma++ for you.
You're not at vbulletin.nl now you know.. :laugh:
Reply With Quote
  #4  
Old 08-17-2005, 09:00 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesn't stretch the quote box in the post. It is fixed and in the middle.
Reply With Quote
  #5  
Old 08-17-2005, 09:40 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 08-17-2005, 10:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make it stretch like the current quote box does?
Reply With Quote
  #7  
Old 08-17-2005, 10:42 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to you, i've seen a mistake in my code 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.
Reply With Quote
  #8  
Old 08-17-2005, 10:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, sir.

Just curious, what was the mistake in the code?
Reply With Quote
  #9  
Old 08-17-2005, 10:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 08-17-2005, 11:01 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10804 seconds
  • Memory Usage 2,314KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete