Choose from our various pricing plans. There is a package for everyone!


vote buttom. Help?

View previous topic View next topic Go down

Topic Solved vote buttom. Help?

Post by zualuoi on Fri Jun 15, 2012 4:56 am



help me, please Very Happy
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Zilla on Fri Jun 15, 2012 6:16 am

avatar
Zilla
Premium Member


Age : 21
Posts : 166
Join date : 2012-05-03
Reputation : 13

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Fri Jun 15, 2012 8:15 am

my forum is punbb Sad
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Fri Jun 15, 2012 9:16 am

avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Fri Jun 15, 2012 9:28 am

link has removed. No
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Fri Jun 15, 2012 10:00 am

zualuoi wrote:link has removed. No

Is not much we can do.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Fri Jun 15, 2012 10:02 am

share for me your code of your forum, plzz Very Happy
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Fri Jun 15, 2012 10:09 am

Well, if it was made by me then I would be happy to share it with all members, but this script is Copyright by Dion Designs and I'm not allowed to share this script.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Dusan on Fri Jun 15, 2012 10:10 am

You can ask Dion for permission Smile
avatar
Dusan
Member
Member

Age : 22
Posts : 711
Join date : 2012-06-08
Forum Version : PunBB
Reputation : 36

View user profile http://www.csshelp.net

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Fri Jun 15, 2012 10:12 am

Akkii wrote:You can ask Dion for permission Smile

I can't find him also he has delete his account from FM!
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Dusan on Fri Jun 15, 2012 10:14 am

You tried on that new forum ?
Code:
http://www.dion-designs.com/area51/index.php
avatar
Dusan
Member
Member

Age : 22
Posts : 711
Join date : 2012-06-08
Forum Version : PunBB
Reputation : 36

View user profile http://www.csshelp.net

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Fri Jun 15, 2012 1:27 pm

I think you could write the instructions and to the author Surprised
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Mon Jun 18, 2012 3:18 am

:bball: I CAN DO
Features:
Display number of likes/dislikes.
Like/dislike several times without refresing the page.
The like/dislike button won't be clickable and turn to gray color when you finished voting.
STEP 1:
Display >> Templates >> Ganeral >> Viewtopic_body >> Find
Code:
<!-- BEGIN switch_vote_active -->
    <div class="vote gensmall">
      <!-- BEGIN switch_vote -->
      <div class="vote-button">
          <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
      </div>
      <!-- END switch_vote -->
      <!-- BEGIN switch_bar -->
      <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
          <!-- BEGIN switch_vote_plus -->
          <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
          </div>
          <!-- END switch_vote_plus -->
          <!-- BEGIN switch_vote_minus -->
          <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
          </div>
          <!-- END switch_vote_minus -->
      </div>
      <!-- END switch_bar -->
      <!-- BEGIN switch_no_bar -->
      <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
          ----
      </div>
      <!-- END switch_no_bar -->
      <!-- BEGIN switch_vote -->
      <div class="vote-button">
          <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
      </div>
      <!-- END switch_vote -->
    </div>
    <!-- END switch_vote_active -->

Replace it with one of these

Code:
<span class="loadFMvi">
      <img alt="Loading" src="http://i40.servimg.com/u/f40/16/80/27/29/946d7310.gif"
      />
    </span>
    <div class="voteTopic">
      <!-- BEGIN switch_vote_active -->
      <div class="vote gensmall">
          <!-- BEGIN switch_vote -->
          <div class="vote-button">
            <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
          </div>
          <!-- END switch_vote -->
          <!-- BEGIN switch_bar -->
          <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
            <!-- BEGIN switch_vote_plus -->
            <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
            </div>
            <!-- END switch_vote_plus -->
            <!-- BEGIN switch_vote_minus -->
            <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
            </div>
            <!-- END switch_vote_minus -->
          </div>
          <!-- END switch_bar -->
          <!-- BEGIN switch_no_bar -->
          <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
            ----
          </div>
          <!-- END switch_no_bar -->
          <!-- BEGIN switch_vote -->
          <div class="vote-button">
            <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
          </div>
          <!-- END switch_vote -->
      </div>
      <!-- END switch_vote_active -->
    </div>
