vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - SyntaxHighlighter vB 4.X (https://vborg.vbsupport.ru/showthread.php?t=254418)

PiroX 12-01-2010 02:54 PM

please upload a version with a max height
Quote:

- Removed vertical scrollbar

DarkSupremo 12-01-2010 08:58 PM

It already have the max height... the scrollbar removed is only a bug that happens with vbulletin, that i fixed.

Dr.osamA 12-02-2010 06:49 AM

Excellent = 5 stars
insalled

i'll try it on vb 4.1.0

PiroX 12-02-2010 11:43 PM

It gets very very laggy if you use it multiple times. I removed all languages expect of one
maybe it is better if it gets included one time only. maybe if i put it in header

btw i fixed the scoll bar thing, i just added a max-height: in css

DarkSupremo 12-03-2010 09:47 AM

only get laggy if you load everything, the idea is use the loader....

and make separated category in your forum, to each language, to no one use more than one in the same topic...

PiroX 12-03-2010 12:07 PM

I told you i removed all clanguages expect of one languages, because i only need one

the bbcode gets called 60 times in one thread. The thread is a summary of all functions i use in that language, so the file gets included 60 times in this thread and this totally slows down the whole browser while the site is getting loaded. And it takes about 20-30sec, and yes it is much data on one page.
Yes i know i could split it up, but this isn't good atm

is it possible to add that it only gets included one time and only if needed.
Maybe you know what cause the long load time, by the numbers the .js gets included or by the numbers the script has to be its job`?


i'll show you my bbcode
Code:

<script src="http://www.piroxbots.com/forum/scripts/shCore.js" type="text/javascript"></script>
<script src="http://www.piroxbots.com/forum/scripts/shAutoloader.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="http://www.piroxbots.com/forum/styles/shCoreDefault.css"/>
 

<pre style="height: 132px;" class="brush: pt;  toolbar: false; ">{param}</pre>

<script type="text/javascript">
function path()
{
  var args = arguments,
      result = []
      ;
     
  for(var i = 0; i < args.length; i++)
      result.push(args[i].replace('@', 'http://www.piroxbots.com/forum/scripts/'));
     
  return result
};
 
SyntaxHighlighter.autoloader.apply(null, path(
  'pt          @shBrushAhk.js'
));
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>

you see i only use shBrushAhk.js as language


btw thank you very very much for this cool mod, thats what i really needed!

DarkSupremo 12-08-2010 10:50 AM

No idea... here it load in less than 1 secound....

But, if you will only use one of then, so use it instead:

Code:

<script type="text/javascript" src="/scripts/shCore.js"></script>
<script type="text/javascript" src="/scripts/shBrushAhk.js"></script>

<pre style="height: 132px;" class="brush: pt;  toolbar: false; ">{param}</pre>

<script type="text/javascript">
SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();
</script>


neal007 05-05-2011 06:57 PM

Thank you for the mod. My forum uses one language so I'd rather have an image on the toolbar above that places the code in using the xcode=vb syntax and also if they highlight code then press the button it would work like the # button.

Anyone know how to implement this so my xcode=vb works just like the # button?

Thank you.

calord 12-27-2012 03:06 PM

Anyone still modding this? It's not working.

Widey 02-19-2013 09:47 AM

Has anyone managed to get this working in 4.2 recently?

Thanks


All times are GMT. The time now is 03:26 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.00963 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_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
  • (10)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