• Page 1 of 1
  • 1
Archive - read only
uCoz Community » Archives » Archive » Forum '+1' Add-on
Forum '+1' Add-on
Nzo
Posts: 25
Reputation: 1

Message # 1 | 2:53 PM
This script automatically puts '+1' for reputation on every forum comment.

Preview:
Please note the blue underlining are there for illustration purposes.

URL: http://img515.imageshack.us/img515/9531/67054864.png
Dartz: We will obey our image rule. Please not that in the future.

Code:

In 'General appearances of forum pages' insert the following code between the :

Code
<script type="text/javascript">"jsContainer">"jsCode"> <script type="text/javascript">
function repchange(val,id){ function repchange (val, id) (
repval=val; repval = val;
ajaxtime=setInterval('checkajax'+id+'()',500);} ajaxtime = setInterval ( 'checkajax' + id +'()', 500);)
"htmContainer"></script> </ script>

Now, insert the following code into 'Appearance of entries' straight after '$ USER_DETAILS_ICON_BAR $'.

Code
<script type="text/javascript">"jsContainer">"jsCode"> <script type="text/javascript">
function checkajax$ID$(){ function checkajax $ ID $ () (
forms=document.getElementsByTagName('form'); forms = document.getElementsByTagName ( 'form');
for(f=0;f<forms.length;f++){ for (f = 0; f <forms.length; f + +) (
if(forms[f].id=='frm981'){ // by Ezdi if (forms [f]. id == 'frm981') (/ / by Ezdi
if(repval=='plus'){document.getElementById('a2').checked='true'; if (repval == 'plus') (document.getElementById ( 'a2'). checked = 'true';
forms[f].reason.value='+1'; forms [f]. reason.value = '+1';
document.getElementById('submfrm981').click(); document.getElementById ( 'submfrm981'). click ();
document.getElementById('sbt981').onclick=null; document.getElementById ( 'sbt981'). onclick = null;
clearInterval(ajaxtime);}}}} clearInterval (ajaxtime );}}}}
"htmContainer"></script>

Now your done :)


NzoMedia.info

Leekinz
Posts: 36
Reputation: 2

Message # 2 | 3:41 PM
Nzo, you should add an explanation on how to edit the +1
There was once a man named Lee. He used to love taking a ***, then he found THIS!
Dartz
Posts: 1931

Message # 3 | 4:50 PM
Nzo, our uCoz programmers say - better is not to add any JS in head.
[... With uCoz since December 2 2007 ...]
Dartz
Posts: 1931

Message # 4 | 9:05 PM
If you need any clean up, PM me.
[... With uCoz since December 2 2007 ...]
uCoz Community » Archives » Archive » Forum '+1' Add-on
  • Page 1 of 1
  • 1
Search: