*

ferry

  • ****
  • 155 posts
Admin cannot move to top
« on: August 23, 2017, 05:39:55 PM »
If i mark a ad to move to top from admin, there is a message: Listing has been marked successfully.

But the ad doesnt go to the top of the listings

*

ferry

  • ****
  • 155 posts
Re: Admin cannot move to top
« Reply #1 on: August 23, 2017, 07:03:56 PM »
I also dont see the buttons on the item page of my theme.
Maybe because is an old theme :)

I think i have to place an hook to show the buttons, then i can move to top.

But on the plugin page there is at the bottom:
 Plugin Setup
There are no changes required in your theme files in order to make plugin fully functional.

Here is a part of my item.php:

Code: [Select]
<?php ?>
        <div class="description">
        <?php echo osc_item_description(); ?>
        </div><!-- /Description -->
        <div class="additional-information row">
        <?php if( osc_count_item_meta() >= ) { ?>
        <div class="col-md-6">
            <div class="custom-field">
                    <h3>Caracter&iacute;stico</h3>
                    <?php while ( osc_has_item_meta() ) { ?>
                        <?php if(osc_item_meta_value()!='') { ?>
                            <div class="meta">
                                <label><?php echo osc_item_meta_name(); ?></label>:&nbsp;&nbsp;<strong><?php echo osc_item_meta_value(); ?></strong>
                            </div>
                        <?php ?>
                    <?php ?>
                <?php //osc_run_hook('item_detail', osc_item()); ?>
                </div>
            </div>
<?php ?>
        <?php if (function_exists('custom_attributes')) { ?>
        <div class="col-md-6">
                <div class="custom-detail">
                <?php custom_attributes(); ?>
                </div>
            </div>
        <?php ?>
        </div>
    </div>
   
    <?php if ( osc_item_country() != null) { ?>
    <div class="listing-location">
    <!--<h3><?php _e('Location''amuncios'); ?></h3>-->
        <?php if ( osc_item_region() != null) { ?><div class="listing-address"><?php echo implode(', '$location); ?></div><?php ?>
    <?php osc_run_hook('location'); ?>
    </div>
    <?php ?>
   
    <?php if( osc_comments_enabled() ) { ?>
    <div class="listing-comment">
    <h3><?php _e('Comments''amuncios'); ?></h3>
    <?php osc_run_hook('dd_fb_comments'); ?>
    </div>
    <?php ?>
   
    <?php osc_current_web_theme_path('related-listings.php'); ?>
</div>

*

MB Themes

Re: Admin cannot move to top
« Reply #2 on: August 23, 2017, 08:43:36 PM »
@ferry
Thanks for feedback, we have fixed problem with move-to-top functionality and few other minor issus with "mark as admin".
Move to top functionality does not require anything to be modified in theme files.

We will release update next week with few changes and hotfix as there is more of them to be fixed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ferry

  • ****
  • 155 posts
Re: Admin cannot move to top
« Reply #3 on: August 23, 2017, 08:49:32 PM »
Ok thank you.

But in Veronika and mcfly i see buttons on item page if i am logged as admin:

https://prnt.sc/gc70kf

But on my theme there are no buttons:

https://prnt.sc/gc71tr

How can i make these buttons visible?

*

MB Themes

Re: Admin cannot move to top
« Reply #4 on: August 23, 2017, 08:54:55 PM »
@ferry
First, these buttons are shown just in case you are logged in as listing owner or site admin in same browser.
Buttons are shown using core hook item_detail that should be present in any theme, plugins show data using this hook on item page.

In code you have posted, this hook is commented. This is no correct and theme author might to try avoid some bugs or discrepancies...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ferry

  • ****
  • 155 posts
Re: Admin cannot move to top
« Reply #5 on: August 23, 2017, 08:57:00 PM »
In code you have posted, this hook is commented. This is no correct and theme author might to try avoid some bugs or discrepancies...

 :)  Thanks to wake me up :)

Notepad dont give colours thats why i didnt see