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 02-25-2002 12:21 PM

Bald Bouncer, try globalizing the $counter variable in the bbcodeparse2() function, then use it there to determine whether it's second or first alt color.

nuno 02-25-2002 12:41 PM

may GOD bless ya Chen
gr8 hack :)
BTW, i'm with Purple style, although when i hit reply i'm kicked to Dark Blue :confused:

mondaynightmike 02-25-2002 03:11 PM

Sorry to keep asking but can anyone help. All it says is:
quote:
This is a quote

How can i get it so it says:

quote:
Originally posted by******
This is a quote

Please help.

Admin 02-25-2002 03:28 PM

Revert your quotereply template, mondaynightmike.

mondaynightmike 02-25-2002 04:34 PM

yep works. Thanks firefly.

Mohamed 03-03-2002 01:59 AM

Thanks man

it's good hack :)

dyt4 03-03-2002 03:45 PM

great hack thx

Vivi Ornitier 03-03-2002 07:00 PM

hey Fireflu, i'm having troubles getting the colors inside the quote box to be a different color. Right now, i think it's automatic cell color and it's just the same as the cell color that I posted in. I tried editing the replacement values and such but it still doesn't work, i tried manually inserting a hex color in the {codebackground} place but still nothing, can u plz tell me what ihave to edit, the color i'm trying to insert is something like #167D24

grumpy 03-04-2002 05:02 AM

Vivi, I had the same problem. I had added the colon to the variables as in the text ,
PHP Code:

{codebackground}: 

so I removed the colon and that fixed it.

inetd 03-04-2002 05:35 PM

Quote:

Originally posted by nakkid
i would also add a br html code after the table to give more space after the table, it would be more pleasant.. but that's me ;) the perfect example is the post above. let me know firefly.
How to add br after quote, code and php?

Mr. X 03-07-2002 05:28 AM

Quote:

Originally posted by Vivi Ornitier
hey Fireflu, i'm having troubles getting the colors inside the quote box to be a different color. Right now, i think it's automatic cell color and it's just the same as the cell color that I posted in. I tried editing the replacement values and such but it still doesn't work, i tried manually inserting a hex color in the #D7D7D7 place but still nothing, can u plz tell me what ihave to edit, the color i'm trying to insert is something like #167D24
Im getting the same problem. No color changes with or without the colon character.

Also, do I paste:

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

to replace the other vb codes in Cpanel? I know Im dumb but I wanna be sure in case I fubar something, cuz right now, only quote has this most cool effect.

ice!~neko 03-07-2002 07:18 PM

Quote:

+-------------------------------------------------------------------------------------------------+
| Now run this SQL query through phpMyAdmin or Telnet/SSH |
+-------------------------------------------------------------------------------------------------+
ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT;
+-------------------------------------------------------------------------------------------------+
i dont understand any of that :(

Mr. X 03-07-2002 07:32 PM

Go into phpmyadmin if you have it, click on the database where you wanna perform the command, then copy that query into a box, and hit go.

I would put up a shot but my server is having probs at the moment so I cant go into phpmyadmin.

I dont know what the Telnet command would be though.

ice!~neko 03-07-2002 07:52 PM

ok, thanx :)

-=dm=- 03-07-2002 09:46 PM

Thanx for a cool Hack Im a BIG fan of you:)

EDIT EDIT
another question:
How do I remove this hack?

Bouddha 03-07-2002 10:37 PM

Like some others, I can't have this grey background #D7D7D7. Mine is transparent. What should I do ?

wooolF[RM] 03-07-2002 11:01 PM

][QUOTE]Originally posted by FireFly
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...]][/color]

Everything you need is in the text file, have fun. :D
I just replaced original QUOTE tag with one I found long time ago at vb.com forum:


< table border="0" align="center" width="90%" cellpadding="3" cellspacing="1" bgcolor="#a0a0a0" style="font: xx-small" >< tr >< td >< b >Quote:< /b >< /td >< /tr >< tr >< td class="quote" >{ param }< /td >< /tr >< /table >

Mr. X 03-07-2002 11:33 PM

I did that too, but the table border is too thick, and I had some problems with quoting in general. This hack works better imo, the only problem Im having is no backround coloring.

Mr. X 03-08-2002 05:46 AM

bump

Admin 03-08-2002 12:08 PM

What's the problem Mr. X? Not sure I find your post about it... :)

