vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New code, PHP and quote boxes! (https://vborg.vbsupport.ru/showthread.php?t=35382)

212rikanmofo 04-19-2002 07:14 PM

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...

Polinco 04-19-2002 10:20 PM

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

!!!cyr0n_k0r 04-20-2002 04:02 PM

I dont if its been answered...

BUT HOW DO YOU REMOVE THIS HACK?

Polinco 04-20-2002 09:27 PM

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

Polly

!!!cyr0n_k0r 04-20-2002 09:34 PM

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?

Smoothie 04-20-2002 10:03 PM

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:

techno 04-21-2002 01:12 AM

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

Any help?

212rikanmofo 04-22-2002 01:01 AM

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

Airwaves 04-22-2002 11:04 PM

whats the original 'factory default' quote code?

Chris M 04-30-2002 07:25 PM

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


All times are GMT. The time now is 02:49 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.01994 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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