Jump to content
JayPee

FluxCP Addon: Vote For Points

Recommended Posts

solved

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

Solved

Edited by rmon008

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


Help please :/

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

where should i add the vote html code?

 

3005r1e.png


bump still waiting

Edited by dolphincute

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

this is outdated mate. find other v4p addon.

Share this post


Link to post
Share on other sites

click site vote:

unable to vote for the server. Err no. 4

 

Share this post


Link to post
Share on other sites

'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

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

work perfectly 😉

Share this post


Link to post
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.