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)

quanvo81 02-14-2006 11:55 PM

Quote:

Originally Posted by cclaerhout
Sorry :D After having a look into the archive file again, i can certify files are good.

Just try to post a new quote to check if the "bug" display isn't due to vB cache.

And of course, use code of "QuotesPNG_template.txt" text file. It should work.

Thanks cclaeehout , lol, I don't know what's wrong, probably the cache you said, after I went out to eat then come back home, I recheck it again then it show up 2 bubbles . :nervous:

It's weird coz I turned the cache off in Vbulletin Option already.
But anyway, it works great now. Thanks again.

ehjay 02-14-2006 11:57 PM

Works in FF, however Safari still fails to stretch the bottom half of the quotebit.

cclaerhout 02-15-2006 12:03 AM

Quote:

Originally Posted by ehjay
Works in FF, however Safari still fails to stretch the bottom half of the quotebit.

Ok, i undersdant the problem now ; i'll try to find a solution (i hope) but in France it's late, i must go to bed :)

cclaerhout 02-15-2006 06:35 AM

Quote:

Originally Posted by ehjay
Works in FF, however Safari still fails to stretch the bottom half of the quotebit.

Tell me this code works now with Safari ;) All the quotation uses only one table instead of two.

HTML Code:

<div style="align:left;margin-top:5px;margin-bottom:5px;width:50%;color:black;">
<table border="0" cellpadding="0" cellspacing="0">
        <tr>
                <td width="37" style="background-image:url($stylevar[imgdir_misc]/quotes/06.png);background-repeat:no-repeat;width:37px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/07.png);background-repeat:repeat-x;width:1px;height:24px;" valign="middle" nowrap="nowrap">
                <div class="smallfont" nowrap="nowrap">$vbphrase[quote]:</div></td>
                <td width="16" style="background-image: url($stylevar[imgdir_misc]/quotes/08a.png);background-repeat:no-repeat;width:16px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:16px;"></div><!-- /FF 1.5 Patch--></td>
        <if condition="$show[username]">
                <td width="17" style="background-image: url($stylevar[imgdir_misc]/quotes/08b.png);background-repeat:no-repeat;width:17px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:17px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/09.png);background-repeat:repeat-x;width:1px;height:24px;" valign="middle" nowrap="nowrap">
                <div class="smallfont" nowrap="nowrap"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/10.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </if>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/11.png);background-repeat:repeat-x;width:100%;height:24px;" nowrap="nowrap"></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/12.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/04.png);width:37px;height:1px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/00.png);width:100%;height:1px;margin-right:24px;padding-top:8px;" 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;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/01.png);width:37px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/02.png);width:100%;height:14px;" nowrap="nowrap"></td>
                <td width="18" style="background-image: url($stylevar[imgdir_misc]/quotes/03.png);width:18px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
</table>
</div>


ehjay 02-15-2006 10:35 AM

fixed the width bug -- only remaining issue I see is that it breaks when the username is included in the quote header:

cclaerhout 02-15-2006 11:52 AM

Quote:

Originally Posted by ehjay
fixed the width bug -- only remaining issue I see is that it breaks when the username is included in the quote header:

Is it with IE or Safari ?

ehjay 02-15-2006 10:53 PM

Safari, hence my attachment.

cclaerhout 02-16-2006 01:36 PM

Sorry i was busy yesterday.

I think this code should work :
HTML Code:

<div style="align:left;margin-top:5px;margin-bottom:5px;width:100%;color:black;">
<table border="0" cellpadding="0" cellspacing="0">
        <tr>
                <td width="37" style="background-image:url($stylevar[imgdir_misc]/quotes/06.png);background-repeat:no-repeat;width:37px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/07.png);background-repeat:repeat-x;width:1px;height:24px;" valign="middle" nowrap="nowrap">
                <div style="width:100%;" class="smallfont" nowrap="nowrap">$vbphrase[quote]:</div></td>
                <td width="16" style="background-image: url($stylevar[imgdir_misc]/quotes/08a.png);background-repeat:no-repeat;width:16px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:16px;"></div><!-- /FF 1.5 Patch--></td>
        <if condition="$show[username]">
                <td width="17" style="background-image: url($stylevar[imgdir_misc]/quotes/08b.png);background-repeat:no-repeat;width:17px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:17px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/09.png);background-repeat:repeat-x;width:1px;height:24px;" valign="middle" nowrap="nowrap">
                <div style="width:100%;" class="smallfont" nowrap="nowrap"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/10.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </if>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/11.png);background-repeat:repeat-x;width:100%;height:24px;" nowrap="nowrap"></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/12.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/04.png);background-repeat:repeat-y;width:37px;height:1px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/00.png);background-repeat:repeat;width:100%;height:1px;margin-right:24px;padding-top:8px;" 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);background-repeat:repeat-y;width:18px;height:1px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/01.png);width:37px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/02.png);background-repeat:repeat-x;width:100%;height:14px;" nowrap="nowrap"></td>
                <td width="18" style="background-image: url($stylevar[imgdir_misc]/quotes/03.png);width:18px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
