| Forum '+1' Add-on |
| Nzo | Date: Friday, 2009-09-04, 8:53 Am | Message # 1 |
Regular
Group: Checked
Messages: 49
Awards: 1
Reputation: 1
Status: Offline
| 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 | Date: Friday, 2009-09-04, 9:41 Am | Message # 2 |
Regular
Group: Checked
Messages: 68
Awards: 4
Reputation: 2
Status: Offline
| 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 | Date: Friday, 2009-09-04, 10:50 Am | Message # 3 |
Cookie Monster
Group: Head Mod
Messages: 5961
Awards: 61
Status: Offline
| Nzo, our uCoz programmers say - better is not to add any JS in head.
*Yawn... drools on Renatus while sleeping...*
|
|
| |
|
| Mistory | Date: Friday, 2009-09-04, 11:16 Am | Message # 4 |
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
| Quote (Dartz) Nzo, our uCoz programmers say - better is not to add any JS in head. I will bare this in mind so ive made a template backup just in case Ive tried this and at the moment it does'nt work I think. Part of Code from Appearance of entries (Line 20 to 21): Code <tr><td>[color=blue]$USER_DETAILS_ICON_BAR$[/color]</td><td align="right" style="padding-right:15px;">$ENTRY_MANAGE_ICON_BAR$</td><td width="2%" nowrap align="right">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr> </table></td></tr></table> Do you have to put the code below straight after "$USER_DETAILS_ICON_BAR$" or after the </td> or something? 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> Also, what does this code actualy do please? I dont fully understand
GamesCenter wont grow unless you register! C'mon you know you want to ~I might be a little slow. I'm getting used to the Mac
Message edited by Mistory - Friday, 2009-09-04, 11:16 Am |
|
| |
|
| Dartz | Date: Friday, 2009-09-04, 11:17 Am | Message # 5 |
Cookie Monster
Group: Head Mod
Messages: 5961
Awards: 61
Status: Offline
| Well, I didn't check the code but from coding knowledge add before </td>.
*Yawn... drools on Renatus while sleeping...*
|
|
| |
|
| Mistory | Date: Friday, 2009-09-04, 11:21 Am | Message # 6 |
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
| Ok Ive tried it. Ive seen no signs of it working though. How do I know it it's working? And what does this code actualy do please?
GamesCenter wont grow unless you register! C'mon you know you want to ~I might be a little slow. I'm getting used to the Mac
Message edited by Mistory - Friday, 2009-09-04, 11:22 Am |
|
| |
|
| Leekinz | Date: Friday, 2009-09-04, 11:43 Am | Message # 7 |
Regular
Group: Checked
Messages: 68
Awards: 4
Reputation: 2
Status: Offline
| Adds +1 Rep to the Poster.
There was once a man named Lee. He used to love taking a ***, then he found THIS!
|
|
| |
|
| Nzo | Date: Friday, 2009-09-04, 12:37 Pm | Message # 8 |
Regular
Group: Checked
Messages: 49
Awards: 1
Reputation: 1
Status: Offline
| Quote (Dartz) Nzo, our uCoz programmers say - better is not to add any JS in head. Look, I am only publicizing it...it is really upto you where to place it :P Quote (Mistory) Do you have to put the code below straight after "$USER_DETAILS_ICON_BAR$" or after the </td> or something? What does this tell you? Quote (Nzo) Now, insert the following code into 'Appearance of entries' straight after '$ USER_DETAILS_ICON_BAR $'. Also, do you try codes without know what they are? Jesus try reading the first post...It simply adds a +1 on every forum post, where other can increase the posters reputation. Simple.
NzoMedia.info
|
|
| |
|
| Leekinz | Date: Friday, 2009-09-04, 1:13 Pm | Message # 9 |
Regular
Group: Checked
Messages: 68
Awards: 4
Reputation: 2
Status: Offline
| But why do all that when you can do <a href="REPLINK"><img src="Imageof+1Link"></a>
There was once a man named Lee. He used to love taking a ***, then he found THIS!
|
|
| |
|
| Mistory | Date: Saturday, 2009-09-05, 12:12 Pm | Message # 10 |
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
| Ok Sorry. I have tried this though and it is not working for me
GamesCenter wont grow unless you register! C'mon you know you want to ~I might be a little slow. I'm getting used to the Mac
|
|
| |
|
| Nzo | Date: Sunday, 2009-09-06, 8:52 Am | Message # 11 |
Regular
Group: Checked
Messages: 49
Awards: 1
Reputation: 1
Status: Offline
| Quote (Mistory) Ok Sorry. I have tried this though and it is not working for me Follow the steps carefully, and make sure you have placed each code in the correct location. It's your error causing it to not work.
NzoMedia.info
|
|
| |
|
| Mistory | Date: Sunday, 2009-09-06, 11:05 Am | Message # 12 |
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
| Ok well, ive tried again. I followed instructions fully, it hasent worked for me so il just leave it
GamesCenter wont grow unless you register! C'mon you know you want to ~I might be a little slow. I'm getting used to the Mac
|
|
| |
|
| Nzo | Date: Sunday, 2009-09-06, 12:21 Pm | Message # 13 |
Regular
Group: Checked
Messages: 49
Awards: 1
Reputation: 1
Status: Offline
| Quote (Mistory) Ok well, ive tried again. I followed instructions fully, it hasent worked for me so il just leave it Quote (Nzo) <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> Try deleting the the last </script> tag. If this doesn't resolve it then your coding is inflicting it.
NzoMedia.info
|
|
| |
|
| Mistory | Date: Sunday, 2009-09-06, 12:50 Pm | Message # 14 |
Constant
Group: Checked
Messages: 275
Awards: 10
Reputation: 8
Status: Offline
| Ok I tried it, but it still has not worked . Thanks anyway Nzo
GamesCenter wont grow unless you register! C'mon you know you want to ~I might be a little slow. I'm getting used to the Mac
Message edited by Mistory - Sunday, 2009-09-06, 12:50 Pm |
|
| |
|
| Nzo | Date: Thursday, 2009-09-10, 3:04 Pm | Message # 15 |
Regular
Group: Checked
Messages: 49
Awards: 1
Reputation: 1
Status: Offline
| Quote (Mistory) Ok I tried it, but it still has not worked sad . Thanks anyway Nzo I'd like to help you out, if you can just provide your contents of the page 'Forum -Appearance of Entries', and I will try my best.
NzoMedia.info
|
|
| |