[FIXED] UniUploader "Website ==> WoW" Synchronization

Support and feedback for UniUploader
UniUploader requires microsoft .net runtimes!

[FIXED] UniUploader "Website ==> WoW" Synchronization

Postby Kaite » Fri Nov 17, 2006 3:14 am

I came across a bug today while trying to setup "Website ==> WoW" settings synchronization using UniUploader and UniAdmin. Basically, if the "Retrieve Data" box is not checked, it will never work.

This really needs to be fixed on the client. But for those of you that don't feel like recompiling the source like I did, you can create a temporary fix by changing a database entry on your server. Change the value of the "set_name" column from "RETRDATAFROMSITE" to "RETRDATA" and it should work. Note that the client still behaves a little funny (a checkbox seems to randomly disappear sometimes) but it seems to be working now.

Here's the sql command to make this change on the server:
Code: Select all
update uniadmin_settings set set_name="RETRDATA" where set_name="RETRDATAFROMSITE";


EDIT: Another fix that's needed to modify settings on the server after you change the database...
include/dba1/structure/mysql_data.sql:
Code: Select all
        ('DELAYUPLOAD', '0', '0', 'advanced', 'radio{yes^1|no^0'),
        ('DELAYSECONDS', '5', '0', 'advanced', 'text{250|10'),
        ('RETRDATAFROMSITE', '1', '0', 'advanced', 'radio{yes^1|no^0'),
        ('RETRDATAURL', 'http://yourdomain.com/web_to_wow.php', '0', ...
        ('WEBWOWSVFILE', 'SavedVariables.lua', '0', 'advanced', ...


Change "RETRDATAFROMSITE" to "RETRDATA".

Change to:
Code: Select all
        ('DELAYUPLOAD', '0', '0', 'advanced', 'radio{yes^1|no^0'),
        ('DELAYSECONDS', '5', '0', 'advanced', 'text{250|10'),
        ('RETRDATA', '1', '0', 'advanced', 'radio{yes^1|no^0'),
        ('RETRDATAURL', 'http://yourdomain.com/web_to_wow.php', '0', ...
        ('WEBWOWSVFILE', 'SavedVariables.lua', '0', 'advanced', ...


I suggest that for the next UniUploader release, this be fixed on the client side instead (since it really looks like a client bug).
To fix it on the client side:

Form1.css:
Change
Code: Select all
case "RETRDATA":
  if (settingSplit[1] == "1"){retrdat...
  else{retrdatafromsite.Checked=false;re...
  break;


To
Code: Select all
case "RETRDATAFROMSITE":
  if (settingSplit[1] == "1")
  {
    retrdatafromsite.Checked=true;
    retrDataUrl.Enabled=true;
    chWtoWOWafterUpload.Enabled=true;
    chWtoWOWbeforeWOWLaunch.Enabled=true;
    btnWtoWOWDownload.Enabled=true;
    chWtoWOWbeforeUpload.Enabled=true;
    webToWowLbl.Enabled=true;
    webWoWSvFile.Enabled=true;
  } else {
    retrdatafromsite.Checked=false;
    retrDataUrl.Enabled=false;
    chWtoWOWafterUpload.Enabled=false;
    chWtoWOWbeforeWOWLaunch.Enabled=false;
    btnWtoWOWDownload.Enabled=false;
    chWtoWOWbeforeUpload.Enabled=false;
    webToWowLbl.Enabled=false;
    webWoWSvFile.Enabled=false;
  }
  break;


Thanks for this awesome software. My guild and I are addicted to it!!!
Last edited by Kaite on Fri Nov 17, 2006 9:20 pm, edited 1 time in total.
Kaite
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Fri Nov 17, 2006 2:49 am

[FIXED] UniUploader "Website ==> WoW" Synchronization

Postby MattM » Fri Nov 17, 2006 5:28 am

thanks, ill include this fix in the next release
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA


Return to UniUploader

Who is online

Users browsing this forum: No registered users and 1 guest

cron