Jump to content
  • 0

FluxCP (V4P AddOn)


Mystery

Question


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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?

Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I think your url is not correct

/?module=votevote?site=GameSites200

I guess the correct URL must be

/?module=vote&action=vote&site=GameSites200

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

<?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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

<?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)!";

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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.ws/board/index.php?showtopic=212911&st=0&start=0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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? =/!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

When I see eregi function I replace them with preg_match function but the expression/pattern inside might change

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

There are a lot of servers who have a Flux v4p integration :P

Does anyone have a working version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

Base on the comments it seems that the script is not fully functional or contain errors

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Well I followed --> http://www.eathena.ws/board/index.php?showtopic=212911&st=0&start=0

He/she is the one who released it long ago =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  02/01/12
  • Last Seen:  

Anyone know where we can get this add on? preferrably paid work?

Link to comment
Share on other sites

×
×
  • Create New...