Jump to content

Vote for Points FluxCP


gnashxalex

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  08/19/18
  • Last Seen:  

He probrado varios vote4points y siempre alguno tira un error (jaypee, feefty) y no me funcionan
Podrian aportar alguno que si les funcione?, Gracias de antemano

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

7 minutes ago, gnashxalex said:

He probrado varios vote4points y siempre alguno tira un error (jaypee, feefty) y no me funcionan
Podrian aportar alguno que si les funcione?, Gracias de antemano

El año pasado he utilizado este sin problemas.

https://github.com/sanasol/FluxCP_Addons-VoteForPoints

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  08/19/18
  • Last Seen:  

On 1/11/2020 at 10:42 AM, Mael said:

El año pasado he utilizado este sin problemas.

https://github.com/sanasol/FluxCP_Addons-VoteForPoints

Gracías, lo probare.

Unable to vote for the server. Err no.3

 

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

2 hours ago, gnashxalex said:

Unable to vote for the server. Err no.3

 

Intenta modificando esto en los archivos SQL.

CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   62
  • Joined:  02/04/19
  • Last Seen:  

5 hours ago, Mael said:

Intenta modificando esto en los archivos SQL.


CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

Edited by KeyMaster
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  08/19/18
  • Last Seen:  

5 hours ago, KeyMaster said:

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

 

10 hours ago, Mael said:

Intenta modificando esto en los archivos SQL.


CREATE TABLE IF NOT EXISTS `cp_vfp_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sites_id` int(11) NOT NULL,
  `timestamp_expire` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timestamp_voted` timestamp NULL,
  `ipaddress` varchar(155) NOT NULL,
  `account_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

CREATE TABLE IF NOT EXISTS `cp_vfp_sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `votename` varchar(25) NOT NULL,
  `voteurl` varchar(255) NOT NULL,
  `voteinterval` int(11) NOT NULL,
  `votepoints` int(11) NOT NULL,
  `imgname` varchar(255) DEFAULT NULL,
  `imgurl` varchar(255) DEFAULT NULL,
  `datetime_created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

ALTER TABLE `cp_createlog` ADD `votepoints` int(11) NOT NULL DEFAULT '0';

Gracias por la ayuda, pero ahora no me tira ningun error, ahora le doy click a votar y no pasa nada y me cuenta como si me ha votado ya, pero no me redirecciona al top para votar

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

11 hours ago, KeyMaster said:

También tengo este mismo problema, intenté agregar esta tabla sql y me dio lo mismo.

Unable to vote for the server. Err no.3

 

#Edit

¡Encontré el problema!
Debe crear una cuenta a través de fluxcp, para que su cuenta se genere en "cp_createlog". Estaba tratando de usar una cuenta creada manualmente. Entonces dio el error.

 

Hola

¿Qué versión de mysql ocupas, y distro linux? En los logs de flux no aparece nada y tampoco en el debug mode.

Me hice una cuenta y ahora obtengo el error:

Unable to vote for the server. Err no. 1

Edited by Dark Lunacy
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

11 hours ago, gnashxalex said:

 

Gracias por la ayuda, pero ahora no me tira ningun error, ahora le doy click a votar y no pasa nada y me cuenta como si me ha votado ya, pero no me redirecciona al top para votar

https://github.com/sanasol/FluxCP_Addons-VoteForPoints/blob/master/config/addon.php#L4

Cambia por "vote" ?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

1 hour ago, Mael said:

Hola, gracias por la ayuda. He seguido tus pasos que recomendaste más arriba, más esto último; aún así me sigue tirando el Unable to vote for the server. Err no. 1

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

On 12/1/2020 at 13:44, Dark Lunacy said:

Hola, gracias por la ayuda. He seguido tus pasos que recomendaste más arriba, más esto último; aún así me sigue tirando el Unable to vote for the server. Err no. 1

Consultaré con Sanasol, ya han pasado muchos meses desde que funcionaba el vote addon.

Por cierto, publicación trasladada a una mejor ubicación.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

Hola de nuevo, gracias!

Bueno, he logrado hacer desaparecer el Error No 1 desactivando el ''EnableVoteIPCheck''  /addons/voteforpoints/config/addon.php

Me parece que está relacionado a estas líneas de código en /addons/voteforpoints/modules/voteforpoints/index.php:

	// voter is using invalid ip
	if (Flux::config('EnableIPVoteCheck') && !empty($_SERVER["HTTP_X_FORWARDED_FOR"]) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_CLIENT_IP']) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_X_FORWARDED']))

Solo que ahora al votar, no da los puntos.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

On 1/12/2020 at 11:29 AM, Dark Lunacy said:

Hola de nuevo, gracias!

Bueno, he logrado hacer desaparecer el Error No 1 desactivando el ''EnableVoteIPCheck''  /addons/voteforpoints/config/addon.php

Me parece que está relacionado a estas líneas de código en /addons/voteforpoints/modules/voteforpoints/index.php:


	// voter is using invalid ip
	if (Flux::config('EnableIPVoteCheck') && !empty($_SERVER["HTTP_X_FORWARDED_FOR"]) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_CLIENT_IP']) ||
		Flux::config('EnableIPVoteCheck') && !empty($_SERVER['HTTP_X_FORWARDED']))

Solo que ahora al votar, no da los puntos.

 

On 1/11/2020 at 11:39 AM, gnashxalex said:

 

Gracias por la ayuda, pero ahora no me tira ningun error, ahora le doy click a votar y no pasa nada y me cuenta como si me ha votado ya, pero no me redirecciona al top para votar

https://github.com/sanasol/FluxCP_Addons-VoteForPoints/commit/68331492cbc96b35c4b5e29ddf24921c606dc11b

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  52
  • Reputation:   1
  • Joined:  08/19/18
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

On 1/16/2020 at 3:13 AM, gnashxalex said:

Gracias, Mael

Espero y puedan confirmar que el addon esté funcionando correctamente para que otras personas lo puedan tener a la mano.

 

Nuevo update muchachos, por favor confirmar. @gnashxalex @Dark Lunacy

https://github.com/sanasol/FluxCP_Addons-VoteForPoints/commit/b4cab297d64ecec531b16296418f0efb97568682#diff-2917ad71ad741fcfefe61ecb6648e79c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   2
  • Joined:  12/05/19
  • Last Seen:  

9 hours ago, Mael said:

Si me funciono, muchisimas gracias mael

  • Like 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

1 hour ago, Madeon said:

Si me funciono, muchisimas gracias mael

Agradezcan a @Sanasol por su gentileza.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  02/12/17
  • Last Seen:  

19 hours ago, Mael said:

Hola!

He ido reportando los errores que he ido encontrando acá: https://github.com/rathena/FluxCP/issues/251

Gracias a todos ?

  • Like 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

Just now, Dark Lunacy said:

Hola!

He ido reportando los errores que he ido encontrando acá: https://github.com/rathena/FluxCP/issues/251

Gracias a todos ?

Me alegra, este addon apoyará a muchos.

  • Upvote 2
Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  9
  • Reputation:   0
  • Joined:  12/27/14
  • Last Seen:  

Espero su ayuda, bajé el mas actualizado de Sanasol pero no me actualiza los votos en el cp, espero puedan apoyarme, gracias.

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.02
  • Content Count:  106
  • Reputation:   1
  • Joined:  09/24/19
  • Last Seen:  

El 1/17/2020 a las 8:31, Mael dijo:

Me alegra, este complemento apoyará a muchos.

Hola acabo de instalar este sistema de votos pero tengo un problema al momento de agregar alguna pagina para votos este solo se recarga y no agrega la nueva pagina aparece como si no hubiera echo nada no me sale ningun error en pantalla cual sera mi error?

 

 

ademas de que no deja entrar a los usuarios que no son admin al panel de votacion

https://prnt.sc/OYBippYKAbDm

Edited by Notorius
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...