PDA

View Full Version : BBCode with colorchange depending on style?


Vierie
04-03-2005, 07:02 PM
Hi,

I've got two different styles for my users to choose from. One of them is dark, the other one light. My moderators are using something like *Mod* ... *Mod* to show that they are moderating not writing as normal users at that moment. The problem is, that, depending on the style, the text is very difficult to read. Is there a possibility to create a bbcode which changes the color of the text depending on the style?

Thanks,

Vierie

Marco van Herwaarden
04-04-2005, 07:39 AM
I think you could achieve this with the conditional bb code hack as listed in my signature.

Vierie
04-04-2005, 09:43 AM
I think you could achieve this with the conditional bb code hack as listed in my signature.

Problem is, I don't think, I know enough php to code that myself. How would I check, which style is selected?

Marco van Herwaarden
04-04-2005, 09:45 AM
The style you can find in $bbuserinfo['styleid']

Vierie
04-04-2005, 12:25 PM
The style you can find in $bbuserinfo['styleid']

Would it be possible to change the normale [color]-code to display a different color, too?

Zachery
04-04-2005, 01:28 PM
Would it be possible to change the normale [color]-code to display a different color, too?
bbcode with a replacement setup in the style manager.