yes .
Printable View
don't work for me
then i add
<?
mssql_connect($core['db_host'],$core['db_user'],$core['db_password']);
mssql_select_db($core['db_name']);
?>
in my index.php from template, website don't load
how to change and give cash shop points?
2Ronnny - same here. If add - doesn't load at all. If without this "CODE" - load,but can't vote for credits.
I made a conclusion - you ain't web coders at all. Sry.
Working Download Link's Pls?!...
Thanks!
any fix updates?
Working perfect, thks!
still problems after adding template fix.
It works for some friends but for others don't
Problem is from check ip
$check_ip = $core_db->Execute("Select username,deletetime,ip from MUCore_VoteCreditsIp where username=?",array($user_auth_id));
if($check_ip->EOF){
$check_ip_2 = $core_db->Execute("Select ip from MUCore_VoteCreditsIp where ip=?",array($_SERVER['REMOTE_ADDR']));
if(!$check_ip_2->EOF){
echo msg('0',str_replace("{delay_hours}",$delay_hours,text_module_vote_credits_t1));
}else{
$create_ip_acc = $core_db->Execute("Insert into MUCore_VoteCreditsIp (username,deletetime,ip)VALUES(?,?,?)",array($user_auth_id,$time_vote2,$_SERVER['REMOTE_ADDR']));
}
}else{
HI how do i fix Template erro i see the files but i don't know where to put a code at can you guy help me where the files at or where can i put a code at ?? pls help :) i got error that why :)
Thx! great work!
nice work
isit possible to change record as ip to game id ?
Because some of player play in cafe shop and they can't make vote.
$core['connection_type'] = "ODBC";
not mssql this code for mssql maybe have problem
can help me to fix the problem
for does who got error with mssql connect... try downgrading you php to php 5.2, tutorial? click here
then enable your mssql extension in php.ini ";extension=php_mssql.dll" to "extension=php_mssql.dll"
it is
text_module_vote_credits_t2
text_module_vote_credits_t3
text_module_vote_credits_t4
text_module_vote_credits_t6
instead of text.. how to fix?D:
Anyone knows how to see the voter rankings? I want to see the top voters. Please help.
So guys i tryied this Modul and seems not work for me i did everythink i should do i read the instructions none errors its just when i click on the vote link then load page move to the ID of the vote link but dont load it .. its still stays at the vote reward and dont give credits what about this issue ? i mean it dosnt redirect me to xtremetop100 or other links i put ... somebody knows how to fix that ?
Xampp 1.7.7
Same Problem Here !
Xampp 1.7.3
Great files ! Maybe a Top Voters module sometime soon ?
text_module_vote_credits_t1 = ?
text_module_vote_credits_t2 = ?
text_module_vote_credits_t3 = ?
text_module_vote_credits_t4 = ?
text_module_vote_credits_t5 = ?
text_module_vote_credits_t6 = ?
Please add text.
easy, i dont have the time now, but a single query can do this....something like:
$sql= "SELECT TOP 20 "A" FROM "B" ORDER BY "C" DESC";
where:
A = nae or ID, depends on how it's saved.
B = table name where votes are stored.
C = column name for vote quantities storage.
and, of course, you'll need to make a context for this.
maybe in this week i'll make something like this & share it.
For those who has newer version of PHP that don't support php_mssql anymore, one temporary solution is to comment out all mssql lines from :
vote_credits.php
you can rewrite them using adodb too.PHP Code:}else{
$voteid = safe_input($_GET['vid'],'');
foreach ($votef as $vote_dat_re){
$vote_dat_re = explode("?,$vote_dat_re);
if($vote_dat_re[0] == $voteid){
$vote_credits = $vote_dat_re[3];
$vote_link = $vote_dat_re[2];
$vote_id_found = '1';
$vote_id = $vote_dat_re[0];
break;
}
}
if($vote_id_found == '1'){
$select_vote = $core_db->Execute("Select username,vote_time from MUCore_VoteCredits where username=? and vote_id=?",array($user_auth_id,$vote_id));
$make_time_hours = $delay_hours*3600;
$time_vote = time()+$make_time_hours;
if($select_vote->EOF){
$insert_username = $core_db->Execute("insert into MUCore_VoteCredits(vote_id,username,vote_time)VALUES(?,?,?)",array($vote_id,$user_auth_id,$time_vote));
if($insert_username){
$check_memb_acc = $core_db2->Execute("Select memb___id from memb_Credits where memb___id=?",array($user_auth_id));
if($check_memb_acc->EOF){
//$x = mssql_query("Select coupons from MEMB_INFO where memb___id='$user_auth_id'");
//$xx = mssql_fetch_row($x);
//$k = $xx[0]+1;
//mssql_query("Update MEMB_INFO set Coupon = '$k' where memb___id='$user_auth_id'");
$insert_memb_acc = $core_db2->Execute("INSERT INTO MEMB_CREDITS(memb___id,credits)VALUES(?,?)",array($user_auth_id,$vote_credits));
if($insert_memb_acc){
header('Location: '.$vote_link.'');
}else{
echo msg('0',text_module_vote_credits_t2);
}
}else{
//$x = mssql_query("Select coupons from MEMB_INFO where memb___id='$user_auth_id'");
//$xx = mssql_fetch_row($x);
//$k = $xx[0]+1;
//mssql_query("Update MEMB_INFO set Coupon = '$k' where memb___id='$user_auth_id'");
$insert_credits = $core_db2->Execute("Update memb_credits set credits=credits+".$vote_credits." where memb___id=?",array($user_auth_id));
if($insert_credits){
header('Location: '.$vote_link.'');
}else{
echo msg('0',text_module_vote_credits_t2);
}
}
}
}else {
$time_check = $select_vote->fields[1]-time();
if($time_check > 0){
echo msg('0',str_replace("{delay_hours}",$delay_hours,text_module_vote_credits_t3));
}else{
$update_vote_info = $core_db->Execute("Update MUCore_VoteCredits set [vote_time]=$time_vote where username=? and vote_id=?",array($user_auth_id,$vote_id));
if($update_vote_info){
//$x = mssql_query("Select coupons from MEMB_INFO where memb___id='$user_auth_id'");
//$xx = mssql_fetch_row($x);
//$k = $xx[0]+1;
//mssql_query("Update MEMB_INFO set Coupon = '$k' where memb___id='$user_auth_id'");
$insert_credits = $core_db->Execute("Update memb_credits set credits=credits+".$vote_credits." where memb___id=?",array($user_auth_id));
if($insert_credits){
header('Location: '.$vote_link.'');
}else{
echo msg('0',text_module_vote_credits_t2);
}
}
}
}
}
}
}
hello all, what can someone tell me how to fix this?
Attachment 135070