The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tuesday tip : Reputation system: only allow positive votes

+26
Fireflaming246
Stephen-
ioncube
invisible_fa
dleavell
Base
lovekhmer2008
CajunBelle
baxuz011
Social_King
Threax
MohammadRN
URFTV
viankova
OnTheBusesCrazy
petros_7
The_Great_WZ
Cody!
Spoiler
unknown_fever
fauzi rahman
Mio-chan
hoodedwarbler12
Ezio
Russel
Shadow
30 posters

Page 2 of 2 Previous  1, 2

Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Tuesday tip : Reputation system: only allow positive votes

Post by Shadow January 11th 2011, 2:20 pm

First topic message reminder :

Reputation system: only allow positive votes


Since the appearance of the reputation system, messages can be voted by the "+" or "-" button. However, many members have wondered if it is possible to only take into account the positive votes. This tutorial will explain how to remove the "-" button on all forum versions.

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 09615172706You must also :
- Be the founder of the forum
- Have a basic knowledge of HTML, and templates.

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 09615175912 PhpBB2 and punBB
The changes are the same on both versions.

Administration Panel Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10Display Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 Templates Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 General Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 viewtopic_body

Find:

Code:
<!-- 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 -->

Replace it with:

Code:
<!-- BEGIN switch_no_bar -->
                            <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar" style="display: none;">----</div>
                            <!-- END switch_no_bar -->

                            <!-- BEGIN switch_vote -->
                            <div class="vote-button" style="display: none;"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}"></a></div>
                            <!-- END switch_vote -->

Then click the "Publish" button.

Result:
PhpBB2PunBB
Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Vot-tu10Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Punbb10

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 09615175912 PhpBB3 version and Invision
The changes are the same on both versions.

Administration Panel Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10Display Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10Colors Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10CSS

Add this code to your CSS:

Code:
/ *-- Removal of negative voting button in messages --* /
.vote .vote-button, .vote-no-bar {
  display:none;
}
.vote .vote-button:first-child {
    display:block;
}

Result:
PhpBB3Invision
Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Phpbb310Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Invisi10

    Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 09615172706 Replace the "+" with a picture
    PhpBB2 and phpBB versions only

It is of course possible to replace the + with an image of your choice. In our example, we will take this picture (you can also use):
Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 001_1810

Administration Panel Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 Display Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 Templates Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 General Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Arrow10 viewtopic_body

Find:

Code:
<!-- BEGIN switch_vote -->
                            <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
                            <!-- END switch_vote -->

And replace it with:

Code:
<!-- BEGIN switch_vote -->
                            <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}"><img src="http://i22.servimg.com/u/f22/09/02/12/09/001_1810.png" title="Avis positif" alt="Avis positif" /></a></div>
                            <!-- END switch_vote -->

Then click the "Publish" button.

Afterward add this to your CSS:

Code:
.vote {
    width: 24px; / *-- Width of the image chosen --* /
}
Here, the image chosen above has a width of 24px, so we put a value of 24px.
If your image has a width of 35px, remember to adapt this code by changing 24px to 35px. Wink

Result:
Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Vot-tu11

This tutorial was written by the Staff of the Forum Forum,
And in particular Toto456 and translated by MrMario.

No reproduction possible without our consent, in accordance with article L122-1 of the ICC.
Shadow
Shadow
Manager
Manager

Male Posts : 16208
Reputation : 1832
Language : French, English

Back to top Go down


Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Hellp

Post by baxuz011 March 4th 2011, 2:02 am

Menu can not see the image, overlapping the edge of the forum. how to fix it. "PunBB"

Sorry for my bad English.


Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Untitled

How to improve it, to see the whole picture?


EDIT:

Fixed
avatar
baxuz011
New Member

Posts : 5
Reputation : 0
Language : Srpski

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty doesnt work for me

Post by CajunBelle March 18th 2011, 5:10 am

It doesnt work on my forum . Ive tried 3 times and the minus sign is still there . Thanks anyway .


Last edited by CajunBelle on March 18th 2011, 5:11 am; edited 1 time in total (Reason for editing : spelling error)
CajunBelle
CajunBelle
New Member

Female Posts : 8
Reputation : 0
Language : English

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by lovekhmer2008 March 30th 2011, 1:29 pm

my forum PhpBB2 version
i make like you write but don't work on my forum
why ?
lovekhmer2008
lovekhmer2008
New Member

Female Posts : 10
Reputation : 0
Language : Khmer Française English
Location : Phnom Penh (Cambodia)

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by Base March 30th 2011, 7:26 pm

lovekhmer2008 wrote:my forum PhpBB2 version
i make like you write but don't work on my forum
why ?

Have you clicked on "Publish" and made sure that the template is coloured green?
Base
Base
Forumaster

Male Posts : 10383
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by dleavell April 5th 2011, 2:33 am

i think the best set up is to have only your forum moderators with the ability to de-rep and others can only go possitive
avatar
dleavell
New Member

Posts : 2
Reputation : 0
Language : Boise, Idaho

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by invisible_fa April 5th 2011, 6:31 pm

Good tutorial, I knew a "trick" (wich is not really a trick, just set points configuration to zero in the negative votes, so the reputation wont go down although someone give you negative reputation), but this tutorial is better, because, in that way, people directly cant give you negative reputation.

Nice work Mr. Green
invisible_fa
invisible_fa
Active Poster

Male Posts : 1036
Reputation : 29
Language : Spanish, English and a bit of French ;)
Location : Does it matter? I'm Invisible, you will not see me anyway

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by ioncube April 23rd 2011, 11:42 pm

To produce an hover effect
in phpbb3

Code:
.vote .vote-button:hover a {
background-image: url('http://i54.tinypic.com/2ryolfq.jpg') !important;
padding-left: 25px;
padding-top: 22px;
font-size: 0px !important;
}
for this to work you must add following before this :

Code:
.vote .vote-button, .vote-no-bar {
  display:none;
}
.vote .vote-button:first-child {
    display:block;
}
ioncube
ioncube
Forumember

Male Posts : 279
Reputation : 41
Language : eng
Location : Pakistan

http://defencedog.blogspot.com/

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by Stephen- April 24th 2011, 3:28 am

another great tutorial typlo! Smile
Stephen-
Stephen-
Hyperactive

Male Posts : 2542
Reputation : 326
Language :

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by Fireflaming246 April 24th 2011, 3:32 pm

I have a question. How do I change the picture for the Minus/Negative Vote button too?
avatar
Fireflaming246
Forumember

Posts : 31
Reputation : 0
Language : English

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by lovekhmer2008 April 30th 2011, 2:07 am

Base wrote:
lovekhmer2008 wrote:my forum PhpBB2 version
i make like you write but don't work on my forum
why ?

Have you clicked on "Publish" and made sure that the template is coloured green?

Yes

Spoiler:
lovekhmer2008
lovekhmer2008
New Member

Female Posts : 10
Reputation : 0
Language : Khmer Française English
Location : Phnom Penh (Cambodia)

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by kamikay April 30th 2011, 3:47 am

Great tut !
kamikay
kamikay
New Member

Posts : 20
Reputation : 1
Language : americano, no?

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by uafgrad April 30th 2011, 4:49 am

I did everything described here, and got the - sign to be gone. I also was able to get the thumbs up picture to show (I am on PhpBB3). How do I get rid of the + sign though? It is still there under the thumbs-up up picture.

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Vote10
avatar
uafgrad
Forumember

Posts : 88
Reputation : 0
Language : English

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by FIB July 16th 2014, 11:58 pm

I know this is an old topic but I can't get the image lined up correctly, I did open a post earlier but gave up so they locked it here https://help.forumotion.com/t134274-i-need-to-know-how-to-adjust-some-code  but I really do want to try and get this right so can anyone help? I think I am phpbb2? this is my forum http://www.draytondubs.com maybe you can tell which version it is. Any help would be very much appreciated.

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Thumb10
avatar
FIB
Forumember

Male Posts : 491
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Empty Re: Tuesday tip : Reputation system: only allow positive votes

Post by Ange Tuteur July 17th 2014, 1:53 am

FIB wrote:I know this is an old topic but I can't get the image lined up correctly, I did open a post earlier but gave up so they locked it here https://help.forumotion.com/t134274-i-need-to-know-how-to-adjust-some-code  but I really do want to try and get this right so can anyone help? I think I am phpbb2? this is my forum http://www.draytondubs.com maybe you can tell which version it is. Any help would be very much appreciated.

Reputation - Tuesday tip : Reputation system: only allow positive votes - Page 2 Thumb10

Hello FIB,

Please open a new topic in the Support Section, or contact a moderator to unlock your topic if it was not solved.

Thank you.

Topic locked
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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