Jump to content

FluxCP Addon: Vote For Points


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

solved

post-20583-0-96557200-1379778388_thumb.png

Solved

Edited by rmon008
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   2
  • Joined:  09/19/13
  • Last Seen:  

i have a problem the vote sites doesnt show up in my fluxcp help.

http://gate-ro.net/cp/?module=voteforpoints

 

i got same problem like you..

 

i try install at my local computer, and this addon runing well..

 

 

but when i install this addon at my server..

 

i got this message "No Voting Site Founds" at vote page

 

but at admin panel ( view list, edit, delete ) i can see voting list

 

any one can help me?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

HELP !

Message: MySQL error (SQLSTATE: 42000, ERROR: 1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1


New:

Notice: Undefined offset: 0 in/home/***/public_html/cp/addons/voteforpoints/modules/voteforpoints/index.phpon line 44

Notice: Trying to get property of non-object in/home/***/public_html/cp/addons/voteforpoints/modules/voteforpoints/index.phpon line 44
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/20/12
  • Last Seen:  

i have a problem the vote sites, i see  "Invalid voting site" can you help me please :) 


Help please :/

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  04/26/12
  • Last Seen:  

Notice: Undefined offset: 0 in /addons/voteforpoints/modules/voteforpoints/index.phpon line 44

Notice: Trying to get property of non-object in /addons/voteforpoints/modules/voteforpoints/index.phpon line 44

 

How do i fix this? I am using Xantara's FluxCP. Thank you!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  06/07/12
  • Last Seen:  

I have had problems with my voteforpoints ..

you can see in the pictures that I gave and I think what I did was right ..

can you tell me what I have a problem with voteforpoints?? I need some help from you ...

 

 

1512749_762759663753092_1402947945_n.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   14
  • Joined:  07/07/12
  • Last Seen:  

Points vote counted even voting in the tops, just click on the button Vote now. Please fix it.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

I'm Still new in Flux CP editing.
can i have the Step by step process of this Vote For Points with screen shots???
i will really appreciate it :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   16
  • Joined:  01/20/14
  • Last Seen:  

Proxy Error Fix Pls. 

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   7
  • Joined:  06/23/14
  • Last Seen:  

Just like other errors encountered here.

Notice: Undefined offset: 0 in /addons/voteforpoints/modules/voteforpoints/index.php on line 44
Notice: Trying to get property of non-object in /addons/voteforpoints/modules/voteforpoints/index.php on line 44

My index.php

http://upaste.me/bc0b137729fecd962

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  274
  • Topics Per Day:  0.06
  • Content Count:  747
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

where should i add the vote html code?

 

3005r1e.png


bump still waiting

Edited by dolphincute
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   0
  • Joined:  08/27/14
  • Last Seen:  

Works well, and you only need to move the folder into Addons and import sql, clean and simple.But is exploitable click to vote and you already given 1 point, and no real check if voted or not, gues is not possible anyway if you dont recive response values from voting site.

 

Anyway works perfectly +10

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   15
  • Joined:  12/06/11
  • Last Seen:  

Someone found the fix for this?

Notice: Undefined offset: 0 in /public_html/addons/voteforpoints/modules/voteforpoints/index.php on line 44

Notice: Trying to get property of non-object in /public_html/addons/voteforpoints/modules/voteforpoints/index.php on line 44

When clicked "Vote" button this appears:

Notice: Undefined index: HTTP_X_FORWARDED_FOR in /public_html/addons/voteforpoints/modules/voteforpoints/vote.php on line 16
Warning: Cannot modify header information - headers already sent by (output started at /public_html/addons/voteforpoints/modules/voteforpoints/vote.php:16) in /public_html/lib/Flux/Template.php on line 860

I think it's PHP version related :/

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/17/15
  • Last Seen:  

Someone found the fix for this?

Notice: Undefined offset: 0 in /public_html/addons/voteforpoints/modules/voteforpoints/index.php on line 44

Notice: Trying to get property of non-object in /public_html/addons/voteforpoints/modules/voteforpoints/index.php on line 44

When clicked "Vote" button this appears:

Notice: Undefined index: HTTP_X_FORWARDED_FOR in /public_html/addons/voteforpoints/modules/voteforpoints/vote.php on line 16
Warning: Cannot modify header information - headers already sent by (output started at /public_html/addons/voteforpoints/modules/voteforpoints/vote.php:16) in /public_html/lib/Flux/Template.php on line 860

I think it's PHP version related :/

 

Back read a little. There is already a solution for that along with the others having problems adding vote sites.

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   6
  • Joined:  07/01/12
  • Last Seen:  

How can I add news sites?

 

 

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  12/20/17
  • Last Seen:  

Amazing Addon. Really nice and simple to install. Thank you for this! The only problem seems to be when users vote, it automatically counts before they even vote. 

Edited by Moonshadows
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Everything seems to work fine but if I try to delete a site I get this error before confirming (debug mode is active):
1.thumb.jpg.edd906d7927a5b9fd8260f5aa698928b.jpg

When I press "Yes", this happens:
2.thumb.jpg.3d30a238adc4647830adc01333ffe2f1.jpg

This is my /addons/voteforpoints/themes/default/voteforpoints/delete.php

<?php if (!defined('FLUX_ROOT')) exit; ?>
<br/>
<h2>Delete Voting Site - Administrator</h2>
<?php if(count($error)>0){ ?>
<h3>Error:</h3>
<ul>
	<?php foreach($error as $err){ ?>
		<li><?php echo $err; ?></li>
	<?php } ?>
</ul>
<?php } ?>
<form action="<?php echo $this->url ?>&sid=<?php echo $site_id; ?>&return=edit_site"  method="post" enctype="multipart/form-data" class="generic-form">
<table class="vertical-table" width="100%">
	<tr>
		<th align="left">
			<?php echo Flux::message('SITE_NAME_LABEL'); ?>				
		</th>
		<td>
			<?php echo $vp->site_name; ?>
		</td>
	</tr>
	<tr>
		<th align="left">
			<?php echo Flux::message('ADDRESS_LABEL'); ?>				
		</th>
		<td>
			<?php echo $vp->address; ?>
		</td>
	</tr>
	<tr>
		<th align="left">
			<?php echo Flux::message('BANNER_LABEL'); ?>		
		</th>
		<td>
			<?php if($vp->banner_url==""): ?>
				<i><?php echo Flux::message('BANNER_IS_UPLOADED'); ?>.
			<?php endif; ?>
			<?php if($vp->banner_url!=""): ?>
				<?php echo $vp->banner_url; ?>
			<?php endif; ?>
		</td>
	</tr>
	<tr>
		<th align="left">
			<?php echo Flux::message('BLOCK_TIME_LABEL'); ?>		
		</th>
		<td>
			<?php echo $hours.":".$minutes.":00"; ?>
		</td>
	</tr>
	<tr>
		<th align="left">
			<?php echo Flux::message('POINTS_LABEL'); ?>		
		</th>
		<td>
			<?php echo $vp->points; ?> pt('s)
		</td>
	</tr>
	<tr>
		<td colspan="2" align="right">
			Are you sure you want to delete this:?
			<input type="submit" name="Delete" id="Delete" value="Yes"/>
			&nbsp;&nbsp;|
			&nbsp;
			<a href="index.php?module=voteforpoints&action=list">No</a>
		</td>
	</tr>
</table>
</form>
<script type="text/javascript" language="javascript">
	$('#id_cbox_banner_url').change(function(){
		var checked = $(this).attr('CHECKED');
			$('#id_banner_url').attr('DISABLED',!checked);
			$('#id_banner_upload').attr('DISABLED',!!checked);
	});
</script>

Any help please?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  253
  • Reputation:   35
  • Joined:  11/19/11
  • Last Seen:  

this is outdated mate. find other v4p addon.

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   23
  • Joined:  04/28/12
  • Last Seen:  

I recommend using my fork of User Feefty's Flux CP Addons VoteForPoints. He last updated his code in 2015. I've fixed some bugs and tested that it works as of this date (Dec 2018).

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

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.02
  • Content Count:  101
  • Reputation:   5
  • Joined:  12/04/16
  • Last Seen:  

click site vote:

unable to vote for the server. Err no. 4

 

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

'IP_BLOCKING' => true, //Set false the blocking system is Account per Site not Both Account and IP per Site

 

even set on true 

after creating new account you can vote again

 

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

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

There is some fixes since last year.

Just to keep everyone noticed on 7th page of this topic ?

 

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

On 5/21/2020 at 9:56 PM, Sanasol said:

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

There is some fixes since last year.

Just to keep everyone noticed on 7th page of this topic ?

 

There is a problem with the time format when I add a new voting site... for example my FluxCP is setted with the italian time format "d/m/Y - H:i:s" (PHP)

Quote

Critical Error

An error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

Exception Details

Error: Flux_Error

Message: MySQL error (SQLSTATE: 22007, ERROR: 1292): Incorrect datetime value: '22/05/2020 - 23:50:07' for column 'datetime_created' at row 1

File: /home/mysite/domains/mysite.it/public_html/lib/Flux/Connection/Statement.php:27

File Line Function/Method
/home/mysite/domains/mysite.it/public_html/addons/voteforpoints/modules/voteforpoints/add.php 116 Flux_Connection_Statement::execute()
/home/mysite/domains/mysite.it/public_html/lib/Flux/Template.php 375 include()
/home/mysite/domains/mysite.it/public_html/lib/Flux/Dispatcher.php 170 Flux_Template::render()
/home/mysite/domains/mysite.it/public_html/index.php 169 Flux_Dispatcher::dispatch()

Exception Trace As String


#0 /home/mysite/domains/mysite.it/public_html/addons/voteforpoints/modules/voteforpoints/add.php(116): Flux_Connection_Statement->execute(Array)
#1 /home/mysite/domains/mysite.it/public_html/lib/Flux/Template.php(375): include('/home/mysite/...')
#2 /home/mysite/domains/mysite.it/public_html/lib/Flux/Dispatcher.php(170): Flux_Template->render()
#3 /home/mysite/domains/mysite.it/public_html/index.php(169): Flux_Dispatcher->dispatch(Array)
#4 {main}

 

Edited by CyberDevil
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   53
  • Joined:  01/04/12
  • Last Seen:  

@CyberDevil

fixed, noticed it before and thought that looks not good, but kept as is to avoid other unexpected bugs ?

https://github.com/sanasol/FluxCP_Addons-VoteForPoints/commit/86f91449633826cbd0b95c7146ce6943570943dd

Edited by Sanasol
  • Upvote 2
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

work perfectly ?

Link to comment
Share on other sites

×
×
  • Create New...