Announcement

Collapse
No announcement yet.

Postbit Legacy Text

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

  • [Forum] Postbit Legacy Text

    Hey there! I have some text I've added next to the reputation and report icons. When hovered over, the icons change color, but the text remains the same. I'd like to make it so the text has an alternate hover color as well. How would I do that with my following code?

    Code:
    <span class="postlinking">
    <vb:if condition="$show['reputationlink']">
                            <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> --><p style="color:darkgreen" class="customrep">Give Rep</p></a>&nbsp;</span>
                        </vb:if>
    
    
                        <vb:if condition="$show['reportlink']">
                            <a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> --><p style="color:darkred" class="customreport">Report Post</p></a>&nbsp;&nbsp;
                        </vb:if>
    Thanks for any assistance you guys can provide!

  • #2
    Either define the customrep class in additional.css, or drop it altogether.

    (And remove the style="color:darkgreen", you can define that in the css also)
    My Live vB5 Site - NZEating.com
    vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

    Comment


    • #3
      Alright, made a few adjustments. I'm really sorry if I'm being dense here, but I can't seem to get the hover colors to work even after making adjustments to the CSS. I've kept the "customrep" in there, removed the style from the HTML as suggested and defined that in the CSS. Here's what this section of the CSS looks like:

      Code:
      .customrep {
      color: darkgreen;
      }
      .customrep a:hover {
      color: green;
      }
      Here are the adjustments I've made to the applicable postbit_legacy code:

      Code:
      <vb:if condition="$show['reputationlink']">
                              <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" title="{vb:rawphrase add_reputation}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase add_reputation}" /> --><p class="customrep">Give Rep</p></a>&nbsp;</span>
                          </vb:if>
      My apologies again if I'm missing something obvious. Still new at some of this.

      Comment


      • #4
        It might help if you could link to a thread.

        PM me the URL if you don't want to make it public.. that looks like it should work as you have it.
        My Live vB5 Site - NZEating.com
        vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

        Comment


        • #5
          Here's an example thread: http://thedeadhamster.com/community/...ity-Guidelines

          Not sure how helpful that will be though, as you'll have to be logged in to be given the option to give rep and/or report.

          Comment


          • #6
            Any suggestions?

            (Apologies for the bump!)

            Comment


            • #7
              If you can offer a test account so we can see the rep thingy, that might help.
              My Live vB5 Site - NZEating.com
              vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

              Comment


              • #8
                Here you go:

                Username: TheDeadHamster
                Password: vbcommunity

                Comment


                • #9
                  Alrighty. Well, the little sheriff star seems to be changing colour on hover.. is that how we want the text to go as well?
                  My Live vB5 Site - NZEating.com
                  vBulletin Hosting | vBulletin Services - Need hosting for your vB? Need it installed? Something else? Let me take that hassle off your hands.

                  Comment


                  • #10
                    Originally posted by Ace View Post
                    Alrighty. Well, the little sheriff star seems to be changing colour on hover.. is that how we want the text to go as well?
                    Yes, exactly.

                    Comment

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