Finding background color of post...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X-Fan
    Senior Member
    • Jan 2002
    • 122
    • 3.0.7

    Finding background color of post...

    I'm working on a custom vB Code and I'm needing a variable that I can pass in a font color string that will make text in a post the same as the background colour of that post. Because there's two possible background colours for a given post, I need it to match the colour of the post that this new vB Code is being used in.

    Can anyone help?
    Eric J. Moreels
    ComiX-Fan Owner/Administrator
    e-mail: [email protected]
    Web: http://www.comixfan.com/xfan/
  • Chen
    Senior Member
    • Jun 2001
    • 8388

    #2
    That's not possible without hacking.

    You can however use {firstaltcolor} and {secondaltcolor} in your posts, like this:

    [color={firstaltcolor}]Blabla[/color]

    [color={firstaltcolor}]Blabla[/color]

    The only problem is that if a post is deleted, the color you used in your post won't match anymore.
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

    Comment

    • X-Fan
      Senior Member
      • Jan 2002
      • 122
      • 3.0.7

      #3
      Originally posted by FireFly
      The only problem is that if a post is deleted, the color you used in your post won't match anymore.
      Yeah, that's what I've been doing and that's the result I've been getting. I need it so that the text inbetween the custom vB Code tags matches the background of the post, no matter if its first or second alt colour.

      Is there a hack that does this or could someone create one, please?
      Eric J. Moreels
      ComiX-Fan Owner/Administrator
      e-mail: [email protected]
      Web: http://www.comixfan.com/xfan/

      Comment

      • Chen
        Senior Member
        • Jun 2001
        • 8388

        #4
        Try this:
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

        Comment

        • X-Fan
          Senior Member
          • Jan 2002
          • 122
          • 3.0.7

          #5
          Perfect! Just what I needed, thanks for pointing me in the right direction FF!
          Eric J. Moreels
          ComiX-Fan Owner/Administrator
          e-mail: [email protected]
          Web: http://www.comixfan.com/xfan/

          Comment

          Related Topics

          Collapse

          Working...