Textpattern CMS support forum

You are not logged in. Register | Login | Help

#81 2015-09-25 18:48:08

alivato
Member
Registered: 2011-03-31
Posts: 147

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Questions about plug cbe_helpful

<txp:cbe_helpful label="">
  <txp:cbe_helpful_yes class="green" /> / 
  <txp:cbe_helpful_no class="red" />
</txp:cbe_helpful>

Is it possible to do so:
Have a total sum in the middle and the two buttons around it.

Last edited by alivato (2015-09-25 18:48:47)

Offline

#82 2015-09-25 19:34:20

jakob
Moderator
From: Germany
Registered: 2005-01-20
Posts: 3,159
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

From memory, it requires some css hiding. Try adding the <txp:cbe_helpful_score /> (where necessary with class and wraptag) to the middle of your code, then examine the code output and hide the bits you don’t need from the other tags with css.

EDIT: See below: Claire explains it more lucidly…


TXP Builders – finely-crafted code, design and txp

Offline

#83 2015-09-25 19:54:55

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 344
Website

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Yes, it is!

Hah… maybe you’d like to know how :)
Here it is:

Preferences:
Go to Extensions > Article ratings
Set

  • “Rate label” to blank
  • “Positive vote label” to +
  • “Negative vote label” to -

Tags :

 <txp:cbe_helpful>
  <txp:cbe_helpful_yes />
  <txp:cbe_helpful_score />
  <txp:cbe_helpful_no />
 </txp:cbe_helpful>

css:

.helpfulrater .thecount {
  display: none;
}

Offline

#84 2015-09-26 08:31:04

alivato
Member
Registered: 2011-03-31
Posts: 147

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

1. After I voted. Instead of + – again displaying numbers

Before vote

After vote

CSS
.helpfulrater .thecount {
  display: none;
}

——————————

2. How to make after the vote + – were not removed, but simply become inactive css cursor: default; ?

——————————-

3. How to make to be able to vote either + or -. Now I can vote, + and – too. ?

Last edited by alivato (2015-09-26 09:08:41)

Offline

#85 2018-10-30 07:02:45

Hidalgo82
New Member
Registered: 2018-10-30
Posts: 1

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Hi!
where i can change the function that does the INSERT into the table `cbe_helpful_votes`?
I have installed Nginx + Apache, and I would like to change the variable $_SERVER[‘REMOTE_ADDR’] to $_SERVER[‘HTTP_X_FORWARDED_FOR’].
I can not find it…

Offline

#86 2018-10-30 14:50:27

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,152

Re: cbe_helpful: Visitors can rate articles (based on wlk_helpful)

Welcome to the forum, Hidalgo82. I see it on line 349.

In case you’re new to Textpattern: Go to Administration > Plugins > Click cbe_helpful and search for $_SERVER[‘REMOTE_ADDR’] .

After you’ve done your edit, click save.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB