![]() |
go to: Custom vB Codes in your admin cp
click on "add" next: vB Code tag --> quote vB Code replacement --> <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><smallfont><b>quote:</b></smallfont></td><td align="right"><smallfont>(double click the code to copy it)</td></tr><tr><td colspan="2" ondblclick='javascript:window.clipboardData.setDat a("Text", this.innerText); alert("Code copied to the clipboard. You can paste it now.");' style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};">{param}</td></tr></table> vB Code example --> Quote:
vB Code explanation The quote tag is used to denote a quote from another post Use {option} ? No does it make sence to you? |
thanx man that made perfect sence to me :) thanx very much :)
|
no prob, is it all working now?
|
yep all working so far -- but im good at screwing things up :(
*which im not proud about* thanx again man :) |
[QUOTE]Originally posted by Allstar DC
In the Admin CP, goto Modify under Custom vB Codes and click [edit] next to the Quote:
when i put this in all i see is this for the quote --> < there is no text displayed? |
Quote:
|
i cant get either one to work.. dont know what i did wrong but can someone tell me step by step everything to this hack - starting from the admin/funtions.php?
i know im asking alot but maybe 1 day i will be able to return the favor :) thanx guys |
boofo: you need to have it in your replacement variable anyway, to make the [php:] and [code:] functions work
the line i posted is working for me |
aspire007:
in functions.php find: Code:
return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>"; Code:
return "</normalfont><table border=\"0\" align=\"center\" width=\"90%\" cellpadding=\"3\" cellspacing=\"1\"><tr><td><smallfont><b>PHP:</b></smallfont></td><td align=\"right\"><smallfont>(double click the code to copy it)</smallfont></td></tr><tr><td colspan=\"2\" 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>"; Now run this SQL query through phpMyAdmin or Telnet/SSH Code:
ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT; Code:
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td><smallfont><b>quote:</b></smallfont></td><td align="right"><smallfont>(double click the code to copy it)</td></tr><tr><td colspan="2" ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("Code copied to the clipboard. You can paste it now.");' style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: #EEEEFF; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #1D6AA0;">{param}</td></tr></table> Replacements > Add and enter the following information: Code:
Code to find: {codebackground } ///without the spaces Code:
Code to find: {codefontcolor } ///without the spaces Code:
Code to find: <td colspan="2" thats it! |
Quote:
|
lol, the board was messing up my code
when i typed this {codefontcolor } without the spaces in my code it just changed it here to #EEEEFF i edited it now and it should be ok now btw those codes are not mine!! i just quoted those from FireFly's instructions, |
btw boofo, yes you can do that too, but than you have to change evrything seperatly , with those 2 lines its easier.
it will automaticly replace all the colors where the {codefontcolor } code is used |
NOW it makes more sense with the codefontcolor there. :) That is basically the same thing I am using, just the quote box I did a little different.
|
haha, i forgot that vbb turned that code into color code when posting it
|
great hack !
THX for work regards |
Hmm, wierd, i installed this exsactly how it said, and i used firfly's fix for it but when i double click on it i get a javascript error "Invalid FORMATECT structure" yet when my freind tried it, it worked, i have the newest version od internet explorer, when i installed this on my old board, it worked just fine.
|
i have a problem :(
between the <pres are always linebreaks it looks like line space Code Text space line how can i remove the spaces between the <pre? |
:alien:
|
PHP Code:
|
All times are GMT. The time now is 01:10 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|