PDA

View Full Version : Show Thread Enhancements - Better Quote Box


Madlike
04-26-2008, 10:00 PM
This hack replace QuoteBox with New QuoteBox :)

Upload quotes to /images Folder.

Change bbcode_quote Template With:

<table border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top: 5px; margin-bottom: 5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<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="28" valign="top">
<img src="images/quotes/quot-top-left.gif" alt /></td>
<td width="100%" style="background: url('images/quotes/quote-bg.gif') #FFFFFF; background-position: center;" valign="middle">
<span class="smallfont">$vbphrase[quote]:</span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<if condition="$show['username']">
<td width="0" align="left" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="225">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<else /></if>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<td width="0" align="left" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="30">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<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('images/quotes/quot-top-bg.gif')" width="100%" valign="middle">
</td>
<td align="left" valign="top">
<img src="images/quotes/quot-top-right-10.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="10" style="background-image: url('images/quotes/quoting-left.gif')">
</td>
<td width="100%" valign="top" bgcolor="#ffffff"></td>
<td width="10" style="background-image: url('images/quotes/quoting-right.gif')">
</td>
</tr>
<tr>
<td width="10" style="background-image: url('images/quotes/quot-left-bg.gif')">
</td>
<td width="100%" valign="top" style="background: url('images/quotes/quote.gif') #FFFFFF no-repeat" class="smallfont">
<if condition="$show['username']"><i><br />$message</i>
<else /><br />$message</if></td>
<td width="10" style="background-image: url('images/quotes/quot-right-bg.gif')">
</td>
</tr>
<tr>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quot-bot-bg.gif')">
</td>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-right.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>

Note: If you don't Like ' ' image, You Can Change it. Go to Extras/images/quotes And Choose one ,Replace name to quote.gif And Upload to /images/quotes Folder.

Many Thanx To Princeton For ' ' images :)

rizelim
04-27-2008, 07:40 PM
thanks

Madlike
04-27-2008, 08:07 PM
You're WeLcome & Thank You :)

Madlike
04-27-2008, 09:54 PM
7 downloads, 1 installs

Jasem
04-28-2008, 03:03 AM
Thank you very much

Madlike
04-28-2008, 07:08 AM
You're WeLcome & Thank You :)

KingPin6
04-28-2008, 07:12 AM
Thank you.... :)

Madlike
04-28-2008, 07:17 AM
Now I Will do it with xml File :)

za3bour
04-28-2008, 07:20 AM
How can i change it so that it fit arabic ? cause now the alignment is left while i want it right ?

rooban12
04-28-2008, 10:17 AM
well done man you have done a good job

K4GAP
04-28-2008, 01:49 PM
Wow this would be great if it had images for those of us with dark color schemes.

rizelim
04-28-2008, 06:26 PM
this is a bug

burada çizgiler gözükmüyor..

Madlike
04-30-2008, 09:10 AM
Workinq Well As 3.6.9

myown
05-09-2008, 01:37 PM
looks great will be installing soon.

AzzidReign
05-12-2008, 06:26 PM
Will this work with 3.7?

mikkitine
05-12-2008, 06:32 PM
^ There is no reason why it shouldn't.

AcidX
05-17-2008, 05:38 PM
this is a bug

burada ?izgiler g?z?km?yor..
It's a bug, a it doesn't look nice.

I've installed the modification, but it didn't look good so I'm using the "old" quote box again

inciarco
07-31-2008, 03:20 PM
Great Mod, Thank You Very Much For Sharing it!! :up:

this is a bug

burada ?izgiler g?z?km?yor..

The Bug is Not in the Code, is in the extension of one of the Quote's Images Files:

You Should Change the Extension GIF (Mayuscule) for gif (minuscule) in the files:

quote-bg.gif

and I also found that other File has the same Problem, so is better to change the Extension to lowercase:

spacer.gif

;)

:)

inciarco
07-31-2008, 03:52 PM
An Improvement for you code to Not to Show the Link to the Post if the Quote don't refer to a Post:

Notice the "<if condition="$postid">" and "</if>" Code, added to the Original Code:

