Ignore:
Timestamp:
Apr 28, 2006, 6:37:28 AM (18 years ago)
Author:
rvelices
Message:

bug 359: transform rating html A links to FORM because some bots rate
pictures (even if rel="nofollow" is set)

Location:
branches/branch-1_6/template/yoga
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/template/yoga/image.css

    r1254 r1285  
    108108}
    109109
     110.rateButton, .rateButtonSelected {
     111  background-color:transparent;
     112  padding:0;
     113  border:0;
     114}
     115
     116.rateButton {
     117  cursor: pointer;
     118}
     119
     120.rateButtonSelected {
     121  color:inherit;
     122  font-weight:bold;
     123  font-size:120%;
     124}
     125
    110126#comments {
    111127    text-align: left;
  • branches/branch-1_6/template/yoga/picture.tpl

    r1265 r1285  
    154154
    155155<!-- BEGIN rate -->
    156 <p>
    157 {rate.SENTENCE} :
     156<form action="{rate.F_ACTION}" method="post">
     157<div>{rate.SENTENCE} :
    158158<!-- BEGIN rate_option -->
    159 {rate.rate_option.SEPARATOR} <a href="{rate.rate_option.URL}" rel="nofollow" {TAG_INPUT_ENABLED}>{rate.rate_option.OPTION}</a>
     159{rate.rate_option.SEPARATOR}
     160<!-- BEGIN my_rate -->
     161<input type="button" name="rate" value="{rate.rate_option.OPTION}" class="rateButtonSelected" />
     162<!-- END my_rate -->
     163<!-- BEGIN not_my_rate -->
     164<input type="submit" name="rate" value="{rate.rate_option.OPTION}" class="rateButton" />
     165<!-- END not_my_rate -->
    160166<!-- END rate_option -->
    161 </p>
     167</div>
     168</form>
    162169<!-- END rate -->
    163170
  • branches/branch-1_6/template/yoga/theme/clear/theme.css

    r1175 r1285  
    5454
    5555/* links */
    56 A {
     56A, .rateButton {
    5757    color: #005e89;
    5858    background: transparent;
  • branches/branch-1_6/template/yoga/theme/dark/theme.css

    r1198 r1285  
    8484
    8585/* links */
    86 A {
     86A, .rateButton {
    8787  color: #FFFFFF;
    8888}
Note: See TracChangeset for help on using the changeset viewer.