Jump to content
thirty bees forum

Acer

Members
  • Posts

    345
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Acer

  1. 1 hour ago, Traumflug said:

    Uhm, nice code, but it solves a not existing problem. Code for properly handling long menus is already there.

    ... except for browser windows of a certain height. Making the window a bit shorter puts submenus not under, but to the right of the parent menu item on hovering, keeping everything available:

    577486265_Bildschirmfotovom2019-10-0912-39-24.png.69ad47375d566f64a03c18fad593b945.png

    Rather than adding yet another interface item to this already pretty complex menu handling code I'd much prefer to fix this length calculation problem. Didn't come around to do it myself, yet, as the workaround is so easy.

    Hi Traumflug, thanks for comment about the code.

    For me, and it appears for others as well, this is an actual problem, as resizing the browser window or clicking on another menu item to collapse the menu just feels unnecessary and frustrates the UX.
    In terms of the 'workaround' that you mentioned: as it seems that this problem has been around since many previous versions of PS 1.6 (if I recall) and TB - it appears that no one has come around to it as yet...
    Can you perhaps show us the workaround you suggested and where to update the code to implement?
    As it's so 'easy', and as the menu system is already pretty complex... many of us here are not as familiar with the system as yourself and the other senior TB devs here.
    Hence the reason I went with my 'solution' to fix this issue.
    For me, this solved a real problem and is nice to use until a better solution becomes available. Your workaround would be appreciated.
    Also, as the default behavior when a menu item is active, is to expand the submenu, not hover, thereby giving feedback on which sub item you're on (without having to hover on the parent menu item) - it's going to be interesting to see how your suggestion behaves / functions when it's implemented.

    • Like 2
  2. Hi 

    As I'll be moving the site from Local to Staging to Live, and do not want to use hardcoded static URLs for my links and images, I need to use some sort of baseURL (from what I can gather).

    I've noticed that smarty has $base_dir, $base_dir_ssl and $base_uri?
    As the different environments have different SSL setups (some with and some without), should I not just use base_uri?

    What exactly is base_uri and can I use it as a good baseURL identifier that changes according to the domain the site is on?

    Also, if the user adds an image to a CMS page on one environment (the normal way by using TinyMce and not a baseUrl 'enchancement'), does that path need to be updated again manually when the site is moved to another domain?

  3. Hi guys

    • Problem:
      • One some menus, screen resolutions and window sizes:
      • I've encountered a niggling issue in the Admin menu (for me at least), where long Admin menu items can cause the next menu items to not be reachable (as there is no expand / contract or scrolling functionality on the menu).
      • The only way to access the menu items below this menu (as far as I know) is to literary go to another menu item to force the large one to contract (wtf).
    • Solution:
      • For me this hampers the user experience a bit. And maybe because I'm used to accordion menus...
      • To make my life easier, I've written a little jQuery solution that can be added to the Admin menu js.
      • This solution creates an expand / contract icon next to an Active menu item (that has a submenu and when the menu is not in the collapsed state).
      • And without having to navigate to another menu item, it expands / contracts the active menu accordingly. The hover / fly over menu is still available.
      • This is my first attempt at writing some code for TB, and I've decided to share it with the community. Hope it provides some value.
         

    Instructions

    • Go to admin***\themes\default\js\admin-theme.js
    • Find:
    function navSidebar() {
            var sidebar = $('#nav-sidebar');
            sidebar.off();
            $('.expanded').removeClass('expanded');
            $('.maintab').not('.active').closest('.submenu').hide();
    • After $('.maintab').not('.active').closest('.submenu').hide(); insert the following code:
    /// Expand Contract Icon for Active Admin Menu Items ///
    // Set text for expand / contract tooltip
    var tooltipcontract = 'Contract dropdown menu';
    var tooltipexpand = 'Expand dropdown menu';
    var expandicon = '+';
    var contracticon = '-';
    // Finds active admin menu item and generates expand/contract icon element in opened state
    $('.maintab.active.has_submenu').find('a:eq(0)').append('<div class="expandcontracticon expandcontracticon-open" title="' + tooltipcontract + '">' + contracticon + '</div>');
    $('.expandcontracticon').attr('style', 'background-color: #2F3237; width: 10%; float: right; margin-right: 5px; display: block; text-align: center; font-weight: bold;');
    // Binds expand / contract functionality to icon
    $('.expandcontracticon').on('click', function (e) {
    	// Prevents the menuitem a element from opening the default link when the icon is clicked:
    	e.preventDefault();
    	/// Ensures all submenus are hidden
    	$('.maintab').removeClass('active');
    	$('.maintab').removeClass('hover');
    	// Checks open/closed state:
    	var checkifopen = $(this).hasClass('expandcontracticon-open');
    	// Does sub menu work on menu item for active and not active states
    	// Changes icon's +- text and title tooltip depending on state
    	if (checkifopen == true) {
    		// If the current state is opened, close the submenu and display 'expand/+' state
    		$(this).html(expandicon);
    		$(this).removeClass('expandcontracticon-open');
    		$(this).addClass('expandcontracticon-closed');
    		$(this).attr('title', tooltipexpand);
    	}
    	else {
    		// If the current state is closed, show the submenu and display 'contract/-' state
    		$(this).html(contracticon);
    		$(this).parent('a').parent('li').addClass('active');
    		$(this).removeClass('expandcontracticon-closed');
    		$(this).addClass('expandcontracticon-open');
    		$(this).attr('title', tooltipcontract);
    	}
    });
    // Checks if the Sidebar is collapsed and hides / shows icon accordingly
    // Check on page load
    $('.page-sidebar-closed').find(".expandcontracticon").hide();
    $("body").not('.page-sidebar-closed').find(".expandcontracticon").show();
    // Check on Toggle Sidebar menu button action and hides the icon as it's not required on collapsed sidebar
    // Slight timeout to allow for page-side-bar-closed class to be applied first 
    sidebar.find('.menu-collapse').on("click", function () {
    	setTimeout(function () {
    		$('.page-sidebar-closed').find(".expandcontracticon").hide();
    		$("body").not('.page-sidebar-closed').find(".expandcontracticon").show();
    	}, 100);
    });
    /// *** *** ///
    • Save, refresh and party 😄

    Hope it helps 🙂

    longmenu-cant-get-to-other-items.png

    contract state.png

    expand state.png

    hover menu.png

    • Thanks 1
  4. On 10/5/2019 at 2:21 PM, Traumflug said:

    File manager isn't a back office controller, so it can't get put into a menu item.

    However, wherever one can edit page content, the editor for this field has a button to open this file manager.

    Thanks for clarifying. Would be cool to have this separate in the future though (not that it's a big one, just a nice to have).
    Will instruct our users to access it through a CMS page in the meantime. Thanks

  5. 26 minutes ago, wakabayashi said:

    @Theo Right now it's not possible.

    But you are right, that it's hard to maintain links like that. For our own shop I have created a little Shortcode System. Which replaces links in FO like [link blog="12"] or [link product="34"]. But this won't work on other system as it depends on blog module for example. 

    Thanks for the feedback... Darn, this kinda sucks. Will create feature request in near future...

  6. 10 minutes ago, Pierrox15 said:

    Hello, In SEO&Urls Panel (adminXXX/index.php?controller=AdminMeta) Did you add "blog" in rewrite column "module-beesblog-post" module? [![Screenshot_2019-10-04 SEO URLs • Futurheli.png](//forum.thirtybees.com/applications/core/interface/js/spacer.png)](https://forum.thirtybees.com/uploads/monthly_2019_10/2050888777_Screenshot_2019-10-04SEOURLsFuturheli.png.962fd0fa6dfef4501ab3f2d614885781.png)

    Screenshot_2019-10-04 SEO URLs • Futurheli.png

    Hi

    I've tried your suggestion, but still not working...

  7. Hi 

    Because the URL you've given will give you a 404 on Local (takes you all the way to the localhost root)
    My test blog post name is 'this-is-a-test'. So using your URL it would be /blog/this-is-a-test:

    622599982_pathissueroot.png.55584e463831f3ca5e543243880f6918.png

    Also, if you try something like this (no initial forward slash):
    blog/this-is-a-test
    It works until you browse the site for a bit, then try to access the link on the menu again -  then you get this:

    path issue.png

    path issue 2.png

  8. Hi

    As there are many PS 1.6 and TB experts here, I'm wondering if you guys mind sharing some ThirtyBees and Prestashop 1.6 Secrets and great tips / resources?
    As I'm still learning, I'm constantly looking for great tips and insights into this awesome e-commerce platform (a well deserved kudos to the team and administrators bytw 😉 )
    I've found some great tutorials by @Nemo, @lesley and @Vekia (PS 1.6).

    However, I'm hungry for more hidden and secret tips to help me and by extension, the TB community on our ThirtyBees journey.
    A nice example would be PS 1.6 and TB Secret Tips, "PS 1.6 Master Course", Admin shortcodes (if they exist 😉 ) and more.

    I'm currently working on a TB project for work, so a bit busy on this side, but I've encountered a few useful shareable tips / tricks while looking for specific project solutions.
    In the spirit of sharing and strengthening the knowledge base, I will endeavor to share whatever useful tips I encounter along the way - when I have the time in between focusing on the project. 
    Also, regarding Free Modules, perhaps we can have a Free Modules Section on the Forum (not the market place)?

    Nemo Tutorials and Tips and Tricks:
    http://nemops.com/prestashop-101-series/
    http://nemops.com/category/tutorials/tips/
    http://nemops.com/category/tutorials/basics/
    http://store.nemops.com/5-free-modules (modules)
    https://www.youtube.com/user/NemoPostScriptum/videos (Nemo's Channel on YouTube - great video resource)


    Vekia (MyPresta, the original):
    https://mypresta.eu/en/art/prestashop-16/
    https://mypresta.eu/en/art/tips-and-tricks/
    https://mypresta.eu/en/art/know-how/
    https://mypresta.eu/prestashop/tag/for-free/ (modules)

    DH42 (Lesley)

    https://dh42.com/blog/
    https://dh42.com/free-prestashop-modules/ (modules)

     

     

  9. Hi

    I've been creating static links to TB Blog pages on the Main Menu, but because I'm working on three different environments, the base URLs will be different.
    So when I move the site from Local to Staging and eventually to Live, I'll need to remember to update the base URLs every time.

    I've noticed in the SEO section that there are a few "shortcodes" being used, like: 

    {categories:/}{rewrite}{/:selected_filters}

    Is there one for baseurl that can be used for a URL in Menu admin?
    Like: URL: {baseurl}/blog/myblogpostpage

    Also, is there a list of all the 'secret' shortcodes for PS 1.6 / TB for Admin (even product admin)?
    I'm aware of some nice Smarty variables for the front-end, but here I'm specifically interested in something similar for the BO Admin.

     

     

  10. 16 hours ago, zen said:

     

    Here is a quick correction, but it will need to be modify in the source files too and updated on github with a proper fix.. but here you go for Niara :

    Find the /modules/beesblogrelatedproducts/beesblogrelatedproducts.php

    around line 164 modify the image name "home_default" to "Niara_home"

     

    
    161:           if ($products) {
    162:              foreach ($products as &$product) {
    163:                   $product['link'] = $this->context->link->getProductLink($product['id_product']);
    164:                   $product['image'] = $this->context->link->getImageLink($product['id_product'], $product['id_image'], 'Niara_home');
    165:               }
    166:           }
    167:           Cache::store($key, $products);

    That will work, but like I said it should be fully modified for Niara or any theme name.. it's under consideration, be patient 🙂

    Thank you for the report by the way !

    Hi Zen

    This works, thank you. Although with the caveat that it's a temporary, Naria specific issue as you mentioned.
    Hopefully it get's sorted in future release.

    Thanks again.

  11. Hi  

    Using 30Bz 1.1.0 Naria theme:
    On a Blog Post: It seems that the images for related products are not being displayed...

    I see this has been asked here as well - any solution?
    https://forum.thirtybees.com/topic/3505-niara-theme-glitches-discussion/?tab=comments#comment-30768

    Note: this appears to be working in the Community Default theme though.

    Screenshot of it not working in Naria:

    blog-related-products.png

  12. 37 minutes ago, datakick said:

    You can install nocaptcharecaptcha module to include captcha on contact page

    Thanks, datakick, I appreciate it 🙂

    Regarding my other requirements:

    For "Contact form on Product page" - I've been following Nemo's PS tutorial: "Ajax Contact Form on Contact Page"
    For the most part, it appears to be working - but further testing is required - it seems I may have to modify the error state in the jQuery, but so far so good.
    For now it seems like it's working 🙂
    https://www.prestashop.com/forums/topic/564724-creating-an-ajax-contact-form-on-the-product-page/
    http://nemops.com/prestashop-ajax-contact-form/#.XYN8VSgzaUl

    Just a question regarding "Adding a new field to the Contact Form":
    I've found Nemo's Tutorial, but not sure if it will still work...
    I will try to implement, but could be a while before I provide feedback...
    Is there a better or easier way to do this?
    http://nemops.com/adding-new-fields-to-prestashop-contact-form/#.XYOCMCgzaUk

  13. Ok wow... I've check it out, turns out it's not just a simple "Contact form sending a mail" module.
    No, it's a fully fledged "Customer Service System" with tickets, 'reply direct from system', messages timeline, and more. Wow... 🤗
    Sure, a built-in Captcha system would've been a nice addition (not to mention adding fields from the BO admin - I'm pushing it, I know 😉) + I need to figure out how to leverage this on the product page, but still...
    Much more than I expected!

    30Bz continues to impress! 😀

  14. For me so far, the "slash" problem has only happened on the Core Updater as well as causing a "minor" js error on the Product Comparison page.
    Other than that, I haven't encountered any other "slash" related issues on my local development environment running XAMPP on Windowz so far.
    And I've been testing and playing with 30Bz extensively for a quite some time now.
    The fix that MusicMaster provided earlier for the Core Updater issue (on the GitUpdater page) worked for me. Incidentally, he also provided a fix for the Product Comparison js error which also worked.
    I haven't had the need yet to change any PS ROOT DIR or PS CORE DIR stuff so far...

  15. 6 hours ago, lesley said:

    Oh, I did notrealize you were using windows. I will have to defer to @Traumflug or @musicmaster for that. We don't officially support windows. 

    Hi 

    A lot of people use XAMPP on Windows for local development. I've had this issue as well. If you guys can fix this, it would be cool because otherwise more people will encounter this problem going forward.

     

×
×
  • Create New...