Mr. X 03-08-2002 07:47 PM

Quote:

Originally posted by Vivi Ornitier
hey Fireflu, i'm having troubles getting the colors inside the quote box to be a different color. Right now, i think it's automatic cell color and it's just the same as the cell color that I posted in. I tried editing the replacement values and such but it still doesn't work, i tried manually inserting a hex color in the #D7D7D7 place but still nothing, can u plz tell me what ihave to edit, the color i'm trying to insert is something like #167D24
Its basically the same with Vivi. I added the hack, but the boxes dont become a different color. I added the replacement values, but it doesnt seem to do anything. See attachment for what Im getting at.

Also, im not sure if its supposed to be like this, but if I quote a post that has a quote, I only get the text quoted, not the original quote. Nesting I think its called? Its in the shot.

And lastly, do I replace the other vB code for things like PHP etc?

Mr. X 03-08-2002 08:17 PM

Oh, when I quote and quote again in a PM, I see both quotes, so it works dandy there. Hmm.

psico 03-08-2002 11:38 PM

The problem is this line in functions.php this changed with version 2.2.3b:
PHP Code:

    $bbcode=str_replace("{""{"$bbcode); // stop people posting replacements in their posts 

so comment this line with "//"...
If anyone know how to avoid this please let me know...

bye!

Admin 03-09-2002 04:52 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=35894" target="_blank">https://vborg.vbsupport.ru/showt...threadid=35894</a>

dezoris 03-10-2002 03:13 AM

can you run this from the sql query hack you made for the admin CP? Because I have no clue as to how to do it from, Telnet?

| Now run this SQL query through phpMyAdmin or Telnet/SSH |
+-------------------------------------------------------------------------------------------------+
ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT;

inetd 03-10-2002 03:19 AM

dezoris, install this hack (by FireFly) for run sql query from Admin CP

dezoris 03-10-2002 05:41 AM

Quote:

Originally posted by inetd
dezoris, install this hack (by FireFly) for run sql query from Admin CP
That is all I have to do is run that line
ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT; in the query box ?

inetd 03-10-2002 10:00 AM

yes, without ;

dezoris 03-10-2002 10:25 AM

Results of query ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT
--------------------------------------------------------------------------------

Warning: Supplied argument is not a valid MySQL result resource in /usr/www/users/dezoris/hondalife/forum/admin/query.php on line 24
Query executed successfully!

Thats what I get

SWFans.net 03-10-2002 08:11 PM

I’m curious if there is someway to make the box’s (td bgcolor) alternate oppositely of the first and second alt colors for tables?

Example: In a thread the background for each postbit alternates between the two colors chosen for the replacement variables firstaltcolor and secondaltcolor. I think it would be cool to have these boxes alternate in the opposite, so that in a post with the firstaltcolor as its BG, the box inside it displays the secondaltcolor.

Admin 03-11-2002 11:17 AM

Be sure to bump this thread in about 3 days so I can do what you asked for, SWFans.net.

NoAhBoDy 03-12-2002 01:57 PM

Has anybody experienced problems with Netscape 6.2 and this hack?? I have a user on my board using Netscape 6.2 and after installing the hack, any code post is now triple spaced. If he uses IE, it's fine.

Thanks in advance.

SWFans.net 03-14-2002 09:36 AM

Bumps the topic with hopes Firefly has time to make the additional code requirements for his request. :)

Admin 03-14-2002 10:03 AM

Thanks, I'll take a look at this later today. :)

Kyomu 03-18-2002 06:07 PM

*shamelessly bumps*

Remi 03-24-2002 10:05 PM

FireFly

The quote table is not working for me because I have added the word "table" to the censortext :o

The PHP and Code tables are fine.

Is there any way I can use this hack while keeping the word "table" in the censoredtext

Mr. X 03-25-2002 12:50 AM

ahem. :)

still trying to figure out what else to do.

Admin 03-25-2002 04:45 AM

Mr. X, send me by PM your functions.php and I'll take a look. :)

Bieddos 04-05-2002 11:59 AM

A question :)
I want to install the only quote box (not php, code table)...
What i must do?

Ordovicium 04-05-2002 12:03 PM

My first installation was on 2.2.0 an it worked. But now on 2.2.5...........No Colors :confused:

Plz help, I love this hack.


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.01434 seconds
  • Memory Usage 1,819KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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