• Resolved kamoe

    (@kamoe)


    Hi Greg, I hope you have a solution for two issues:

    The menu that comes with the authors addon don’t work well in mobile view. If there was shortcode to display only the menu it would have been better, so I could have made a vertical layout. But I don’t think we have this option so I have to disable it and here is the problem:

    When I disable the menu it’s not possible put arguments in the URL like ?author-panel=my-ads or ?author-panel=create-ad the page will only behave according to is set in the panel=””. So to get things to work I need to create one separate page to create ads and another page to list ads.

    Why can’t the page change behaviour according to shortcode when the menu is disabled?

    K

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter kamoe

    (@kamoe)

    Hi again.. I just discovered the “Widget – Author Menu” it could solve my problem, in theory. But it seem to give me the same problem.

    I successfully display the menu in my sidebar and in the main area I have [adverts_author_manage show_menu=”0″]

    The problem is that it will only display the dashboard:
    ——————-
    Hello xx (not xx? then please logout).
    Your profile page is private and not visible to other users. Update privacy settings.
    View My Profile Page
    You have 19 active ads. One or more of your ads will expire on 22/03/2019 (in about 1 m?ned).
    ——————-

    But again none of my links work.. so the meny appear useless for some reason.

    ?author-panel=create-ad – display no create ad
    ?author-panel=my-ads – display no list of ads.
    Logout works.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    when you will use the show_menu=0 param then changing the panel using the ?author-panel variable is no longer possible.

    What you would need to do is create a separate page for each panel and use the shortcode with show_menu and panel params.

    For example if you create in wp-admin / Pages panel a page titles “My Ads” then to show on this page a panel with current user ads you can use the below shortcode

    
    [adverts_author_manage show_menu="0" panel="my-ads"]
    

    Similarly with any other panel in the Authos Manage.

    Thread Starter kamoe

    (@kamoe)

    Thank you, yes I think I have understood that.
    But if the “Widget – Author Menu” is available and I use [adverts_author_manage show_menu=”0″] on the same page where I show the “Widget – Author Menu” I still have the same problem that the “Widget – Author Menu” links to one page with arguments like “?author-panel=create-ad” but the page do not change behaviour according to the link. And if it’s as you say that I need to create seperate pages.. What’s the point of the menu widget as I have no control of what page it link to?

    Plugin Author Greg Winiarski

    (@gwin)

    It was not meant to be used like this. We would need another param in the [adverts_authors_shortcode] to allow switching between menus when the menu is hidden.

    To allow switching the menu items using the widget and have the menu in the shortcode hidden you would need to hide it by adding the code below in wp-admin / Appearance / Customize / Additional CSS panel

    
    .wpa-author-dashboard .wpa-author-menu {
        display: none !important;
    }
    
    Thread Starter kamoe

    (@kamoe)

    Hi Greg, I’m not sure we really are understanding each other here.

    I’m trying to get more control of the layout and the problem is that on a mobile phone having the menu always stick to the left of the ads list / create ads etc is not optimal. I prefer to have the menu in a sidebar so it ends up over or under. That seem not to work as if I put the menu in the sidebar and hide the menu in the main window [adverts_author_manage show_menu=”0″] the result is a menu that do nothing.

    Still I don’t understand the point of the widget if it’s impossible to actually click it and have something happen. So I must have missed something even after reading the Authors documentation with this in mind several times.

    So if [adverts_author_manage show_menu=”0″] does not work in the main content area when I have the widget menu showing, how are we supposed to use the the widget menu??

    Hiding the menu via css did not change any thing of what I mention above.

    Thanks

    K

    Plugin Author Greg Winiarski

    (@gwin)

    The “show_menu” attribute was meant to be used only with the “panel” attribute to show only the selected panel if you want to have each panel on a separate page.

    In your case, you need to use the shortcode as

    
    [adverts_author_manage show_menu="1"]
    

    AND add the CSS snippet i pasted in the last message then the default menu will be hidden and you can use your own menu.

    Thread Starter kamoe

    (@kamoe)

    You say then I can use my own menu.

    But I still don’t understand the point of the widget menu. If I disable the menu from the adverts_author_manage and add the widget.. the url in the widgets have no function.

    Plugin Author Greg Winiarski

    (@gwin)

    If you hide the menu with CSS (not with an attribute) you can use the widgetized menu.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t create new ads/list ads etc after disable menu’ is closed to new replies.