Jump to content

Aries

Members
  • Posts

    70
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Aries

  1. PayPalIpnUrl  should be www.paypal.com for live and www.sandbox.paypal.com for testing not this www.myROdomain.com/?module=donate&action=notify

    If you followed the instruction you should have atleast reach the paypal website upon clicking donate.

  2. Goto {flux_dir}/themes/{your_theme}/account/view.php.
    Loor for this line:
     

    <?php echo htmlspecialchars($account->email) ?>

    Change it to
     

    <span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NotApplicableLabel')) ?></span>


    Note that the admins will still be able to view the email address as defined in config/access.php

    		'account'   => array(
    			'index'    => AccountLevel::LOWGM,

     

  3. There are few points to make sure that the donation works.

    1. It cannot be tested if you are testing it locally. Make sure to publish the site which should be accessible externally, paypal needs to validate the IPN url.
    2. You have to setup your IPN. Try it first using sandbox
      1. Login to sandbox with business account https://www.sandbox.paypal.com
      2. Go to profile and settings
      3. Click my selling tools
      4. Look for Instant payment notifications and click update
      5. Enter your sites notification url e.g. http://YOUR-RO.COM/?module=donate&action=notify
      6. Tick Receive IPN messages (Enabled) then save

    After setting up the IPN try to donate again to verify if IPN is sending you the payment notification which wiill then add the flux credits.

  4. Update this part of pvpranking.php on module

    $col  = "ch.char_id, ch.name AS char_name, ch.class AS char_class, ch.base_level, ch.base_exp, ch.job_level, ch.job_exp, pl.kills, pl.deaths, pl.streaks,";
    $col .= "ch.guild_id, guild.name AS guild_name, guild.emblem_len AS guild_emblem_len";
    
    $sql  = "SELECT $col FROM {$server->charMapDatabase}.`char` AS ch ";
    $sql .= "LEFT JOIN {$server->charMapDatabase}.guild ON guild.guild_id = ch.guild_id ";
    $sql .= "LEFT JOIN {$server->loginDatabase}.login ON login.account_id = ch.account_id ";
    $sql .= "LEFT JOIN {$server->charMapDatabase}.pvpladder AS pl ON pl.char_id = ch.char_id ";
    $sql .= "WHERE 1=1 ";

     

  5. $sth->execute(array($gtheme_config['guild_id']));

    where do you get the $gtheme_config['guild_id']?

     

    The code seem to work though. Notice that I added a guild id there which I cannot see on your code.

    <?php
    if (! defined('FLUX_ROOT')) exit;
    
    $guild_id = 1; // <- guild id
    
    $sql = "SELECT name, master FROM {$server->charMapDatabase}.guild WHERE guild_id = ?";
    $sth = $server->connection->getStatement($sql);
    $sth->execute(array($guild_id));
    $gtheme_gom = $sth->fetch(); // just use fetch since you only expect one result unless ..
    
    ?>
    
    <ul id="pgom">
        <li>
            <img class="gom" src="<?php echo $this->emblem($guild_id); ?>" />
        </li>
        <li id="lbl" ><b>Guild: </b> <?php echo $gtheme_gom ? $gtheme_gom->name : '???'; ?></li>
        <li id="lbl" ><b>GM: </b> <?php echo $gtheme_gom ? $gtheme_gom->master : '???'; ?></li>
    </ul>
    
  6. make sure download.php exist on modules and themes folders.

     

    modules/main/download.php

    <?php
    if (!defined('FLUX_ROOT')) exit; 

    themes/default/main/download.php

    <?php if (!defined('FLUX_ROOT')) exit; ?>
    
    <h2>Downloads</h2>
    <p>This is the downloads page.</p>
    ...
    ...
    ...
    
  7. maintenance mode not working

     

    Maintenance mode is working fine. Just make sure you are not logged in as admin since it has access even the maintenance mode is ON.  To modify access while on maintenance mode just open:

    flux_dir/addons/choko_shop/config/access.php and find this line:

    
    
    'AccessShopOffline'	=> AccountLevel::ADMIN, // View shop even offline.
    
    and also if you enable renewal mode

     

    Renewal toggle setting has been removed and the addon will just detect if you have the renewal database or not and will adjust itself so less misconfiguration. The newly uploaded version has this change please PM me if the error page still exist after upgrade.

     

    testmode is currently working

     

    FYI, testmode means paypal sandbox so that you won't need to use a real paypal email to simulate the buying/order process.

×
×
  • Create New...