saintfrater / wowenhanced

Automatically exported from code.google.com/p/mwenhanced, I decided to continue this project
0 stars 4 forks source link

vote system - send item problem #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. vote system - send item

What is the expected output? What do you see instead?

Item need to be send when player press Choose. But I see this error
message: Remote Login Problem

What revision of the product are you using? In what browser?

Latest, all.

What version are you using? MangosWeb or TrinityWeb?

MangosWeb - not yet tested on trinityweb, but i will

Configured as is say in install text.

Web and server are on the same machine, linux, i have open ports, i did
test username with big letters and with low, no effect.

Maybe i'm doing something wrong? Or anyone can confirm this as bug?

Original issue reported on code.google.com by 13st...@gmail.com on 5 Mar 2010 at 1:31

GoogleCodeExporter commented 8 years ago
A remote conection problem meanns 1 of 2 things. 

1. Did you set up your telnet information in the config.xml? (look for
<vote_system>,<ra_vote>,<id_1>

2. Is you server online? your server must be online to send rewards

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 1:48

GoogleCodeExporter commented 8 years ago
Here we go:

<vote_system>
   <enable>1</enable>
   <max_points_per_day>-1</max_points_per_day>
   <mangos_revision>0</mangos_revision>
   <vote_ra>
        <id_1>
      <address>localhost</address>
      <port>3443</port>
      <username>myadminworkingaccount</username>
      <password>myworkingpassword</password>
       </id_1>
    </vote_ra>
</vote_system>

Server is online all the time. With same data I can send items throu 
MiniManager.

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:04

GoogleCodeExporter commented 8 years ago
Oh, on TrinityWeb it says this: Remote Login Problem: -Not enough privileges. 
But I
have enugh privileges. So maybe is this somehow connected. I'm not sure.

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:13

GoogleCodeExporter commented 8 years ago
not enough privileges means the account you have selected is an admin on the 
realm
your trying to send too. Make sure that in the gm level in "account_access" for
trinity is set to -1. So trinity works and mangos doesnt. I will fix this asap

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 2:16

GoogleCodeExporter commented 8 years ago
* not an admin * sorry :p

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 2:16

GoogleCodeExporter commented 8 years ago
trinity worked ok, i did change only realmid to -1 for admin account in 
account_access.

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:20

GoogleCodeExporter commented 8 years ago
my mangosweb hg copy works fine... try copying your files in this order:

trinityweb folder -> components - > community -> community.vote.php

paste

Mangosweb folder -> components - > community -> community.vote.php

tel me if that works

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 2:28

GoogleCodeExporter commented 8 years ago
if i do that, then when i click on vote picture i see blank page

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:42

GoogleCodeExporter commented 8 years ago
ok, this is what im going to do, i will re-upload the new vote files, test 
them, then
have you update

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 2:44

GoogleCodeExporter commented 8 years ago
those files you suggest to copy aint same i did check with wincompare :) just 
for info

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:45

GoogleCodeExporter commented 8 years ago
whats different?

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 2:51

GoogleCodeExporter commented 8 years ago
Mangos side has this in there:

include "vote/language.php";
include "vote/inc.php";

and more:

function execute_query($query, $error = "")
{
    $query_result = @mysql_query($query);
    if($query_result)
        return $query_result;
    else
    {
        die($error.mysql_error());
        return false;
    }
}

and more:

function show_chars_menu()
{
    global $DB, $CHDB;
    $results = $CHDB->select("SELECT `guid`, `name` FROM `characters` WHERE `account` =
".$_SESSION["user_id"]);
    foreach ($results as $row) {
        echo "<option value=\"",$row["guid"],"\">",$row["name"],"</option>"; }
}
function add_char_to_session($guid)
{
    global $CHDB;
    //$_SESSION["char_name"] = mysql_result($CHDB->select("SELECT `name` FROM
`characters` WHERE `account` = ".$_SESSION["user_id"]." AND `guid` = ".$guid." 
LIMIT
1"), 0);
}

and this:

            echo $reward_texts[$langs[$set_lang][2]][$key];

and in trinity are this things missing (or they aint there on purpose ofc), you
should check with some diff software this - if you really want same files.

Original comment by 13st...@gmail.com on 5 Mar 2010 at 2:59

GoogleCodeExporter commented 8 years ago
you my friend do not have the latest revisions :D 

see this is the repo copy:
http://code.google.com/p/mwenhanced/source/browse/components/community/community
.vote.php

What happened was yesterday, the repo got reset, so your copy is the latest 
copy, of
the old unset repo. We reset the repo because the .hg folder was way to full of 
old
useless files. You either need to do a force pull, or re-download. I am so 
sorry for
the inconvenience. 

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 3:14

GoogleCodeExporter commented 8 years ago
Hmm. Ok. Thanks for your infos and your work. I'll try to do something. Thanks 
again.

Original comment by 13st...@gmail.com on 5 Mar 2010 at 3:20

GoogleCodeExporter commented 8 years ago
anytime :)

Original comment by wilson.steven10@gmail.com on 5 Mar 2010 at 3:25