Kodu var likt kur grib File catalog, Jaunumi utt. Dodamies CP - File catalog - Page with full entry text anc asociated comments - un aiz koda $MESSAGE$ Liekam šo skriptu:
Code
<script type="text/javascript">
function repchange(val,id){
repval=val;
ajaxtime=setInterval('checkajax'+id+'()',500);}
</script>
<script type="text/javascript">
function checkajax26668(){
forms=document.getElementsByTagName('form');
for(f=0;f<forms.length;f++){
if(forms[f].id=='frm981'){
if(repval=='plus'){document.getElementById('a2').checked='true';
forms[f].reason.value='Благодарю за «$ENTRY_NAME$»'
document.getElementById('submfrm981').click();
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}}}}
</script>
<center><script type="text/javascript"> function megobytenagr() {openLayerB('Rd',0,'$HOME_PAGE_LINK$/index/55-$UID$','Вручить награду',380,200,1); usersearch('megobyte','38');} function usersearch(vaal,id){thisvalue=vaal; openafter=setInterval('lol'+id+'()',500);} function lol38(){forms=document.getElementsByTagName('form'); for(f=0;f<forms.length;f++){if(forms[f].id=='frm735'){if(thisvalue=='megobyte'){$("input[@type='text']").attr('value', 'Лови награду за «$ENTRY_NAME$»'); document.getElementById('submfrm735').click(); document.getElementById('sbm735').onclick=''; clearInterval(openafter);}}}}</script>
<a title="Lietotājam reputācija automātiski paaugstināsies.. " href="javascript://" onclick="openLayerB('Rd',0,'$HOME_PAGE_LINK$index/23-$UID$','Change Reputation',380,200,1); return false;"><br> <input type="button" class="postSubmit" onclick="repchange('plus','26668');" value="Paaugstināt reputāciju ''$USER$'' par šo filmu!"></a> <input type="button" class="postSubmit" onclick="megobytenagr();" value="Iedot balvu ''$USER$'' par filmu"></div></center>
Iznākums:
Ja noderēja palielini reputāciju. :)Pievienots (03.12.2011, 6:14 AM)
---------------------------------------------
P.s šo tēmu lūgums izdzēst. Skripts neejošs. neiedod ne rep, ne dāvannas. :(