uCoz Community » uCoz Modules » Forum » Thanks button in forum (guide)
Thanks button in forum
HorseIsleSense
Posts: 93
Reputation: 0

Message # 16 | 1:40 AM
Animorph, Natashko said it was not possible to change it so you just have to click that button and the reputation/thanks goes up, but her explanation was how to change the word Reputation to "Thanks"

Our answers are on different things, and different answers.

Natashko
Posts: 3366
Reputation: 171

Message # 17 | 10:34 AM
HorseIsleSense, truth be told your post confused me a little. All I was saying is that it is not really possible to make reputation goes up only by clicking the word Thanks.
12a3
Posts: 90
Reputation: 0

Message # 18 | 5:52 AM
now : http://i354.photobucket.com/albums/r412/vietnam11399/-.png

i want to change: http://i354.photobucket.com/albums/r412/vietnam11399/thank.png

please help me ,thanks you very much


Welcome to : http://softvn.mooo.com
CodeResolution
Posts: 1570
Reputation: 58

Message # 19 | 8:24 AM
I made some buttons for your thank button. I'll help you with the scripts later.

Attachments: 1284158.png (5.6 Kb) · 0959050.png (5.0 Kb)

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Animorph
Posts: 2856
Reputation: 189

Message # 20 | 9:36 AM
12a3, go to CP ---> Design ---> Design management (templates) ---> Forum ---> Appearance of entries --->

Find:

Code
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>$USER_DETAILS_ICON_BAR$</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>

Replace by:

Code
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>$USER_DETAILS_ICON_BAR$</td><td align="right" style="padding-right:15px;"><?if($DO_REP_URL$)?>  <a class="reputationDo" title="Change reputation" href="$DO_REP_URL$"><img src="your image" Title="say thanks" border="0" /></a></div><?endif?>$ENTRY_MANAGE_ICON_BAR$</td><td width="2%" nowrap align="right">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr>
</table></td></tr></table>


Note: don't forget to put your image in here:

Code
<img src="your image" Title="say thanks" border="0" />

To busy building a passive income online ;)
12a3
Posts: 90
Reputation: 0

Message # 21 | 12:20 PM
Quote (Animorph)
I made some buttons for your thank button. I'll help you with the scripts later.

Attachments: 1284158.png(6Kb) · 0959050.png(5Kb)

Creative Collusions is a web & design service based in Yorkshire, England. Almost 5 years experience with uCoz!


Quote (Animorph)
12a3, go to CP ---> Design ---> Design management (templates) ---> Forum ---> Appearance of entries --->
Find:
Code
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>$USER_DETAILS_ICON_BAR$</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>
Replace by:
Code
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td>$USER_DETAILS_ICON_BAR$</td><td align="right" style="padding-right:15px;"><?if($DO_REP_URL$)?>  <a class="reputationDo" title="Change reputation" href="$DO_REP_URL$"><img src="your image" Title="say thanks" border="0" /></a></div><?endif?>$ENTRY_MANAGE_ICON_BAR$</td><td width="2%" nowrap align="right">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr>
</table></td></tr></table>

Note: don't forget to put your image in here:
Code
<img src="your image" Title="say thanks" border="0" />

thanks for your help. i'm very grateful flower


Welcome to : http://softvn.mooo.com
VZ
Posts: 189
Reputation: 3

Message # 22 | 4:39 AM
i have this and the whole script but it wont work
Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them.
HellorHeaven
Posts: 31
Reputation: -2

Message # 23 | 6:49 AM
There Is No Such Feature. But You Can Use Reputation As Alternative For Thank You.

Try Using Like Below :

Quote
<?if($DO_REP_URL$)?><a class="reputationDo" title="Give Thank You" href="$DO_REP_URL$"/><img src="http://s101.ucoz.net/img/icon/thumbu.png"<?endif?>

Hope It'll help


Please Give Me A Reputation or Award, If My Post Helps You
With uCoz Since 2009
Natashko
Posts: 3366
Reputation: 171

Message # 24 | 10:23 AM
VZ,
Quote (VZ)
i have this and the whole script but it wont work

Unfortunately, we do not provide help with custom coding so you have to figure that out on your own. I might suggest you use Reputation for this, but change its name into Thank you. Go to CP->Main » Deign->Design management->Forum->appearance of entries->find "Reputation" and substitute with "Thanks"->Save
See more about it here http://forum.ucoz.com/forum/7-3293-1#14958
VZ
Posts: 189
Reputation: 3

