Jump to content
  • 0

FluxCP (V4P AddOn)


Question

Posted

Hey guys!

So, I added a Flux v4p Addon and I believe I edited everything correctly.. but for some reason when I click on my voting sites, I get redirected saying:

Page Not Found

The page you have requested was not found on our server. Please check the address and make sure it is correct, and try again.

/?module=votevote?site=GameSites200

for some reason.. anyone know why?

14 answers to this question

Recommended Posts

Posted (edited)

This is the PhP:

<?php if (!defined('FLUX_ROOT')) exit; ?>
<?php

foreach($vote_sites as $site => $url){
	echo "<a target='_blank' href='".$this->url."vote?site=".rawurlencode($site)."'>".$site."</a><br />";
}

?>

Edit:

So, I changed: "vote?site=" to "&action=vote&site=". When I changed it, it got redirected to the site (Basically the site popped inside my flux CP) and I voted but after I voted, I don't get redirected to my vote3.php:

<?php
if (!defined('FLUX_ROOT')) exit;
$this->loginRequired();
echo "Congratulations, you have earned 1 Vote point! You currently have ".$result[0]->point." point(s)!";
?>

Edited by Mysterious
Posted

<?php if (!defined('FLUX_ROOT')) exit; ?>

<?php

foreach($vote_sites as $site => $url){

echo "<a target='_blank' href='".$this->url."&action=vote&site=".rawurlencode($site)."'>".$site."</a><br />";

}

?>

It will open a new tab/window since the <a></a> has a target="_blank"

Edit:

So, I changed: "vote?site=" to "&action=vote&site=". When I changed it, it got redirected to the site (Basically the site popped inside my flux CP) and I voted but after I voted, I don't get redirected to my vote3.php:

Did you directly editted it in the URL and hit enter?

Posted

<?php if (!defined('FLUX_ROOT')) exit; ?>

<?php

foreach($vote_sites as $site => $url){

echo "<a target='_blank' href='".$this->url."&action=vote&site=".rawurlencode($site)."'>".$site."</a><br />";

}

?>

It will open a new tab/window since the <a></a> has a target="_blank"

Edit:

So, I changed: "vote?site=" to "&action=vote&site=". When I changed it, it got redirected to the site (Basically the site popped inside my flux CP) and I voted but after I voted, I don't get redirected to my vote3.php:

Did you directly editted it in the URL and hit enter?

In the last step, I was told to add:

if(isset($_COOKIE['voting']) && !empty($_COOKIE['voting']) && $_COOKIE['voting'] == 'true'){

header("location:http://[domain]/vote/vote3");

}

In my index.php or index.html, so I did in my index.php --> FluxRoot/index.php

What I mean by the voting site opening in my CP browser, I meant:

issue.bmp

and after I've voted, I don't get a message prompt like this:

"Congratulations, you have earned 1 Vote point! You currently have ".$result[0]->point." point(s)!";

Posted

So you want to tell the User when they Click the voting site vote button in the voting site a message will say you earn 1 point?

So you want to tell the User when they Click the voting site vote button in the voting site a message will say you earn 1 point?

Isn't that what's supposed to happen?

Also, when I "Vote" I check my votepoints database and I dont see my account with any vote points.. =/ I'm using --> http://www.eathena.w...11&st=0&start=0

My Guess:

I think there's an error in the script I see eregi function which is decapriciated(not recommended to use) in which php throws an error when use them in php version 5. This might be the reason that you wont get the updates in the database and not being redirected to another page.

Posted

My Guess:

I think there's an error in the script I see eregi function which is decapriciated(not recommended to use) in which php throws an error when use them in php version 5. This might be the reason that you wont get the updates in the database and not being redirected to another page.

eregi function? o_O

So, what do I need to change in the functions or anything? =/!

Posted

This v4p is outdated or is not supported in the latest fluxcp have tested it before and it has not worked...the only v4p working is the paid v4p made by sm devs

  • Recently Browsing   0 members

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