![]() |
Change vBCode color
How is this done? I've been told I'd have to edit functions.php, but what line and where? Anyone know? I need it to default to white, or something besides black anyway. :confused:
|
BUMP
|
What color are you talking about?
|
1 Attachment(s)
The color of the default text, when I use the Code button in a post. It defaults to black, so it seems.
|
1 Attachment(s)
See, unless you add a color tag, it looks like nothing on a black background. If you could direct me to where I can change that, I'd be much obliged. :)
|
Bump! :p
|
for the code tags, just add in a html color code <font color=red> </font> in the vB Code replacement field
and then they do [code] xxxx [ /code] the color would be set automatically |
Ok, thanks. But where exactly do I add that color tag? Templates? That's what I can't seem to find. I can't seem to find anything about it, or I don't know what to look for. :nervous: :paranoid:
|
Custom vB Codes under adminCP
i changed my quote tag to do this very thing unless that [code] tag is internal, it should show up there if not, somone with more knowledge will have to help |
Yeah, it's not under custom codes. It's hidden elsewhere, I suppose. Anyone? :cross-eyed:
|
bump :dead:
|
admin/functions.php:
PHP Code:
|
Thanks! I'll look for it.
|
Ok, sorry....I'm a bit in the dark here. What do I need to change in that line?
|
Change the first <normalfont> to <normalfont color=red> or whatever you want it to be.
|
Nope, I'm doing something wrong then. No matter where I add the "color=red", it still shows as black. :(
|
Doesn't regular HTML help either?
<font color="#FF0000"> </font> |
From memory, the code in functions for the quote vBCode occurs TWICE. Make sure you make the changes for BOTH times the quote code appears.
|
Man, I did change it in both places. I tried the smallfont and also the normalfont. No change. It just stayed black. Can you give me a working example? :paranoid: I'd use normal html, but I'm not sure where to put it, or what to replace. :surprised:
|
And you're sure you don't have a custom vBCode setup for quote in your Admin CP that may be interfering? When I say both places, they are in 2 very different places in functions php, not the ones that are side by side.
|
Oh, well....I changed it in the two that are listed above.....just those two lines. I'm no code guru, so I don't exactly know what I'm looking for here. I've edited quite a few things, but this one has me baffled. :surprised: It's not that important, really. It just bugs me that you have to use a damn color tag to change it from black. :(
|
Bump....exact line refs would be much appreciated.
|
Bump! :(
|
Bump! Supposedly, this requires php hacking, according to vB. No one knows the answer? :(
I'm assuming, since the vbcode color doesn't appear to be in the html, that I'll actually have to define the color of the $vbcode variable somewhere in the php. |
Bump
|
Somebody has to know where this can be changed. Once again, I ask....where can I change the default
Code:
code https://vborg.vbsupport.ru/attachmen...&postid=284167 |
Can one of you gurus take a second and help me out here? This has gone unsolved since 06/2002, when I first started asking about it at vb.com. :confused: I'm going to make the jump from asking to pleading and begging now. Please! Oh please! :nervous:
|
I know no one likes impatient people, but it's been almost a year, so BUMP.
|
Bump
|
Bump
|
Enough with the bumps already.
Look for this: // ###################### Start stripbrsfromcode ####################### and find the normalfont section in that function and modify it to your heart's content. |
Ok, thanks for replying. And sorry about all the bumps. It's tough not knowing php. :(
Is there anything I need to know about tags in php? Someone in another thread was saying it had to be something like this: Code:
<font color=\"red\"> [edit] It worked!! WOOOHOOOOO!!! Thank you so much! I'd give ya a big hug if I could. :D If there's anything I can do for ya, just ask. ;) But I found out something rather strange. Maybe you can help explain this one. I was convinced that the code font color couldn't be changed without hacking, until now. This makes no sense at all. I was talking to another vB admin, and she said that that particular text color changes when custom styles/templates are used. Her code color defaults to white, and she has no idea why....since she never hacked that line. That would mean it can't possibly be in functions.php, correct? I mean, templates can't change php code, correct? Do you think there's some easier way to change it? I'd assume there's a template or style that can be changed, in light of this new info. |
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|