Message # 25 | 11:42 PM
yea thats what im using but it doesnt working it opens then clossess

Heres the code at the bottom

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_TITLE$" ($FILE_URL$)'
  clearInterval(ajaxtime);}}}}
  </script>
<a class="button" title="Если вам понравился этот материал, вы можете отблагодарить пользователя $USER$, повысив ему репутацию. Многократное повышение репутации запрещено!" href="javascript://" onclick="openLayerB('Rd',0,'http://ridnaykpaina.at.ua/index/23-$USER_ID$','Change Reputation',380,200,1);repchange('plus','26668');return false;"><span>Сказать спасибо $USER$!</span></a>

Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them.
Natashko
Posts: 3366
Reputation: 171

Message # 26 | 4:06 PM
VZ, add this:

at the Page with entry full text and its comments after $MESSAGE$
SDMTEAM
Posts: 84
Reputation: 0

Message # 27 | 9:07 AM
Quote (Natashko)
VZ, add this:


I have Use the Code after $MESSAGE$
BUT NOT WORK ONE WINDOWS POP POP-UP BUT NOT ADD THE reputation POINT

lOOK THIS CODE

Code
<table class="postTable" border="0" cellpadding="2" cellspacing="1" width="100%">
<tbody><tr><td class="postTdTop" align="center" width="23%"><a class="postUser" href="javascript://" rel="nofollow" onclick="emoticon('[b]$USERNAME$[/b],');return false;">$USERNAME$</a></td><td class="postTdTop"><?if($AWARDS_DO_URL$ && $USER_LOGGED_IN$ && $CUR_USER_ID$!=$UID$)?><div style="float: right;"><a href="javascript://" rel="nofollow" onclick="new _uWnd('AwD','Give award',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-28-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'});return false;"><img alt="" src="http://s44.ucoz.net/img/icon/thumbu.png" title="Good post" border="0" width="13"></a> <a href="javascript://" rel="nofollow" onclick="new _uWnd('AwD','Give award',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-47-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'});return false;"><img alt="" src="http://s44.ucoz.net/img/icon/thumbd.png" title="Bad post" border="0" width="13"></a></div><?endif?>Date: $WDAY$, $DATE$, $TIME$ | Message # $NUMBER$</td></tr>
<tr><td class="postTdInfo" valign="top">
<?if($AVATAR_URL$)?><img alt="" title="$USERNAME$" class="userAvatar" src="$AVATAR_URL$" border="0"><?endif?><?if($USER_TITLE$)?><div class="postRankName">$USER_TITLE1$</div><?else?><div class="postRankName">$USER_RANK_NAME$</div><?endif?>

<?if($GROUP_ICON$)?><div class="postRankIco">$GROUP_ICON$</div><?else?><div class="postRankIco">$USER_RANK_ICON$</div><?endif?>
<?if($GROUP_NAME$)?><div class="postUserGroup">Group: $GROUP_NAME$</div><?endif?>
<?if($POSTS$)?><div class="numposts">Messages: <span="unp">$POSTS$</span="unp"></div><?endif?>
<?if($AWARDS_READ_URL$)?><div class="Thanks">Awards: <a href="$AWARDS_READ_URL$" title="List of awards"><span class="repNums"><b>$AWARDS$</b></span></a> <?if($AWARDS_DO_URL$)?> <a href="$AWARDS_DO_URL$"><span style="font-size: 10pt;" title="Give award"><b>+</b></span></a><?endif?><?endif?>
<?if($READ_REP_URL$)?><div class="Thanks">Thanks: <a title="View Thanks history" class="repHistory" href="$READ_REP_URL$"><b>$REP_RATING$</b></a> <?if($DO_REP_URL$)?>  <a class="ThanksDo" title="Change Thanks" href="$DO_REP_URL$"><span style="font-size: 10pt;"><b>±</b></span></a></div><?endif?><?endif?>
<?if($READ_BAN_URL$)?><div class="userBan">Reproofs: <a class="banPercent" title="View reproofs history" href="$READ_BAN_URL$">$BAN_RATING$</a> <?if($DO_BAN_URL$)?>  <a title="Change reproofs level" class="banDo" href="$DO_BAN_URL$">±</a></div><?endif?><?endif?>
<?if($USER_STATUS$)?><div class="statusBlock">Status: $USER_STATUS$</div><?endif?>
<?if($GROUP_ID$)?> <?else?><br><br><br><br><br><?endif?>
</div></td><td class="posttdMessage" valign="top">$MESSAGE$
<style type="text/css">
.postSubmit {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #4eaec8;
color: #ffffff;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postSubmit:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #3e7394;
color: #f3f3f3;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;

</style>
<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='Thank you for «$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$','Give award',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', 'Have award for «$ENTRY_NAME$»'); document.getElementById('submfrm735').click(); document.getElementById('sbm735').onclick=''; clearInterval(openafter);}}}}</script>
<a 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="Increase reputation $USER$ for this entry"></a> <input type="button" class="postSubmit" onclick="megobytenagr();" value="Give award $USER$ for this entry"></div></center>
<?if($ATTACHMENT$)?> <div class="eAttach" align="left">Attachments: $ATTACHMENT$</div><?endif?>
<?if($SIGNATURE$)?><br><hr class="signatureHr" size="1" align="left" width="150"><span class="signatureView">$SIGNATURE$</span><?endif?>
<?if($EDITEDBY$)?><br><br><div class="edited">Message edited by $EDITEDBY$</div><?endif?></td></tr>
<tr><td class="postBottom" align="center"><?if($USER_IP$)?><div class="postip">[ <a class="postIpLink" href="http://www.ripe.net/perl/whois?$USER_IP$" target="_blank">$USER_IP$</a><?if($POST_COUNTRY_ID$)?> (<a href="javascript://" rel="nofollow" onclick="prompt("","$POST_COUNTRY$");return false;">$POST_COUNTRY_ID$</a>)<?endif?> ]</div><?else?> <?endif?></td><td class="postBottom">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td>$USER_DETAILS_ICON_BAR$</td><td style="padding-right: 15px;" align="right">$ENTRY_MANAGE_ICON_BAR$</td><td nowrap="nowrap" align="right" width="2%">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr>
</tbody></table></td></tr></tbody></table>
VZ
Posts: 189
Reputation: 3

Message # 28 | 7:10 PM
heres the code i got
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_TITLE$" ($FILE_URL$)'
     clearInterval(ajaxtime);}}}}
     </script>
<a class="button" title="Если вам понравился этот материал, вы можете отблагодарить пользователя $USER$, повысив ему репутацию. Многократное повышение репутации запрещено!" href="javascript://" onclick="openLayerB('Rd',0,'http://ridnaykpaina.at.ua/index/23-$USER_ID$','Change Reputation',380,200,1);repchange('plus','26668');return false;">Сказать спасибо $USER$!</a>

also its russian
sorry repeated
also i dont want thank you on awards.

Added (2011-06-04, 1:10 PM)
---------------------------------------------

Quote (VZ)
VZ, add this:
Code
<style type="text/css">
.postSubmit {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #4eaec8;
color: #ffffff;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;
}
.postSubmit:hover {
border: 0px;
padding: 5px;
text-align: center;
font-size: 10px;
margin: 0px;
width: auto;
background: #3e7394;
color: #f3f3f3;
cursor: pointer;
letter-spacing: 0px;
font-family: verdana;

</style>
<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='Thank you for «$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$','Give award',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', 'Have award for «$ENTRY_NAME$»'); document.getElementById('submfrm735').click(); document.getElementById('sbm735').onclick=''; clearInterval(openafter);}}}}</script>
<a 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="Increase reputation $USER$ for this entry"></a> <input type="button" class="postSubmit" onclick="megobytenagr();" value="Give award $USER$ for this entry"></div></center>

at the Page with entry full text and its comments after $MESSAGE$

it doesnt work it opens then closess

Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them.
Post edited by VZ - Saturday, 2011-06-04, 7:02 PM
Natashko
Posts: 3366
Reputation: 171

Message # 29 | 1:49 PM
VZ,
Quote (VZ)
it doesnt work it opens then closess

Please describe the problem with more details, if it is still topical. Specify your actions step by step, so we will understand what the problem is.
SDMTEAM
Posts: 84
Reputation: 0

Message # 30 | 6:36 AM
Quote (Natashko)
VZ,
Quote (VZ)
it doesnt work it opens then closess

Please describe the problem with more details, if it is still topical. Specify your actions step by step, so we will understand what the problem is.


Yes Same Problem to me
uCoz Community » uCoz Modules » Forum » Thanks button in forum (guide)
Search: