Jump to content
  • 0

Flux-CP Addon V4P, problem with voting sites listing!


Question

Posted

Hello everyone!

After installing the V4P Addon to my CalciumKid's Flux-CP, I'm able to create a new voting site and it appears to work perfectly (it adds to the cp_v4p_sites database and lists on the Edit/Delete option as well).

But it doesn't show on the "Voting Sites" buttom for the people (me or anyone else) to vote! It only shows "No Voting Sites" as if I didn't add any Voting Site =/ I think it's a listing problem in:

addons/voteforpoints/themes/default/voteforpoints/list.php

<?php if($vp): ?>

[...]

<?php if(!$vp): ?>
<br/>
<i>No voting sites found</i>
<?php endif; ?>

[...] = Normal content. Didn't copy because it would get too long, but I haven't change anything in any voteforpoints addon file.

What does "<?php if($vp): ?>" stand for? What condition is that? My V4P addon is either ignoring or not finding that condition to show the Voting Sites on the list for the players to vote.

Thank you for your time,

Keitaro.

Recommended Posts

Posted (edited)

Bump! Still can't use the V4P system with CalciumKid's FluxCP. I had not tested it with the normal FluxCP yet, but i guess it has nothing to do with the group_id modification.

Sorry for double post!

Edited by Keitaro Urashima
Posted

hello Keitaro

<?php if($vp): ?> will check if $vp variable have a Value it (will return TRUE if it have) , type = Array

you can find $vp variable in addons\voteforpoints\modules\voteforpoints\list.php , index.php..

Acctually addons/voteforpoints/themes/default/voteforpoints/list.php will show in Edit - Delete Voting Site

addons/voteforpoints/themes/default/voteforpoints/index.php is responsible for that.

so I conclude that something wrong w/ your index.php cause its working fine in Edit - Delete Voting Site right?

I gues..

/heh

Just Correct me if im wrong..

Posted

@Gerome

You're right about that Gerome. The problem must be in addons/voteforpoints/themes/default/voteforpoints/index.php as that's the path for the exhibition of the Vote Sites the user added by using the Add function.

But the problem is: my index.php remains intact since I downloaded the V4P addon. Why isn't it working for me (and some other users), but works for the most?

Thank you for your answer,

Keitaro.

Posted (edited)

Hmm. Yea, me too! It appear "No voting sites found" after i did fill out the form to submit Voting site. Anyone who can help us?

no1rt.png

no2k.png

no3m.png

Thanks. /ok

Edited by Rabbit
Posted

ok.. Try this..

Replace your addons/voteforpoints/modules/voteforpoints/index.php with this one index.php

I replace the index.php from you to the right place and it made some changes. You need to be logged to see Vote for Points, am i right? Same result "No voting sites found" even i log-in twice, it doesn't make any change at all. It is like, it couldn't save my setting even i'd add New voting Site and submit them. But hey, thanks for helping us. /no1

Any other solution? /ok

Posted

that's the solution i've made to Will Suranol..

maybe your not the same situation with him.. ok ill try another solution..

Posted (edited)

ok.. Try this..

Replace your addons/voteforpoints/modules/voteforpoints/index.php with this one index.php

I did that and it didn't solve the problem. I can see the Voting Site I created in the "Edit - Delete Voting Site" page as you can see in here:

semttulojce.png

But when I click on "Voting Sites" (on the main menu of my CP, Vote For Points - Voting Sites) as a normal member of my server would do, it appears:

semttulo2xn.png

Oh! And when I try to delete a voting site, it goes to a blank page with this adress: http://mycp.com/?mod...on=delete&sid=1

Thank you very much for trying to help me out here. I'm having a bad time trying to solve this problem by myself and had no results by this point... The worst part is that many members can actually use the V4P system with no problem at all! I really can't understand that, as I'm using a fresh clean CP (from here: https://github.com/c...fluxcp-renewal/) for test reasons. I also get a clean V4P addon everytime I'm about to try another thing (from here: https://github.com/mandark022/VoteForPoints).

Keitaro.

Edited by Keitaro Urashima
  • Upvote 1
Posted

This is from Gerome index.php

it works fine for me. just replace your old index to this

addons/voteforpoints/themes/default/voteforpoints

Sorry for late reply. Still same, nothing happen. No Voting Sites. I'm using Calcium_Kid Renewal Flux CP. Wondering what is the major prob.

Posted

Hello Guys.. its hard to solve cause i can't produce the same problem with you! I solved wills Vote 4 Points because we used TeamViewer ..

  • Recently Browsing   0 members

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