<table border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top: 5px; margin-bottom: 5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<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="28" valign="top">
<img src="images/quotes/quot-top-left.gif" alt /></td>
<td width="100%" style="background: url('images/quotes/quote-bg.gif') #FFFFFF; background-position: center;" valign="middle">
<span class="smallfont">$vbphrase[quote]:</span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<if condition="$show['username']">
<td width="0" align="left" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="225">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<else /></if>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<if condition="$postid">
<td width="0" align="left" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="30">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
</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('images/quotes/quot-top-bg.gif')" width="100%" valign="middle">
</td>
<td align="left" valign="top">
<img src="images/quotes/quot-top-right-10.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="10" style="background-image: url('images/quotes/quoting-left.gif')">
</td>
<td width="100%" valign="top" bgcolor="#ffffff"></td>
<td width="10" style="background-image: url('images/quotes/quoting-right.gif')">
</td>
</tr>
<tr>
<td width="10" style="background-image: url('images/quotes/quot-left-bg.gif')">
</td>
<td width="100%" valign="top" style="background: url('images/quotes/quote.gif') #FFFFFF no-repeat" class="smallfont">
<if condition="$show['username']"><i><br />$message</i>
<else /><br />$message</if></td>
<td width="10" style="background-image: url('images/quotes/quot-right-bg.gif')">
</td>
</tr>
<tr>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quot-bot-bg.gif')">
</td>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-right.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>

:)

ShawneyJ
09-04-2008, 02:58 AM
Great Mod, Thank You Very Much For Sharing it!! :up:



The Bug is Not in the Code, is in the extension of one of the Quote's Images Files:

You Should Change the Extension GIF (Mayuscule) for gif (minuscule) in the files:

quote-bg.gif

and I also found that other File has the same Problem, so is better to change the Extension to lowercase:

spacer.gif

;)

:)

ahhhh yeah i see the .GIF i changed both to .gif and works great thanks.

ShawneyJ
09-04-2008, 03:05 AM
edit: if the user has a name of 12 letters and gets quoted 2 words there names messes shit up.

ShawneyJ
09-04-2008, 03:10 AM
edit: again lol, are you able to do this with a post?????
i like the look of it.

raja811
11-08-2008, 11:30 PM
thabks

TheLastSuperman
11-08-2008, 11:36 PM
edit: again lol, are you able to do this with a post?????
i like the look of it.

Hmmm good idea..... I bet if so it's simple edit to postbit or postbit_legacy etc :D

Edit: And what's w/ the language eh? come on keep it clean lol, of course it messes **** up as the image shows :D

masterross
11-09-2008, 09:18 PM
edit: if the user has a name of 12 letters and gets quoted 2 words there names messes shit up.

use this code:

<table border="0" cellpadding="0" cellspacing="0" align="center" style="margin-top: 5px; margin-bottom: 5px; <if condition="$show['iewidthfix']">width: 100%;</if>">
<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="28" valign="top">
<img src="images/quotes/quot-top-left.gif" alt /></td>
<td width="100%" style="background: url('images/quotes/quote-bg.gif') #FFFFFF; background-position: center;" valign="middle">
<span class="smallfont">$vbphrase[quote]:</span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<if condition="$show['username']">
<td width="0" align="left" valign="bottom">
<table style="min-width:350px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<else /></if>
<td align="left" style="background-image: url('images/quotes/quot-lr-bg.gif')" valign="bottom">
</td>
<td width="0" align="left" valign="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="30">
<tr>
<td valign="top">
<img src="images/quotes/quot-by-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quote-bg.gif'); background-position: center;" valign="middle">
<span class="smallfont"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></span></td>
<td valign="top">
<img src="images/quotes/quot-top-right.gif" alt /></td>
</tr>
</table>
</td>
<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('images/quotes/quot-top-bg.gif')" width="100%" valign="middle">
</td>
<td align="left" valign="top">
<img src="images/quotes/quot-top-right-10.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="10" style="background-image: url('images/quotes/quoting-left.gif')">
</td>
<td width="100%" valign="top" bgcolor="#ffffff"></td>
<td width="10" style="background-image: url('images/quotes/quoting-right.gif')">
</td>
</tr>
<tr>
<td width="10" style="background-image: url('images/quotes/quot-left-bg.gif')">
</td>
<td width="100%" valign="top" style="background: url('images/quotes/quote.gif') #FFFFFF no-repeat" class="smallfont">
<if condition="$show['username']"><i><br />$message</i>
<else /><br />$message</if></td>
<td width="10" style="background-image: url('images/quotes/quot-right-bg.gif')">
</td>
</tr>
<tr>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-left.gif" alt /></td>
<td width="100%" style="background-image: url('images/quotes/quot-bot-bg.gif')">
</td>
<td width="10" valign="bottom">
<img src="images/quotes/quot-bot-right.gif" alt /></td>
</tr>
</table>
</td>
</tr>
</table>change:
table style="min-width:350px;"to whatever u wish

Valyx
11-11-2008, 01:53 AM
very nice.

Superdaantje
11-29-2008, 12:14 PM
I have this problem with the quote with IE7 in Firefox it works oke. Some one an idee how to solve this ?

Many thanks

SpeedyHire
12-21-2008, 09:07 AM
I have this problem with the quote with IE7 in Firefox it works oke. Some one an idee how to solve this ?

Many thanks

same here
any fix for this yet?