Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-23-2002 Last Update: Never Installs: 183
 
No support by the author.

IMPORTANT: If you are using v2.2.3 and up please read this thread!
https://vborg.vbsupport.ru/showthrea...threadid=35894


This is more of a visual change, but still requires hacking the files.
All it does is make the look of [code], [php] and [quote] codes better (IMO), instead of the ugly lines which are used right now.

Demo:
https://vborg.vbsupport.ru/showthrea...2985&styleid=4
https://vborg.vbsupport.ru/showthrea...2985&styleid=1

Everything you need is in the text file, have fun.

Show Your Support

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

Comments
  #172  
Old 12-16-2002, 01:33 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 just installed this on a fresh install of 2.2.9 and the quote and php boxes are fine but I get spaces between each line in the code boxes. Can anyone please tell me why this is happening and how to fix it?
Reply With Quote
  #173  
Old 12-16-2002, 02:41 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 solved the spacing problem. Chen, do you have any updated code for this that will stop some of the parsing of code like it does here?
Reply With Quote
  #174  
Old 12-16-2002, 02:41 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the dowordwrap()... have fun.
Reply With Quote
  #175  
Old 12-16-2002, 02:43 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TECK
Is the dowordwrap()... have fun.
dowordwrap()? I don't see that anywhere in the code I have.
Reply With Quote
  #176  
Old 12-16-2002, 03:04 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the bbcodeparse2() function. That's where is pulled into, your info.
Reply With Quote
  #177  
Old 12-16-2002, 03:17 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 checked that but I don't undertsnad what that has to do with it. Here's what I did to fix it.

I replaced:

Code:
#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>" . $foundcode .
with:

Code:
#ffffff; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #273549;\"><pre>".str_replace("<br>","",str_replace("<br />","",$foundcode)).
and that seemed to take the extra spaces out of the code box.

Is there a better or easier way to do the same thing?
Reply With Quote
  #178  
Old 01-31-2003, 02:53 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet hack Firefly .

Works great (especially when I remove the : at the end of codebackground and codefontcolor ).
Reply With Quote
  #179  
Old 02-24-2003, 02:11 PM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got it running nicely on 2.2.9, except for one problem: The custom colors I define in the replacements don't appear. The box and quoted text are there, but the colors don't take effect.

There must be something simple I goofed on. Can someone help?
Reply With Quote
  #180  
Old 02-24-2003, 03:18 PM
imageconstrux imageconstrux is offline
 
Join Date: Jan 2003
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just hardcoded the background color...that seemed to work. Though I'd like to make it a call to a variable, if at all possible.
Reply With Quote
  #181  
Old 03-08-2003, 09:30 PM
SiXXGuNNZ's Avatar
SiXXGuNNZ SiXXGuNNZ is offline
 
Join Date: Oct 2001
Location: WA, USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb 2.3.0

it parses the code for all three boxes like this in the html output

& #123;codefontcolor}

& #123;codebackground}

no space between & #

any fixes?

blah

https://vborg.vbsupport.ru/showthrea...threadid=35894
Reply With Quote
Reply

Thread Tools

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 08:11 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.04640 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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