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)

kikosho 08-28-2002 09:49 AM

Quote:

Originally posted by kikosho
To Firefly (or anyone that can help)

I was able to install the hack succesfully, but now I am getting repeats of the "quote" and the code version of "quote", respectively.

I ran the queries and all, can you tell me how to undue this snafu so that only the quote box shows up and not the old style of "quote" (posted underneath the quote box).

Here's a thread that illustrates what I am trying to describe. thanks in advance... any help would be really appreciated!!!! :)

http://www.the-nextlevel.com/board/s...&threadid=8182

Nevermind, I was able to figure it out. Didn't realize that the HTML listed in the fact was supposed to replace the existing code in the vB Custom field. :)

FleaBag 09-03-2002 02:30 AM

Working beautifully with 2.2.7. Thanking you. :)

Dark Shogun 09-14-2002 06:55 AM

I am running VBulletin 2.2.7 and the back ground color is of the quote, php, and code doesn't work. I tried that replacement code fix and it didn't do anything to the color of the boxes. Help please. My test forum is at: http://www.thatfinalfantasysite.com/testvb

Dark Shogun

TheSaint-AeD 09-18-2002 06:07 PM

You'll find the solution to this earlier in the thread.

Diva 09-19-2002 03:51 AM

Quote:

Originally posted by Dark Shogun
I am running VBulletin 2.2.7 and the back ground color is of the quote, php, and code doesn't work. I tried that replacement code fix and it didn't do anything to the color of the boxes. Help please. My test forum is at: http://www.thatfinalfantasysite.com/testvb

Dark Shogun

What I forgot is to go to the Replacement section and put the code/color in there. Try that.

havefun 09-19-2002 07:09 PM

thanks!

works great :classic:

lg, havefun

FleaBag 10-29-2002 08:50 PM

Running on 2.2.8. :)

Chris M 10-29-2002 10:12 PM

Gamer:mad: - https://vborg.vbsupport.ru/showthrea...&postid=316171

Satan

Mark Hewitt 11-01-2002 09:04 AM

Quote:

Originally posted by X-Fan
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?
I've been trying to work out how to do this since this hack was first released but still haven't had any luck :(

Anyone have a solution? :)

telc 11-14-2002 10:00 PM

Is this hack going to be included in V3?

Boofo 12-16-2002 01:33 AM

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?

TECK 12-16-2002 02:41 AM

Is the dowordwrap()... have fun. :)

Boofo 12-16-2002 02:41 AM

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? :)

Boofo 12-16-2002 02:43 AM

Quote:

Originally posted by TECK
Is the dowordwrap()... have fun. :)
dowordwrap()? I don't see that anywhere in the code I have.

TECK 12-16-2002 03:04 AM

Check the bbcodeparse2() function. That's where is pulled into, your info.

Boofo 12-16-2002 03:17 AM

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?

Intex 01-31-2003 02:53 PM

Sweet hack Firefly :cool:.

Works great (especially when I remove the : at the end of codebackground and codefontcolor :o ).

imageconstrux 02-24-2003 02:11 PM

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?

imageconstrux 02-24-2003 03:18 PM

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.

SiXXGuNNZ 03-08-2003 09:30 PM

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 :D

https://vborg.vbsupport.ru/showthrea...threadid=35894

Swamper 03-26-2003 01:47 AM

The problem lies in that initial { at the start of the new replacement variables...

Just follow the original instructions but when you see

https://vborg.vbsupport.ru/external/2003/03/1.jpg

remove the { - replace it with:

codefontcolor}
codebackground}

respectively.

Works fine on 2.3.0

uomoragno 03-26-2003 07:01 AM

Quote:

remove the { - replace it with:

codefontcolor}
codebackground}

the colors don't take effect. :(

Swamper 03-26-2003 02:51 PM

Quote:

Today at 04:01 AM uomoragno said this in Post #182


the colors don't take effect. :(


You have to change it for every step along the way - I did it and it works, just open the original instructions and use search/replace in a text editor.....

jibious 03-31-2003 02:56 AM

im really only interested in the [quote] portion of this. however, i don't want the text being forced to another color if the person's text color is custom set (such as light blue).

would what i need to do be this:

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;
FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: { codebackground };">{param}</td></tr></table>

basically just removing the COLOR statement from the td style...?

jibious 03-31-2003 03:37 AM

nm, answered my own question when curiosity got the best of me and i just went ahead and tried it out. works fine.

cyc 04-07-2003 12:31 AM

Great hack, although i'm having one problem, I get the following error when ever someone quotes a message:
Code:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /web/domain.com/path/newreply.php(47) : eval()'d code on line 1
Any ideas would be appreciated

cyc 04-26-2003 11:28 AM

Anyone? :confused:

This hack works fine on my second and third template, but nor my default one.

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /web/www.cyclingforums.com/html/newreply.php(47) : eval()'d code on line 1

007 05-25-2003 10:18 PM

So is there a way to get this wo work with 2.2.9 without removing the { in front of the variables? I am trying to add this to the admincp and I can't right now... :(

Andrus 06-16-2003 12:37 AM

I am having a problem with 2.30. I am hacking this into two new boards at once, and with both boards when I reply with quote to a thread, it quotes the sample text for the custom vb code "This is a quote", rather than the actual post. At first I thought I made a mistake hacking it in, but I double checked everything and it is doing it on both boards.

Any ideas?

msimplay 08-08-2003 03:23 AM

hello i just want the php of this hack and if possible the code part to it
the reason is that i got this template edit from VbulletinTemplates
and i am not sure if it will conflict
if i run the query

vBFreak 10-25-2003 07:32 PM

nice Hack, I used it before I updated my Forum to the latest Version, but it doesn't work in vB 2.3.2 :(

Is there a rewrite for the newer versions anywhere?

SEShady 02-26-2004 07:59 PM

I recently installed this hack on VB 2.3.4, and the only problem I am having is when I put code or something in the PHP/CODE box, it streches the box across the screen. The entire web page is stretched, instead of just the boxes having scroll bars. Can anyone help?

Thanks,
Shady

Boofo 02-26-2004 08:25 PM

You're pretty well stuck with it that way until you upgrade to vB3. That's the way it's always been in vB2. ;)

SEShady 02-28-2004 08:23 PM

Ahh well. Thanks Boofo.

later,
Shady

Boofo 02-28-2004 08:25 PM

Sorry. ;)

When you're ready to upgarde, I did a hack for blocking code that also has it where you can just click anywhere in the box and it will copy it to the clipboard (just like that had for vB2). The update for it to do that is on my site. ;)

DeadGaze 03-24-2004 08:37 AM

im using 2.3.* and have this installed on a test forum.

There must be a way to make the new boxes "scrollable" like here @ vbulletin.org... i have seen it on another 2.* version.

Can anyone find a way to do this for 2.3.* ?


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.01558 seconds
  • Memory Usage 1,808KB
  • 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_code_printable
  • (6)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
  • (36)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