Jump to content

Recommended Posts

Posted

Help after i vote before it automatically gives cash points since april 5 but as i tested it now it doesnt give any cashpoints anymore even if you relogin..  how to fix this one?

 

can you provide an error? i can't reproduce your problem.

>No NPC? :(

will work on it soon. i'm kind of busy lately

 

 

it is just that after you vote a player cant gain cash points even if the player relogin

  • 3 weeks later...
  • 1 month later...
Posted (edited)

1.2 is buggy.

on add the format of PHP was insert on textbox value.

when add check on list showing the format of PHP

and unable to delete on the list.

 

agree, buggy. 

 

for testing purposes see below. dont mind the girl, see the return error. im on the  List Voting Sites.i am using calciumkids cp. by the way, the girl isnt she cute?  /ok

qnjjir.png

Edited by xRaisen
  • 2 weeks later...
Posted

Hello Feefty,

 

 I'm really happy to use your addon, i have configured everything that I can (to the best of my knowledge) and all seems to be working except after I vote the image didn't change and the Vote Now didn't start the countdown. The thing is there's no error on the error log so i'm kinda lost. Hope you can help me with this.

  • 3 weeks later...
Posted

bump for the issue for not gaining cashpoints after voting? there was no error occurred  it is just that players wont gain anything after voting

  • 2 weeks later...
Posted

Hi any solutions for this vote point i try using the file but i cant delete and when i klik the banner nothing happen. please advise.

  • 2 weeks later...
Posted

Sorry for bumping this topic. I don't know where to post web resource support. I want to put Current cash points on my fluxcp voting index.php. Please help. let me know where and what to put. 

This is my index php

<?php if (!defined('FLUX_ROOT')) exit; ?>
<h2><?php echo htmlspecialchars(sprintf(Flux::message('VoteHeading'), $server->serverName)) ?></h2>
<p class='message'><?= htmlspecialchars(Flux::message("VoteNotice")) ?></p>
<?php if (!empty($errorMessage)): ?>
	<p class="red"><?php echo htmlspecialchars($errorMessage) ?></p>
<?php elseif (!empty($successMessage)): ?>
	<p class="green"><?php echo htmlspecialchars($successMessage) ?></p>
<?php endif ?>
<?php if (count($votesites_res) !== 0): ?>
<form action="<?php echo $this->urlWithQs ?>" method="post" class="generic-form">
	<table class="horizontal-table vote-table">
		<tr>
			<th>Voting Site</td>
			<th>Points</th>
			<th>Vote Time Interval</th>
			<th>Time Left</th>
		</tr>
		<?php foreach ($votesites_res as $row): ?>
		<tr>
			<td style="text-align:center">
				<button type="submit" <?php echo (isVoted($row->id, $server) !== FALSE ? "disabled='disabled' ": "") ?>value="<?= (int) $row->id ?>" name="id" class="vote-button" style="background:none;border:none;<?php echo (isVoted($row->id, $server) !== FALSE ? "cursor:not-allowed;": "cursor:pointer;") ?>">
					<img <?php echo (isVoted($row->id, $server) !== FALSE ? "style='opacity:0.3;filter:alpha(opacity=30)' ": "") ?>title='<?= htmlspecialchars($row->votename) ?>' src="<?php echo (is_null($row->imgurl) ? $this->themePath('img/').Flux::config('ImageUploadPath').'/'.$row->imgname : $row->imgurl) ?>" />
				</button>
			</td>
			<td style="text-align:center"><?= number_format($row->votepoints) ?></td>
			<td style="text-align:center"><?php echo $row->voteinterval." ".((int) $row->voteinterval > 1 ? "Hours" : "Hour") ?></td>
			<td style="text-align:center"><?php echo (isVoted($row->id, $server) !== FALSE ? getTimeLeft(isVoted($row->id, $server)) : Flux::message('VoteNow')) ?></td>
		</tr>
		<?php endforeach ?>
	</table>
</form>
<script type="text/javascript">
	$(function() {
		$('.vote-button').click(function() {
			var id = $(this).val();
			var vote_sites = new Array();

			<?php foreach ($votesites_res as $row): ?>
				vote_sites[<?= $row->id ?>] = "<?= htmlspecialchars($row->voteurl) ?>";
			<?php endforeach ?>

			window.open(vote_sites[id]);
		});
	});
</script>
<?php else: ?>
	<p class='red'><?= htmlspecialchars(Flux::message("NoVotingSiteYet2")) ?></p>
<?php endif ?>
Posted

Hello all

 

Can someone explain this to me

 

Create a folder named votes or whatever name you use in the configuration and the path must for the folder be in /themes/default/img/

 

Cuz i got some misunderstanding with this...

 

Btw... to use this v4p,did we must use the default theme of flux cp??.??

Posted

bump for the issue for not gaining cashpoints after voting? there was no error occurred  it is just that players wont gain anything after voting

Now I have this problem

Posted (edited)

Hello all

 

Can someone explain this to me

 

 

Create a folder named votes or whatever name you use in the configuration and the path must for the folder be in /themes/default/img/

 

Cuz i got some misunderstanding with this...

 

Btw... to use this v4p,did we must use the default theme of flux cp??.??

 

just go to fluxcp/themes/default/img

create a folder name it votes.

that's it,

 

because that is where the picture be uploaded when you create a vote list

Edited by rmon008
  • Upvote 1
  • 2 weeks later...
  • Recently Browsing   0 members

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