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 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:34 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.01124 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_php_printable
  • (1)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
  • (5)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