*

Anonymous

  • ****
  • 200 posts
advertisement manager client key
« on: July 02, 2017, 10:44:47 AM »
@ frosteik

same issue am facing http://forums.mb-themes.com/advertisement-manager-plugin/clientkey/

in oc admin pannel after enabling rewrite mode or so called permalink mode,

I get http://localhost.com/os/banner-review/{clientKey} , but after disabling permalink friendly url !
this link http://localhost.com/os/banner-review/{clientKey} converts into
 http://localhost.com/os/index.php?page=custom&route=banner-review

I guess that's rewrite issue,

so I tried to putting RewriteCond %{REQUEST_URI} !^/advertisement_manager in .htaccess for excluding advertisement plugin from rewrite,
but it doesn't works,


RewriteBase /os/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/advertisement_manager
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /os/index.php [L]
any solution !
« Last Edit: July 02, 2017, 10:48:13 AM by Anonymous »
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: advertisement manager client key
« Reply #1 on: July 02, 2017, 09:07:48 PM »
No htaccess modifications are required. Try to add &clientKey=123 at the end of non-friendly url, where you replace 123 with your id.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ****
  • 200 posts
Re: advertisement manager client key
« Reply #2 on: July 03, 2017, 07:25:20 AM »
@frostiek


I agree with you but,

what about this page...

http://localhost.com/os/banner-review/%7BclientKey%7D   how this page url rewrite issue will be solved.


I agree with your quote,  &clientKey=123 , but instead it will be better if client page could work.

  pls, let me know, where I have to modify .........


 <h2>
    <?php _e('Banner review', 'advertisement_manager'); ?>

    <?php if($client_key <> '') { ?>
      <?php _e('for client', 'advertisement_manager'); ?> <strong><?php echo $client_key; ?></strong>
    <?php } ?>
  </h2>

  <?php if(!isset($banner['b_id']) or $banner['b_id'] == '') { ?>
    <?php if($client_key <> '' and $banner['b_id'] == '') { ?>
      <div class="rev-error">
        <?php echo __('Your client key', 'advertisement_manager') . ' <strong>' . $client_key . '</strong> ' . __('was not recognized!', 'advertisement_manager') ; ?>
      </div>
    <?php } ?>

    <form class="row" action="<?php echo osc_route_url('banner-review'); ?>" method="post">
      <label for="clientKey"><?php _e('Enter your client key', 'advertisement_manager'); ?></label>
      <input name="clientKey" id="clientKey" maxlength=8 />
      <button type="submit"><?php _e('Search', 'advertisement_manager'); ?></button>
    </form>
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: advertisement manager client key
« Reply #3 on: July 03, 2017, 11:08:08 AM »
Your post is irrelevant to your original question.
Issue you are talking about has been fixed and will be released next week.
« Last Edit: July 03, 2017, 12:41:16 PM by frosticek »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots