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)

Admin 04-05-2002 12:09 PM

Beiddos: Don't do any changes to your functions.php file. :)

Ordovicuim: Please read the thread, at least read the first post. :rolleyes:

:bunny:

Bieddos 04-05-2002 04:41 PM

Quote:

Originally posted by FireFly
Beiddos: Don't do any changes to your functions.php file. :)

Ordovicuim: Please read the thread, at least read the first post. :rolleyes:

:bunny:

Infact i try i do only this part: +-------------------------------------------------------------------------------------------------+
| In the Admin CP, goto Modify under Custom vB Codes and click [edit] next to the [quote] code |
| Place this code in the "vB Code replacement" Box |
+-------------------------------------------------------------------------------------------------+
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><smallfont><b>quote:</b></smallfont></td></tr><tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #D7D7D7;">{param}</td></tr></table>
+-------------------------------------------------------------------------------------------------+

+
+++
+

+-------------------------------------------------------------------------------------------------+
| Add a new Replacement Variable, named #D7D7D7: |
+-------------------------------------------------------------------------------------------------+
#D7D7D7
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| And another, named #000000: |
+-------------------------------------------------------------------------------------------------+
#000000
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| You can adjust these colors to your liking. The first is the background color of the box, and |
| the second is the font color of the text inside the box. (Current colors fit default scheme) |
+-------------------------------------------------------------------------------------------------+



But there is this problem: the quote include the signature and the result is this :( :

Admin 04-05-2002 04:52 PM

You didn't run the query... ;)

amykhar 04-05-2002 10:40 PM

weird problem. I upgraded from 2.2.2 to 2.2.5 and made the mods to the functions.php file. I did not change the replacement or anything else.

Windows users say everything is fine. Mac users can't read the quotes. They are seeing a light green text on a blue background.

See it here:
http://www.eaforums.com/showthread.p...954#post114954

Amy

Erwin 04-06-2002 03:25 AM

Yeah - that happened to me too. All I did to fix that in 2.2.5 is to replace the {codefontcolor} and {codebackgroundocolor} with the actual color hex codes both in the vbcode section as well as in functions.php.

In other words, I hard-coded the color rather than used the replacement variables - it works like a charm. I suspect that if you did not want to do this you just need to run the db query again.

Bieddos 04-06-2002 08:06 AM

Quote:

Originally posted by FireFly
You didn't run the query... ;)
ops... now it's perfect :D

Admin 04-06-2002 08:14 AM

Told'ya. ;)

Bieddos 04-06-2002 08:27 AM

I have only a little problem with the colors...

Custom replacements
{--codebackground--} is replaced by #D7D7D7 [edit] [remove]
{--codefontcolor--} is replaced by #f7fcd1 [edit] [remove]

But the results is this: My Forum--> examples of quote <--

Ordovicium 04-07-2002 05:35 PM

Quote:

Originally posted by FireFly
Beiddos: Don't do any changes to your functions.php file. :)

Ordovicuim: Please read the thread, at least read the first post. :rolleyes:

:bunny:

Ok I read now everything, but now I have this Problem:
http://www.vbulletin.com/forum/showt...603#post272603

Ambex Net 04-07-2002 05:41 PM

How do i get this to work with the AutoCopy Code and PHP to clipboard hack?

Admin 04-07-2002 05:44 PM

Have you run the query, Ordovicium?

Ordovicium 04-07-2002 06:30 PM

I fixed it now. I don't know why I put another code in it put now, with this code:

Code:

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr><td><smallfont><b>quote:</b></smallfont></td></tr><tr>
<td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial;
BACKGROUND-COLOR: #1D6AA0;">{param}</td></tr>
</table>

it works. Thanks to Firefly for the hints.

CeleronXL 04-07-2002 10:11 PM

Hey, I tried to install the hack, but it didn't work for me. So I uninstalled the rest of the hack, but I need to know the query that is the opposite of the one he told us to run:

ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT;

What would the query be to change it back to the default?

CeleronXL 04-07-2002 10:15 PM

Hmmm.... I guess my editpost.php was just bad since I just updated to 2.2.5 and I don't think I've ever edited anything yet. I just uploaded the normal 2.2.5 script and I'll add all the hacks back in later.

Ambex Net 04-07-2002 10:31 PM

Does anyone know how to get this to work with AutoCopy Code and PHP to clipboard hack yet?

Bieddos 04-08-2002 09:50 AM

I must use the [] in the replacement
[codebackground] is replaced by #FFFFFF [edit] [remove]
[codefontcolor] is replaced by #FFFFEF [edit] [remove]

The { } does not functions :(

Bugz 04-11-2002 06:31 PM

Code:

i have the same problem as mr x :-\

and i seen that there isnt a fix .

i did everything it said. ran the sql also so idunno

EDIT i found out what was wrong i didnt upload the functions.php

Mr. X 04-11-2002 06:34 PM

That was my prob too. I was sure I edited functions.php, but I guess I uploaded the old file instead of the newly modified one. Doh!

veedee 04-18-2002 03:29 PM

I am wondering if anyone can help me on this. I have installed this hack it works well on all skins except the default one.

Please click the link below to see an example.

http://www.visordown.com/forums/show...threadid=53476

The problem is the text is white and so cannot be read on the lilac background. How can I change it so that only in this skin it is black?

Regards,

veedee

Polinco 04-19-2002 08:44 AM

This is my first post. I am a licensed user and have typed in my username as requested.

Nakkid, someone posted
Quote:

Is there any way to have this hack automatically detect the background colour of the post it's in and to set the table background colour to the alternate colour as specified in the style?
And you understandably declined to help unless the poster could prove that he was licensed. So, I have done this, how do I get that code?

I am trying something complicated:
I am trying to make the postbit template show in 3D but because it involves an elaborate style sheet with varying pixel widths for the top/left borders and the right/bottom borders and the colors not being readily available in the ACP (there are too few color options anyway) I am forced to hard code the color values in the Postbit template. But that means that the second alternate color will have the wron highlights and shades. How am I to solve that?

Please see a 3d example at P?LiNCO

Side-by-side works since this is all in the same table row but the Postbit template has only room for one or the other.

Please help.

Thanks,

Polly

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

|-Last-Spirit-| 05-04-2002 01:13 PM

Hi all, I might be a bit late but just noticed this one... :)
Anyway, I installed this hack :

AutoCopy Code and PHP to clipboard
Version 1.0
By Nakkid (vBulletin.org hacker)

But now I want to install this new box look hack and I noticed it asks to replace the same code.... and I know I'll screw this up. I also noticed that right here on vb.org they also use both hacks so I tought, is there a hack that combines the 2 or gives more information on what to remove add to make the hacks work with eachother... ?

Tnx.

veedee 05-07-2002 07:26 PM

I installed this, however maybe I shouldn't have.

It works fine in all but one style, my main style :mad:

I don't think I need to say much more but I will include a screen shot, maybe someone can help me out?

Cheers :cry:

veedee

Admin 05-08-2002 09:50 AM

Make sure you add the replacement variables to all styles.

veedee 05-08-2002 10:27 AM

Hiya,

I am sure that I have done this. How can I check?

Cheers,

Ben

ps screen schot enclosed

Admin 05-08-2002 11:00 AM

Looks fine?

veedee 05-08-2002 11:32 AM

Yes the code works fine but the text come sout WHITE on a LIGHT background. I cannot figure out how to alter this?

Admin 05-08-2002 01:18 PM

Change the replacement vars you added when you installed the hack.

Chris M 05-08-2002 02:18 PM

So FireFly...

Do you know why I got a parse error?

Satan

veedee 05-08-2002 03:37 PM

Quote:

Originally posted by FireFly
Change the replacement vars you added when you installed the hack.
The thing is FF, this works in all skins except my default one. I am really SO puzzled as to why this happens. I'd love to get it sorted soon :)

Cheers,

[veedee]

Vivi Ornitier 05-09-2002 02:54 PM

err, after installing this on 225, took a couple of secs, but then i noticed the colors weren't shwing, hit the view source button and noticed that { is replaced by &123;

to fix this find
Code:

        $bbcode=str_replace("{", "{", $bbcode); // stop people posting replacements in their posts
in functions.php and remove it. :D


All times are GMT. The time now is 04:17 AM.

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.01370 seconds
  • Memory Usage 1,849KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)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
  • (40)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