NexusXVI Posted October 19, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Share Posted October 19, 2013 Using Flux CP Problem? = No idea on how the vote buttons will appearPic 1 = Successfully added 3 voting sites Pic 2 = As normal player or even Admin account Vote sites doesn't appear? Main Problem ? = I don't have any idea where to edit or to do something to make it work.. anyone can help? BUMP Link to comment Share on other sites More sharing options...
Hyvraine Posted October 20, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 133 Reputation: 15 Joined: 12/23/11 Last Seen: December 20, 2023 Share Posted October 20, 2013 Try enabling debug in applications.php and error.php Link to comment Share on other sites More sharing options...
NexusXVI Posted October 21, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 21, 2013 (edited) Ok to be more precise here is the php code <?php if (!defined('FLUX_ROOT')) exit; ?> <?php if($vp): ?> <br/> <h3>Vote for Points</h3> <table class="horizontal-table" width="100%"> <tr> <td colspan="3" align="left"> <b>Current Vote Points:</b> <?php echo $curr_points; ?> <i>pt(s).</i> </td> <td align="left" colspan="2"> <b>Website Time:</b> <?php echo date("Y-m-d G:i:s",time()); ?> </td> </tr> <tr> <th align="center">Name</th> <th align="center">Banner</th> <th align="center">Points</th> <th align="center">Block Time<i>(h:m:s)</i></th> <th align="center">Vote Button</th> </tr> <?php foreach($vp as $site): ?> <tr> <td><?php echo $site->site_name;?></td> <td align="center" width="150" height="50"><img src="<?php if($site->banner_url!="") { echo $site->banner_url; } else { echo "index.php?module=voteforpoints&action=image&sid=".$site->site_id; } ?>" width="150" height="50"/></td> <td align="right"><?php echo $site->points;?> pt(s)</td> <td align="center"><?php echo strBlockTime($site->blocking_time); ?></td> <td align="center" style="width:100px;"> <?php $date_block = isBlock($account_id,$site->site_id,$current_time,$ip_address,$serverLogDB,$vp_logs,$serverObj); if($date_block<=0){ ?> <a href="index.php?module=voteforpoints&action=vote&sid=<?php echo $site->site_id; ?>" target="_blank">Vote Now</a> <?php } else { ?> <label style="color:red" onclick="javascript: alert('Blocked in voting for site until: <?php echo date("Y-m-d G:i:s",$date_block); ?>');">Vote</label> <?php } ?> </td> </tr> <?php endforeach; ?> </table> <?php endif; ?> <?php if(!$vp): ?> <br/> <i>No voting sites found</i> <?php endif; ?> Then here is the log : [20-Oct-2013 17:12:00 America/New_York] PHP Notice: Undefined variable: vp in /home/hydrora/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 2 [20-Oct-2013 17:12:00 America/New_York] PHP Notice: Undefined variable: vp in /home/hydrora/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 42 [20-Oct-2013 17:12:04 America/New_York] PHP Notice: Undefined variable: vp in /home/hydrora/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 2 [20-Oct-2013 17:12:04 America/New_York] PHP Notice: Undefined variable: vp in /home/hydrora/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 42 Hope someone can help I think its about this <?php if($vp): ?> BUMP! Edited October 20, 2013 by NexusXVI Link to comment Share on other sites More sharing options...
NexusXVI Posted October 22, 2013 Group: Members Topic Count: 61 Topics Per Day: 0.01 Content Count: 227 Reputation: 6 Joined: 01/18/12 Last Seen: May 22, 2022 Author Share Posted October 22, 2013 BUMP Been trying to find FIX and every thing..Until I give up.Please can anyone help me with the voting for flux cp?? Link to comment Share on other sites More sharing options...
pukay Posted May 31, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 05/10/14 Last Seen: March 3, 2015 Share Posted May 31, 2014 jaypee mateo is fucking bull shit i have this error he is fucking bugger scripter i get this fucking error and i lost my players because of this fucking bull shit script I want to die fast in this earth .. u are not belong here devilish fucking jaypee mateo i hope u die soon in reallife u really fucking as hole fuck u u die bitch bitch bitch fuck u jaypee u release script with bugs fuck you... go to hell Notice: Undefined variable: vp in/home/bitesro/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 2Notice: Undefined variable: vp in/home/bitesro/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 41No voting sites found Link to comment Share on other sites More sharing options...
Zeiyan Posted October 17, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 275 Reputation: 23 Joined: 01/06/13 Last Seen: September 1, 2024 Share Posted October 17, 2014 jaypee mateo is fucking bull shit i have this error he is fucking bugger scripter i get this fucking error and i lost my players because of this fucking bull shit script I want to die fast in this earth .. u are not belong here devilish fucking jaypee mateo i hope u die soon in reallife u really fucking as hole fuck u u die bitch bitch bitch fuck u jaypee u release script with bugs fuck you... go to hell Notice: Undefined variable: vp in/home/bitesro/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 2 Notice: Undefined variable: vp in/home/bitesro/public_html/addons/voteforpoints/themes/default/voteforpoints/index.php on line 41 No voting sites found Just saw this now. You do know that he released his script for free right? You're getting stuff for free and that's what you show in return? Learn some respect kid. Developers, scripters or any kind of coders don't type those codes as if they're curse words. It took a lot of trial and error to get the code to work. It's not always perfect that's why we have this forum. 1 Link to comment Share on other sites More sharing options...
Question
NexusXVI
Using Flux CP
Problem? = No idea on how the vote buttons will appear
Pic 1 = Successfully added 3 voting sites
Pic 2 = As normal player or even Admin account Vote sites doesn't appear?
Main Problem ? = I don't have any idea where to edit or to do something to make it work.. anyone can help?
BUMP
Link to comment
Share on other sites
5 answers to this question
Recommended Posts