Page 1 of 11
Forum moderator: bigblog 
uCoz Community » For Webmasters » Custom Solutions » Hide reputation "action"
Hide reputation "action"
Ken_D
Posts: 51
Reputation: 0

Message # 1 | 7:13 PM
Hello,
Is it possible to hide reputation "action" form?
this - http://image.prntscr.com/image/9ca9124094bd4d159a38d99fc67f0e58.png

I would love to see it like this when you click - add reputation - http://image.prntscr.com/image/a5c47bc6112e408581f60c04032eacda.png
bigblog
*boops*
Posts: 1472
Reputation: 71

Message # 2 | 8:30 PM
Ken_D, to hide the first field set from the window, use this code:

Code
form#frm981 div fieldset:nth-child(1) {
    display: none;
}


Unfortunately, by using this, you will be unable to choose if you want to increase the reputation, decrease it, or do nothing (it's "do nothing" by default). I couldn't find a solution for this at the moment, but I will try to find one later this week.

hey i'm joe, please don't call me on my real name because you're gonna misspell or mispronounce it and it drives me nuts
Ken_D
Posts: 51
Reputation: 0

Message # 3 | 8:48 PM
bigblog, Thanks alot!
I actually found a script to that.
Here's buttons to add or decrease reputation - http://image.prntscr.com/image/ba8a92c966a14841a47e14fe3c76db0c.png
and when you click on them, it automatically chooses what to do: http://image.prntscr.com/image/06b8943fd6cf48ebbfa93feac95efb13.png

If anyone needs it: (P.S. its in russian, you have to translate it by yourself)
Code
<?if($_REP_DO_URL$)?><a style="color:#fff;" title="Повысить репутацию" href="javascript://" rel="nofollow" onclick="new _uWnd('Повысить репутацию пользователю',' ',400,250,{modal:true,autosize:1,maxh:300,minh:100,closeonesc:1,oncontent:function(){$('#a2' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .click();$('fieldset:contains(\'Действие\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .hide();$('fieldset:contains(\'Комментарий\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .css('border','0px solid #32CD32' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ;$('fieldset:contains(\'Комментарий\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> legend b' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .css('color','#228B22' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .html('<span class=\'f_rep_ajaxs text_115 bold\'>Положительный комментарий</span><input type=\'hidden\' name=\'ref\' value=\''+location.href+'\' />' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> }},{url:'/index/23-$_USER_ID$'});return false">Raise reputation</a> / <a style="color:#fff;" title="Понизить репутацию" class="repa_AM" href="javascript://" rel="nofollow" onclick="new _uWnd('Понизить репутацию пользователю',' ',400,250,{modal:true,autosize:1,maxh:300,minh:100,closeonesc:1,oncontent:function(){$('#a1' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .click();$('fieldset:contains(\'Действие\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .hide();$('fieldset:contains(\'Комментарий\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .css('border','0px solid #B22222' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> ;$('fieldset:contains(\'Комментарий\' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> legend b' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .css('color','#B22222' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> .html('<span class=\'f_rep_ajaxs text_115 bold\'>Отрицательный комментарий</span><input type=\'hidden\' name=\'ref\' value=\''+location.href+'\' />' <img src="/.s/sm/1/wink.gif" border="0" align="absmiddle" alt="wink" /> }},{url:'/index/23-$_USER_ID$'});return false">Decrease reputation</a><?endif?>
uCoz Community » For Webmasters » Custom Solutions » Hide reputation "action"
Page 1 of 11
Search: