Announcement

Collapse
No announcement yet.

Underline Links Only in User Posts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Underline Links Only in User Posts

    Hey everyone,
    I have set the text-decoration to none to prevent underlining of any links on a forum I administrate. Is there a way to have links only in user posts underlined automatically though?

    Thanks!
    Kirupa

  • #2
    I tried having the undelines on in the CSS for First and Second Alternating color, but unfortunately those tags are also used on the forumhome pages also, so the text in other areas are underlined also

    Should I just go into the template and edit the post_bit templates by adding an extra div tag that overrides the TEXT-DECORATION: none tag?

    Comment


    • #3
      I suppose you could turn off underlines everywhere else and at the top of your postbit template add

      <style type="text/css">
      a { text-decoration: underline; }
      </style>

      .. So it only effects that one page?

      .. Would that even work.? X.x

      Comment


      • #4
        Thanks for the tip jamesyfx. It didn't work unfortunately

        Comment


        • #5
          In postbit and/or postbit_legacy, find
          Code:
          		<!-- message -->
          		<div>$post[message]</div>
          		<!-- / message -->
          and replace it with
          Code:
          		<!-- message -->
          		<div class="postbitmessage">$post[message]</div>
          		<!-- / message -->
          Then, in Main CSS, at the bottom of the extra CSS, add
          Code:
          div.postbitmessage a,div.postbitmessage a:link,div.postbitmessage a:visited,div.postbitmessage a:active,div.postbitmessage a:hover {text-decoration:underline;}
          http://www.zelaron.com/sigs/rotsig.gif

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X