*

Chris041973

  • ***
  • 58 posts
Hi,

When publishing a new post, There is no more selection of the Categories after installing the Instant Messenger Plugin with Osclasswizards Theme
Then we cannot post a new listing anymore after installing the Instant Messenger Plugin with Osclasswizards Theme.

For test, Osclasswizards Theme can be downloaded for free :
https://www.osclasswizards.com/osclasswizards/
https://market.osclass.org/themes/general/osclasswizards-free-responsive-theme_238

Please need help,
Thank you ...
« Last Edit: July 14, 2017, 09:23:40 PM by Chris041973 »

*

MB Themes

@Chris
It means there are some javascript errors (probably).
Check them.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Chris041973

  • ***
  • 58 posts
I don't know php, html, css, javascript, ...

Please could you help a bit more ?

Please find below a copy of the item-post.php file :

Code: [Select]
<?php
    
/*
     *      Osclass – software for creating and publishing online classified
     *                           advertising platforms
     *
     *                        Copyright (C) 2014 OSCLASS
     *
     *       This program is free software: you can redistribute it and/or
     *     modify it under the terms of the GNU Affero General Public License
     *     as published by the Free Software Foundation, either version 3 of
     *            the License, or (at your option) any later version.
     *
     *     This program is distributed in the hope that it will be useful, but
     *         WITHOUT ANY WARRANTY; without even the implied warranty of
     *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *             GNU Affero General Public License for more details.
     *
     *      You should have received a copy of the GNU Affero General Public
     * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */

    // meta tag robots
    
osc_add_hook('header','osclasswizards_nofollow_construct');

    
osc_enqueue_script('jquery-validate');
    
osclasswizards_add_body_class('item item-post');
    
$action 'item_add_post';
    
$edit false;
    if(
Params::getParam('action') == 'item_edit'){
        
$action 'item_edit_post';
        
$edit true;
    }

    
?>

<?php osc_current_web_theme_path('header.php') ; ?>
<?php 
echo 
'<script>osclasswizards.item_edit = '.(($edit)? "1":"0");
echo "\n";
if($edit){
echo 'osclasswizards.item_id = '.osc_item_id();
}
echo '</script>';

if(osclasswizards_locations_input_as() =='select'){ 
ItemForm::location_javascript();
}else{
ItemForm::location_javascript_new();
}
?>


<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <div class="wraps">
      <div class="title">
        <h1>
          <?php _e('Publish a listing'OSCLASSWIZARDS_THEME_FOLDER); ?>
        </h1>
      </div>
      <ul id="error_list">
      </ul>
      <form name="item" action="<?php echo osc_base_url(true);?>" method="post" enctype="multipart/form-data" id="item-post">
        <fieldset>
          <input type="hidden" name="action" value="<?php echo $action?>" />
          <input type="hidden" name="page" value="item" />
          <?php if($edit){ ?>
          <input type="hidden" name="id" value="<?php echo osc_item_id();?>" />
          <input type="hidden" name="secret" value="<?php echo osc_item_secret();?>" />
          <?php ?>
          <h2>
            <?php _e('General Information'OSCLASSWIZARDS_THEME_FOLDER); ?>
          </h2>
          <div class="form-group">
            <label class="control-label" for="select_1">
              <?php _e('Category'OSCLASSWIZARDS_THEME_FOLDER); ?>
            </label>
            <div class="controls">
              <?php  if ( osc_count_categories() ) { ?>
<?php if(osc_get_preference('category_multiple_selects''osclasswizards_theme') == '1'){ ?>
  <div class="cat_multiselect"><?php ItemForm::category_multiple_selects(nullnullnullosc_esc_html(__('Select a category'OSCLASSWIZARDS_THEME_FOLDER))); ?></div>
<?php }else{ ?>
              <?php ItemForm::category_select(nullnullosc_esc_html(__('Select a category'OSCLASSWIZARDS_THEME_FOLDER))); ?>
<?php ?>
              <?php  ?>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label" for="title[<?php echo osc_current_user_locale(); ?>]">
              <?php _e('Title'OSCLASSWIZARDS_THEME_FOLDER); ?>
            </label>
            <div class="controls">
              <?php ItemForm::title_input('title',osc_current_user_locale(), osc_esc_htmlosclasswizards_item_title() )); ?>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label" for="description[<?php echo osc_current_user_locale(); ?>]">
              <?php _e('Description'OSCLASSWIZARDS_THEME_FOLDER); ?>
            </label>
            <div class="controls">
              <?php ItemForm::description_textarea('description',osc_current_user_locale(), osc_esc_htmlosclasswizards_item_description() )); ?>
            </div>
          </div>
          <?php if( osc_price_enabled_at_items() ) { ?>
          <div class="form-group form-group-price">
            <label class="control-label" for="price">
              <?php _e('Price'OSCLASSWIZARDS_THEME_FOLDER); ?>
            </label>
            <div class="controls">
              <ul class="row">
                <li class="col-sm-5 col-md-5">
                  <?php ItemForm::price_input_text(); ?>
                </li>
                <li class="col-sm-7 col-md-7">
                  <?php ItemForm::currency_select(); ?>
                </li>
              </ul>
            </div>
          </div>
          <?php ?>
          <?php 
if( osc_images_enabled_at_items() ) {
                
ItemForm::ajax_photos();
            } 
?>

          <div class="box location">
            <h2>
              <?php _e('Listing Location'OSCLASSWIZARDS_THEME_FOLDER); ?>
            </h2>
            <div class="form-group">
              <label class="control-label" for="country">
                <?php _e('Country'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php ItemForm::country_select(osc_get_countries(), osc_user()); ?>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label" for="region">
                <?php _e('Region'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php 
if(osclasswizards_locations_input_as() =='select'){ 
                    if(
count(osc_get_countries()) > 1){
                        
ItemForm::region_select(osc_get_regions(osc_user_field('fk_c_country_code')),osc_user());
                    }else{
                        
$aCountries osc_get_countries();
                        
$aRegions osc_get_regions($aCountries[0]['pk_c_code']);
                        
ItemForm::region_select($aRegions,osc_user());
                    }
}else{
ItemForm::region_text(osc_user());
}
?>

              </div>
            </div>
            <div class="form-group">
              <label class="control-label" for="city">
                <?php _e('City'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php 
if(osclasswizards_locations_input_as() =='select'){ 
                    if(
Params::getParam('action') != 'item_edit') {
                        
ItemForm::city_select(nullosc_item());
                    } else {
                        
ItemForm::city_select(osc_get_cities(osc_user_region_id()), osc_user());
                    }
                }else{
ItemForm::city_text(osc_user());
}
?>

              </div>
            </div>
            <div class="form-group">
              <label class="control-label" for="cityArea">
                <?php _e('City Area'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php ItemForm::city_area_text(osc_user()); ?>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label" for="address">
                <?php _e('Address'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php ItemForm::address_text(osc_user()); ?>
              </div>
            </div>
          </div>
          <!-- seller info -->
          <?php if(!osc_is_web_user_logged_in() ) { ?>
          <div class="box seller_info">
            <h2>
              <?php _e("Seller's information"OSCLASSWIZARDS_THEME_FOLDER); ?>
            </h2>
            <div class="form-group">
              <label class="control-label" for="contactName">
                <?php _e('Name'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php ItemForm::contact_name_text(); ?>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label" for="contactEmail">
                <?php _e('E-mail'OSCLASSWIZARDS_THEME_FOLDER); ?>
              </label>
              <div class="controls">
                <?php ItemForm::contact_email_text(); ?>
              </div>
            </div>
            <div class="form-group">
              <div class="controls checkbox">
                <?php ItemForm::show_email_checkbox(); ?>
                <label for="showEmail">
                  <?php _e('Show e-mail on the listing page'OSCLASSWIZARDS_THEME_FOLDER); ?>
                </label>
              </div>
            </div>
          </div>
          <?php
                        
}

                        if(
$edit) {
                            
ItemForm::plugin_edit_item();
                        } else {
                            
ItemForm::plugin_post_item();
                        }
                        
?>

          <div class="form-group">
            <?php if( osc_recaptcha_items_enabled() ) { ?>
            <div class="recap">
              <?php osc_show_recaptcha(); ?>
            </div>
            <?php }?>
            <div class="controls">
              <button type="submit" class="btn btn-success">
              <?php if($edit) { _e("Update"OSCLASSWIZARDS_THEME_FOLDER); } else { _e("Publish"OSCLASSWIZARDS_THEME_FOLDER); } ?>
              </button>
            </div>
          </div>
        </fieldset>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript">
            $('#price').bind('hide-price', function(){
                $('.form-group-price').hide();
            });

            $('#price').bind('show-price', function(){
                $('.form-group-price').show();
            });

    <?php if(osc_locale_thousands_sep()!='' || osc_locale_dec_point() != '') { ?>
    $().ready(function(){
        $("#price").blur(function(event) {
            var price = $("#price").prop("value");
            <?php if(osc_locale_thousands_sep()!='') { ?>
            while(price.indexOf('<?php echo osc_esc_js(osc_locale_thousands_sep());  ?>')!=-1) {
                price = price.replace('<?php echo osc_esc_js(osc_locale_thousands_sep());  ?>', '');
            }
            <?php }; ?>
            <?php if(osc_locale_dec_point()!='') { ?>
            var tmp = price.split('<?php echo osc_esc_js(osc_locale_dec_point())?>');
            if(tmp.length>2) {
                price = tmp[0]+'<?php echo osc_esc_js(osc_locale_dec_point())?>'+tmp[1];
            }
            <?php }; ?>
            $("#price").prop("value", price);
        });
    });
    <?php }; ?>
</script>
<?php osc_current_web_theme_path('footer.php'); ?>

*

MB Themes

@Chris041973
That is not possible.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Chris041973

  • ***
  • 58 posts
Hi Frosticek,

Please what is not possible ?

I have found the issue  but need to inhibit the "Category multiple selects" of the Theme:
In the Admin settings of Osclasswizards Theme,  go to "Templates/Item Post" menu, then the selection "Category multiple selects" has to be switched to "OFF"

If my explanation are not clear enough, please let me know and I will post Screen Shots

Regards,

Chris
« Last Edit: July 25, 2017, 07:04:25 AM by Chris041973 »

*

Chris041973

  • ***
  • 58 posts
Hi Frosticek,

To solve that issue :
In the Admin settings of Osclasswizards Theme,  go to "Templates/Item Post" menu, then the selection "Category multiple selects" has to be switched to "OFF"

If my explanation are not clear enough, please let me know and I will post Screen Shots

To resume, I cannot select anymore the drop down categories in the Item Post and Edit Post pages as soon as I activate the Instant Messenger Plugin ...

Please what could be wrong with  the "Category multiple selects" because I need that feature due to large number of Categories ?
Moreover, I don't understand that issue at all because it shouldn't have any links between the "Category multiple selects" of the Post Item page and the "Instant Messenger Plugin" !!!!!!

Please do you know why the "Instant Messenger Plugin" affects the Item Post & Edit Post pages of that Theme ?

Regards,

Chris
« Last Edit: July 25, 2017, 09:39:16 AM by Chris041973 »

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Chris041973

  • ***
  • 58 posts
Hi Frosticek,

I have repeated the test with many other themes and noticed that the "Instant Messenger Plugin" is not compatible with the themes below :

1) All OsclassWidzards Themes
2) All Osclass Team Themes excepted Bender which doesn't have the "Category multiple selects" feature

To resume, we cannot select anymore the drop down categories in the Item Post and Edit Post pages as soon as we activate both the "Category multiple selects" feature of these themes and the Instant Messenger Plugin ...

It shouldn't have any links between the "Category multiple selects" of the Post/Edit Item pages and the "Instant Messenger Plugin" ...

Moreover, I believe that the Plugins should fit the Themes and the Themes shouldn't be modified according to the plugins ...

The Best will be to update that plugin to work with the Themes ...

Regards,

Chris

*

MB Themes

@Chris041973
You still ignore my answers and just do what is not needed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

zfc

  • *
  • 2 posts
@Chris041973
You still ignore my answers and just do what is not needed.
You are ignoring what we, the users reported. I am having the same problem as well. Before solve this bug.

*

Фильмы

  • **
  • 16 posts
Re: Osclasswizards Theme - Categories : Bug with Instant Messenger Plugin
« Reply #10 on: December 05, 2017, 04:32:59 PM »
You write what could be the error! Probably there is not one kind of problem! We're not of program all! Make example! We then wonder consulates?????

*

Фильмы

  • **
  • 16 posts
Re: Osclasswizards Theme - Categories : Bug with Instant Messenger Plugin
« Reply #11 on: December 05, 2017, 04:35:06 PM »
I from Russia we here to help each other always and send to hell! Help! I bought the program so help

*

Фильмы

  • **
  • 16 posts
Re: Osclasswizards Theme - Categories : Bug with Instant Messenger Plugin
« Reply #12 on: December 05, 2017, 04:39:18 PM »
Why buy if you don't help! I do not know much English so don't mind that I write not correctly

*

Фильмы

  • **
  • 16 posts
Re: Osclasswizards Theme - Categories : Bug with Instant Messenger Plugin
« Reply #13 on: December 05, 2017, 04:43:20 PM »
Well, you answer?????????

*

MB Themes

Re: Osclasswizards Theme - Categories : Bug with Instant Messenger Plugin
« Reply #14 on: December 05, 2017, 07:11:16 PM »
Answer for?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots