Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #102  
Old 04-19-2002, 07:14 PM
212rikanmofo 212rikanmofo is offline
 
Join Date: Nov 2001
Location: paris
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k works great, but how do i modify the font, border, background color and font color for the PHP and CODE box? i dont see it under modify vbcodes under the admin cp, all i see is quote, but i want to modify the PHP and CODE boxes as well, help me please...
Reply With Quote
  #103  
Old 04-19-2002, 10:20 PM
Polinco Polinco is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know whom that was directed at but it doesn't sound like you wrote it to me.

What you are looking for is probably somewhere in functions.php and as far as I can remember has been discussed here already.

Now... could Nakkid please get in touch with me regarding the hack I asked about? Does it involve adding replacement variables?
If yes, I would have to add 4 replacement variables and a new style to the header template to be able show 3d borders. in postbit, forumdisplay_threadslist and other templates.

Please sir, show thyself


Polly
Reply With Quote
  #104  
Old 04-20-2002, 04:02 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont if its been answered...

BUT HOW DO YOU REMOVE THIS HACK?
Reply With Quote
  #105  
Old 04-20-2002, 09:27 PM
Polinco Polinco is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The same way you installed it, but in reverse. Don't you keep records of the stuff you do to your forum??

Polly
Reply With Quote
  #106  
Old 04-20-2002, 09:34 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Polinco
The same way you installed it, but in reverse. Don't you keep records of the stuff you do to your forum??


Polly
im talking about that mysql [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth] that he makes you do...

if I dont like it, and want to get rid of it.. how would I undo whatever query he has me do in mysql?
Reply With Quote
  #107  
Old 04-20-2002, 10:03 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by !!!cyr0n_k0r

im talking about that mysql [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth] that he makes you do...

if I dont like it, and want to get rid of it.. how would I undo whatever query he has me do in mysql?
Wow! What did you really say? :laugh:
Reply With Quote
  #108  
Old 04-21-2002, 01:12 AM
techno techno is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The quote function works great everywhere...except in a PM. I still get the lines. In the forums, its great.

Any help?
Reply With Quote
  #109  
Old 04-22-2002, 01:01 AM
212rikanmofo 212rikanmofo is offline
 
Join Date: Nov 2001
Location: paris
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i make my PHP and CODE boxes look like my QUOTE boxes??? i change the tag code for [quote] but how bout for the [php] and [code] tags? the borders and color schemes are different from my [quote] borders and stuff. plz help
Reply With Quote
  #110  
Old 04-22-2002, 11:04 PM
Airwaves's Avatar
Airwaves Airwaves is offline
 
Join Date: Nov 2001
Location: Chesterfield, Derbyshire, UK
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats the original 'factory default' quote code?
Reply With Quote
  #111  
Old 04-30-2002, 07:25 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running vb 2.2.5...

In the .txt file, it says to look for :

PHP Code:
  return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>";
}

// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
  
$foundcode str_replace("\\\"","\"",$foundcode);
  return 
"</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>" str_replace("<br>"""str_replace("<br />"""$foundcode) ) . "<hr></pre></blockquote><normalfont>"
but in my functions.php I have :

PHP Code:
  return "</normalfont><blockquote><smallfont>PHP:</smallfont><hr><pre>$buffer</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}

// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
  
$foundcode str_replace("\\\"","\"",$foundcode);
  return 
"</normalfont><blockquote><smallfont>code:</smallfont><hr><pre>" str_replace("<br>"""str_replace("<br />"""$foundcode) ) . "</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";

I tried replacing :

PHP Code:
  return "</normalfont><blockquote><smallfont>PHP:</smallfont><hr><pre>$buffer</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";
}

// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
  
$foundcode str_replace("\\\"","\"",$foundcode);
  return 
"</normalfont><blockquote><smallfont>code:</smallfont><hr><pre>" str_replace("<br>"""str_replace("<br />"""$foundcode) ) . "</pre><hr><smallfont>(double click the code to copy it)</smallfont></blockquote><normalfont>";

with :

PHP Code:
  return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>PHP:</b></smallfont></td></tr><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" $buffer "</pre></td></tr></table><normalfont>";
}

// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
  
$foundcode str_replace("\\\"","\"",$foundcode);
  return 
"</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>code:</b></smallfont></td></tr><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: #1D6AA0;\"><pre>" $foundcode "</pre></td></tr></table><normalfont>"
but I got a parse error...

What went wrong?

Satan
Reply With Quote
Reply


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 09:07 AM.


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.04874 seconds
  • Memory Usage 2,325KB
  • 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
  • (4)bbcode_php
  • (2)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
  • (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