STEP 2

Put one of these code at the end of your viewtopic_body
Code:
<style type="text/css">
    .voteTopic {
        padding: 4px;
        background: #fff;
        color: #000;
        border:1px solid # a0b0c0;
        font - size: 12px;
        font - weight: bold;
        margin: 0 10px;
        height: 17px;
        display: inline;float:right;
    }
    .voteTopic a {
        cursor: default;
        vertical - align:
        middle;
    }
    .voteTopic span, .voteTopic a {
        display: inline;
    }
    .voteTopic .plusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_b12.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .xplusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_n11.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .xminusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik16.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .minusFMvi{
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik15.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .loadFMvi, .vote {
        display:none;
        margin: 0;
    }
    </style>       
    <script type="text/javascript">
var CopyrightNotice='nstant like/dislike. Copyright ©️  by Fmvi. All Rights Reserved. Use, modification, and/or distribution of this script is not allowed without direct permission from Zero (robot_body2018@yahoo.com). This entire copyright notice must remain in the original, copied, or modified script';
    $('.voteTopic').each(function (index) {
      $(this).prev().attr('alt', 'vote'+index);
      $(this).before('<iframe name="vote' + index + '" height="0px" width="0px" frameborder="0"></iframe>');
      $(this).attr('alt', 'vote'+index).prepend('<span alt="vote'+index+'" class="xplusFMvi"></span><span class="cong" alt="vote'+index+'">0</span>    <span alt="vote'+index+'" class="xminusFMvi"></span><span class="tru" alt="vote'+index+'">0</span>');
      var altthis = $(this).attr('alt');
      var plink = $(this).find('a[href$="eval=plus"]').attr('href');
        var mlink = $(this).find('a[href$="eval=minus"]').attr('href');
        if ($(this).find('.vote a').length > 0) {
      $('.xplusFMvi[alt="'+altthis+'"]').replaceWith('<a style="display: inline-block" target="' + altthis + '" href="'+plink+'"><span alt="'+altthis+'" class="plusFMvi"></span></a>');
      $('.xminusFMvi[alt="'+altthis+'"]').replaceWith('<a target="' + altthis + '" href="'+mlink+'"><span alt="'+altthis+'" class="minusFMvi"></span></a>');
        };
        if ($(this).find('.vote-bar').length > 0) {
            var z = $(this).find('.vote-bar').attr('title').split(' ');
            var m = parseInt(z[3].replace(/%/, '')) / 100;
            var n = parseInt(z[4].replace(/\(/, ''));
            c = String(Math.round(n * m));
            d = String(n - c);
            $('.cong[alt="'+altthis+'"]').replaceWith('<span class="cong" alt="'+altthis+'">'+c+'</span>');
            $('.tru[alt="'+altthis+'"]').replaceWith('<span class="tru" alt="'+altthis+'">'+d+'</span>');
        };
        $('.plusFMvi').click(function () {
            var altcong = $(this).attr('alt');
            var x = Number($('.cong[alt="'+altcong+'"]').text())+1;
            $('.plusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+altcong+'"]').show().fadeOut(1000, function(){
            $('.cong[alt="'+altcong+'"]').replaceWith('<span class="cong">'+x+'</span>');
            });
        });
        $('.minusFMvi').click(function () {
            var alttru = $(this).attr('alt');
            var y = Number($('.tru[alt="'+alttru+'"]').text())+1;
            $('.plusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+alttru+'"]').show().fadeOut(1000, function(){
              $('.tru[alt="'+alttru+'"]').replaceWith('<span class="cong">'+y+'</span>');
            });
        });
    });
    </script>


(http://en.fmvi.org/t12-free-instant-like-dislike#432)
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Mon Jun 18, 2012 7:57 am

Is this solved?
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by zualuoi on Mon Jun 18, 2012 10:01 am

solved lol!
avatar
zualuoi
Member
Member

Age : 32
Posts : 15
Join date : 2012-05-10
Reputation : 0

View user profile

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Mati™ on Thu Jun 28, 2012 7:08 am

The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been locked.

If you have other questions, please open a new topic.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Topic Solved Re: vote buttom. Help?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum