Jump to content

Recommended Posts

Posted

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?

  • 3 weeks later...
Posted

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
  • 1 month later...
  • 1 month later...
Posted

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!

Posted

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

  • 3 weeks later...
  • 4 months later...
Posted

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

  • 2 months later...
  • 2 weeks later...
Posted

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

  • 2 months later...
Posted

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 :/

  • 2 months later...
Posted

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.

  • 2 years later...
  • 5 months later...
Posted (edited)

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
  • 2 months later...
Posted

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?

  • 2 weeks later...
  • 7 months later...
  • 2 months later...
  • 7 months later...
Posted

'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

 

  • 7 months later...
Posted (edited)
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...