</table>
</div>


ehjay 02-16-2006 10:49 PM

Naw, it still exists. The second bubble's size has been shrunk, but it still line breaks and causes the quotebit to break as I showed in my last post.

cclaerhout 02-17-2006 06:36 AM

Ok i think i've found why there is a bug with Safari :
Quote:

Konqueror doesn't honor the nowrap tag in <td> elements.
How nice !

cclaerhout 02-17-2006 06:39 AM

By the way try this code ; i've added nowrap with CSS style command

HTML Code:

<div style="align:left;margin-top:5px;margin-bottom:5px;width:100%;color:black;">
<table border="0" cellpadding="0" cellspacing="0">
        <tr>
                <td width="37" style="background-image:url($stylevar[imgdir_misc]/quotes/06.png);background-repeat:no-repeat;width:37px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/07.png);background-repeat:repeat-x;width:1px;height:24px;white-space:nowrap;" valign="middle" nowrap="nowrap">
                <div style="width:100%;white-space:nowrap;vertical-align:middle;" class="smallfont" nowrap="nowrap">$vbphrase[quote]:</div></td>
                <td width="16" style="background-image: url($stylevar[imgdir_misc]/quotes/08a.png);background-repeat:no-repeat;width:16px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:16px;"></div><!-- /FF 1.5 Patch--></td>
        <if condition="$show[username]">
                <td width="17" style="background-image: url($stylevar[imgdir_misc]/quotes/08b.png);background-repeat:no-repeat;width:17px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:17px;"></div><!-- /FF 1.5 Patch--></td>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/09.png);background-repeat:repeat-x;width:1px;height:24px;white-space:nowrap;" valign="middle" nowrap="nowrap">
                <div style="width:100%;white-space:nowrap;vertical-align:middle;" class="smallfont" nowrap="nowrap"><phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase></div></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/10.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </if>
                <td width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/11.png);background-repeat:repeat-x;width:100%;height:24px;" nowrap="nowrap"></td>
                <td width="18" style="background-image:url($stylevar[imgdir_misc]/quotes/12.png);background-repeat:no-repeat;width:18px;height:24px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/04.png);background-repeat:repeat-y;width:37px;height:1px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/00.png);background-repeat:repeat;width:100%;height:1px;margin-right:24px;padding-top:8px;" 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);background-repeat:repeat-y;width:18px;height:1px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
        <tr>
                <td width="37" style="background-image: url($stylevar[imgdir_misc]/quotes/01.png);width:37px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:37px;"></div><!-- /FF 1.5 Patch--></td>
                <td colspan="<if condition="$show[username]">6<else />3</if>" width="100%" style="background-image: url($stylevar[imgdir_misc]/quotes/02.png);background-repeat:repeat-x;width:100%;height:14px;" nowrap="nowrap"></td>
                <td width="18" style="background-image: url($stylevar[imgdir_misc]/quotes/03.png);width:18px;height:14px;" nowrap="nowrap"><!-- FF 1.5 Patch--><div style="width:18px;"></div><!-- /FF 1.5 Patch--></td>
        </tr>
</table>
</div>


ehjay 02-18-2006 03:17 AM

Works in Safari now -- we'll see how my users respond in terms of other browsers/platforms. I'll get back to you shortly.

=]

cclaerhout 02-20-2006 01:22 PM

PRQ 3.10 is OUT - All zip files have been updated.

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

sensimilla 02-23-2006 03:17 PM

Heh.. I just wanted to report its not working for me with Safari browser... Thanks for the new release..
Gonna recheck it again...

parajsa 02-24-2006 02:47 PM

hi there, thanks for the hack, i was wondering is just me or any body else is having the same problem, in IE i have a red light background that is not present when i browse with firefox.

Is there a way to get rid of that background?

I attached a pic to exactly show what really happen to me!

thank u in advanced

cclaerhout 02-24-2006 04:03 PM

Quote:

Originally Posted by parajsa
hi there, thanks for the hack, i was wondering is just me or any body else is having the same problem, in IE i have a red light background that is not present when i browse with firefox.

Is there a way to get rid of that background?

I attached a pic to exactly show what really happen to me!

thank u in advanced

It would have been nice if you have read the instructions to make this hack work with IE v.6. Everything is explained. Just install the png transparency hack.

parajsa 02-25-2006 04:10 AM

Quote:

Originally Posted by cclaerhout
It would have been nice if you have read the instructions to make this hack work with IE v.6. Everything is explained. Just install the png transparency hack.

Thank u very much, i did not see that :ermm:

It really solved the problem!

gothicuser 02-25-2006 03:41 PM

Quote:

Originally Posted by 350Chevy
Anyway to get this working with vBAdvanced CMPS? If you try to quote something in the "news" section on vBAdvanced the whole page goes whacky.

Other than that it looks great. :)

Same here, I've instructed my news mods not to post anything with quotes, which is quite a feat as they are truly fond of their quotes........:ermm:

cclaerhout 02-28-2006 10:24 AM

Quote:

Originally Posted by gothicuser
Same here, I've instructed my news mods not to post anything with quotes, which is quite a feat as they are truly fond of their quotes........:ermm:

The problem comes from CMPS. My code is considered like basic text when CMPS counts the number of caracters. It means if you have specified in CMPS a X maximum caracters to display, the code included into the quote template will be counted too ! Just try to enter "0" in the maximum caracter to display of CMPS news module and you will see it will work. But i know, that's not a good solution.

You should contact Brian to ask him if there is a way to exclude the code template from the text message, otherway create a new bbcode with a short code like this :
HTML Code:

<div style="padding:$stylevar[cellpadding]px"><fieldset class="fieldset"><legend style="font-size: 11px;color:black;font-weight:bold;">Article:</legend>{param}</fieldset>
</div>

(176 caracters)

gothicuser 02-28-2006 10:36 AM

Thats great cclaerhout, Works well, and as we only use 'Headlines' in the news forums (linking back to threads in other forums) there is no issue with the number of characters being too long.
Thanks again.
:D :D

cclaerhout 02-28-2006 02:06 PM

Well i find a way to make PRQ works with CMPS, but i don't really like it : if you're text inside your quote is too long, it will continue to break the page.

Bytheway, here is the tips (warning : i don't give any support for this)
At the top of your bbcode_quote template put :
Code:

<!-- prq -->
Then open your new.php cmps module located on your server.

Find :
PHP Code:

                // Strip characters and add "read more"
                
if ($mod_options['portal_news_maxchars'] AND strlen($news['message']) > $mod_options['portal_news_maxchars'])
                {
                    
$news['message'] = substr($news['message'], 0strrpos(substr($news['message'], 0$mod_options['portal_news_maxchars']), ' ')) . '...' construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $session['sessionurl']);
                } 


Replace with :
PHP Code:

                                // Strip characters and add "read more"
                                
if ($mod_options['portal_news_maxchars'] AND strlen($news['message']) > $mod_options['portal_news_maxchars'])
                                {
                                        
// check first if <!-- prq --> is in the message
                    
if (stristr($news['message'], '<!-- prq -->') === false)
                    {       
//process normally
                        
$news['message'] = substr($news['message'], 0strrpos(substr($news['message'], 0$mod_options['portal_news_maxchars']), ' ')) . '...' construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $session['sessionurl']);
                    }
                                        else
                                        {
$mod_options['portal_news_maxchars2'] = $mod_options['portal_news_maxchars']+3000;
                        
$news['message'] = substr($news['message'], 0strrpos(substr($news['message'], 0$mod_options['portal_news_maxchars2']), ' ')) . '...' construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $session['sessionurl']);
                    }
                                } 

How does it work ?
Now the php file look if there is "<!-- prq -->" in the news, if it's true then the maximum number of caracters increase of 3000 (number of caracters of the PRQ code).

I repeat : i think it's better to create a new bbcode with little code.

B?-Y?u 06-05-2006 04:48 AM

Hi cclaerhout. I very like this mod. Clicked install and fixed "small" bug 4 you when use with code, html and php tags, e.g: inserts a scrollbar...

=================
How to Update ?
Replace all the content in the template field withd the code provided in the txt file in the zip below.

I hope u and everybody like it :)
( I think u should Update your hack :) )
Thank !

vBB-vietnam 06-06-2006 04:00 AM

Quote:

Originally Posted by B?-Y?u
Hi cclaerhout. I very like this mod. Clicked install and fixed "small" bug 4 you when use with code, html and php tags, e.g: inserts a scrollbar...

=================
How to Update ?
Replace all the content in the template field withd the code provided in the txt file in the zip below.

I hope u and everybody like it :)
( I think u should Update your hack :) )
Thank !

Good job. Updating :banana:
Thank you so much :)

sensimilla 07-06-2006 02:32 PM

Any chance to make it work with plugin accelerator hack ?
https://vborg.vbsupport.ru/showthread.php?t=107315

Thanks in advance

cclaerhout 07-17-2006 08:45 AM

I announce you that this mod is no more supported.
Why ? Because, there is a new project :D
->https://vborg.vbsupport.ru/showthread.php?t=120073

Best regards


All times are GMT. The time now is 01:37 PM.

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.01434 seconds
  • Memory Usage 1,903KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (10)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
  • (25)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