Jump to content

Speed

Members
  • Posts

    65
  • Joined

  • Last visited

Posts posted by Speed

  1. 2 hours ago, kongondo said:

    You can use the 'selector' option. See examples here:

    And the MSN Docs here.

    Thank you, it worked! 

    If not for another fourm post you posted. I wouldn't know anything about template!= inside selector... MSN doc isn't helping much with example 'selector' => '' why not update and use something like this 'selector' => 'template!={templatename.php}' ?

    Once again, Thank you

     

  2. I don't know if this have been asked before, but I couldn't find anything that can solve my issues with MSN. I only wonder could MSN hide specific submenu and leave others intact?  Allow me to elaborate.

    On my page tree in PW I have 3 pages that contain children pages in each.

    Parent1
       Child1
       Child2
       Child3

    Parent2
       Child1
       Child2
       Child3

    Parent3
       Child1
       Child2
       Child3

    The goal is to hide specific sub-menu in parent's name? Only on viewing page.

    Parent1
       Child1
       Child2
       Child3

    Parent2
       Child1
       Child2
       Child3

    Parent3 (child menu hidden whole time, no dropdown or hover over and still intact in PW admin only)
     

    Here's complete code...

     <nav id="navDT">
                    <?php
                        $nav = $modules->get("MarkupSimpleNavigation"); 
                        $nav_options = array(
                        'show_root' => true,
                        'outer_tpl' => '<ul class="nav">||</ul>',
                        'inner_tpl' => '<ul class="drop">||</ul>',
                       
                        
                        );
                        echo $nav->render($nav_options);
                    ?> 
                </nav>

    If its not possible... Are there any other ways?

    Thanks in advance

  3. 9 minutes ago, adrian said:

    if this is on a non local server, you will either need to force to "Development" mode (change from Detect), or check the "Force superuser development mode" button.

    @adrian - Enabling 'Development' mode got debugger bar to show up. (PW in livehost) Thank you. 

    @tpr - let me guess, is that what I should look for??

    Tracy3.JPG

     

  4. Okay, Tracy Debugger module is installed, I 've uncomment  line :913 bd($ckeCSS);  and :961 bd($adminCSS); on AdminOnSteroids.module inside .AdminOnSteroids directory.I have read and followed carefully, I understand am supposed to look for debug bar once debugger is installed. Apparently, its not show any bar. I use chrome browser with firelogger installed. Yes, I've confirmed debugger is enabled, The bar to display at front and back is checked, the uncommented, line 913 and 961 and cleared cache after Tracy debugger module is installed. 

    Tracy1.JPG

    Tracy2.JPG

    Now I am getting confused... what am I missing?

  5. On 12/21/2016 at 3:29 PM, tpr said:

    I tried it on two servers (livehost), in a subdir and in the root.

    You could try to uncomment the series of bd() calls in line 913 and further down in 961 to see what paths/urls AOS tries to use (requires Tracy Debugger).

    You can update the module from the directory as it contains these fixes.

    Sorry for delay in respond, Just returned home from out of town during holiday.  Pardon for my ignorance, Tracy Debugger? Is that PW modules? Plugin? I have looked into this https://processwire.com/blog/posts/introducing-tracy-debugger/ and still not yet sure understand how or where I can preform debugging. Can you explain? 

  6. On 12/20/2016 at 2:40 AM, tpr said:

     

    @Speed

    Could you try this? It's working for me when PW is in a subdir or in the root.

    AdminOnSteroids.module

     

    Module that work for you... was this working on localhost or livehost?  It didn't work on me when I download and tried yours from livehost but worked on localhost. Although I did some test, I've added the code string at the very bottom of AdminOnSteroids.css. and this worked on livehost. So I am guessing somewhere in your module, i didn't detect admin.css in subpage of livehost. 

  7. 5 hours ago, tpr said:

    @Speed are you sure you can access admin.css directly in your browser? Plus AOS checks if the file exists, can you confirm that PHP can access it? (maybe a file permission issue?)

    Edit: File permission for admin.css is set at 644 as default following config.php.  I have created new css file and call them two.css, added same code string, and set   site/templates/two.css into asset path. It doesn't detect two,css either. Can you elaborate how could I access admin.css through browser. Sure I can access .css for template with browser but not knowing how I could this for admin. 

    Here are view source for Admin... it seem like it isn't detecting admin.css from site/templates/...

    viewSource.JPG

  8. Template with no "s" was my typo in this thread only.

    Here's dev tool

    filter.jpg

    Seem like it did not admin.css when i filtered it out. Although file is already there in livehost site same way I did in localhost.

    ftp.jpg

     

     

     

     

  9. On 12/15/2016 at 10:43 AM, tpr said:

     

    Is the search box activated? The feature I was referring was removed in v0.999 so perhaps it's only a cache issue on your side. Try hard reload and see if it helps.

     

    Yes, clearing cache have solved issues... Now I am facing a new problem right after updating. This come from old tread discussion on page tree If you can remember...

    With this code that saved in /site/template/admin.css...

    .PageListItem:not(.PageListItemOpen) 
    span.PageListNumChildren.detail:not(:empty):before {
        content: " ← click to show children - Number of Children: " !important;
    }

    This showed up without problem on localhost running latest update of AOS 1.0.9

    localhost.JPG

    after transferring files from localhost into livehost... It doesn't show, seem like admin.css isn't recognized.

    livehost.JPG

    It happen right after I updated AOS 1.0.9. However, I tried another approach. I've added site/template/admin.css into asset path it still wouldn't recognize. I have uninstall and reinstall, refresh cache and yet problem still exisit. 

     

  10. 11 hours ago, szabesz said:

     Thank you @szabesz

    23 minutes ago, LostKobrakai said:

     

    I've learned a lot from looking into the core modules.

     

    @LostKobrakai  I'd do same as you ... although collect some resources can increase better understanding how module works, especially help to detect bugs lot easier. 

    • Like 1
  11. 17 minutes ago, netcarver said:

     

    Google is your friend, lot's of results in there.

     

    Oh yeah, I have googled up... ALOT before I could ask question here in this thread ( I should have made that clear earlier). I always end up with different result like PW for beginner, some thread discussion on something else and etc...  I guess, google isn't friendly to me today :( . Thank you for your help, everything you gave out will do good for me! 

    • Like 3
  12. On 12/14/2016 at 6:03 AM, tpr said:

     

    @Speed Could you elaborate a bit more? Also, what AOS version are you using? A few versions ago the search could be focused using double-tap the Shift key but that was removed because such issues you mentioned.

    Usually, If you click on any input box in PW you'd see cursor blinking. This will confirm that input box is active. Now If you hold down Shift key on keyboard before you could hit on any keys on keyboard (i.e. to create first capital letter). The input box becomes deactive, the blinking cursor will disappear  The current version i had problem was 0.9.7.  I just updated to 1.0.9... Unfortunately, the problems still exist. 

  13. I don't know if this have been mentioned earlier in this posts. So many posts to scan and see if it have been mentioned. But... I am encountering a little glitch with AOS using Reno Theme. Everytime I select input, I get kicked out when pressed shift key. This is getting so annoying, wondering if you can look into it? 

     

     

  14. Here what I did...

    1. Exporting DB from localhost, Created new DB in different name and importing DB.  success

    2. Transfer entire PW files from local to host. success

    3. Changed config.php

    $config->dbHost = 'localhost';
    $config->dbName = 'bdgplaye_dbname';
    $config->dbUser = 'bdgplaye_user';
    $config->dbPass = '**********'; <!-- will not reveal :)
    $config->dbPort = '3306';

     Then replace config.php from local with /site/config.php in host. suceess

    4. running site from browser and I get an error....

    Quote

    Fatal error: Exception: SQLSTATE[42000] [1044] Access denied for user 'bdgplaye_user'@'localhost' to database 'bdgplaye_beedee' (in /home1/bdgplaye/public_html/beedee/wire/core/ProcessWire.php line 293) #0 /home1/bdgplaye/public_html/beedee/wire/core/ProcessWire.php(149): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #1 /home1/bdgplaye/public_html/beedee/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #2 {main} in /home1/bdgplaye/public_html/bdgp/index.php on line 64

    I am not sure what exactly was the problem but I am guessing it have something to do with config.php? I have tried..

    • change password -- does not solve the problem
    • remove and upload DB again. -- does not solve the problem
    • change $config->dbhost = 'localhost' into $config->dbhost = '127.0.0.1' - does not solve the problem.

    Can anyone help with this issue SQLSTATE[42000] [1044].   ? 

    Thanks in advance

  15. My mind have been circulating as I've been trying to come up with some idea and I cannot get any of it. So I was hoping you guys would help.

     Here's the situation, I've created data and build customer page from localhost. Now it's done... I am in progress of uploading PW into livehost. My customer asked me if their visitor would get to see newly page right after I uploading PW. I've told customer that visitor probably would see 505 error page for a while until I get to fix data and secure it and probably other encountered errors, although I've suggested my customer that I could create url redirect.  The old page will temporarily reside in sub url. And whenever visitor type in domain url, it will redirect to sub url. While at it, I could upload PW, fix 505 error without visitor seeing it. But problem is, I will not be able to view it to confirm page is good for launch. It would redirect me if I type url there. 

    If I can remember from back days, I was able to view page from server... while customer would be redirected. Now I cannot remember how to do this anymore. does anyone have idea how? Or may suggest me something?

     

    Thanks in advance. 

     

  16. 6 hours ago, FrancisChung said:

    Webhost and not touching the .htaccess file  (Making sure there's backups of that too)

    Backup, of course Always! :)

    After five tries of PW installation and transferring between localhost to webhost, including different settings, template, modules. I find that .htaccess is less culprit in my case.  But after done several researches,  .htaccess can be the problem for many reasons...

    depending on web hosting you use, some may require technical assistance for security purpose, the level of the package you use, Indexes Options to be phased out and replace with hosting's brand. Or even FTP software you use that could not copy and paste .htaccess from local to host like cyberduck (windows version) which I just found out and I had to use filezilla instead. The best and promising solution is to log into hosting's cPanel > File manager and pick up .htaccess from local folder.  

    • Like 1
  17. @adrian 

    21 hours ago, adrian said:

    That error means that you didn't select a db in PHPMyAdmin before clicking the Import or SQL tabs.

    Yeah that! Actually the problem was... the new database haven't been created before I could import it.  I am going to try Joss Sanglier steps and see if it will solve my case. 

    @LimeWub 

    12 hours ago, LimeWub said:

    Wait one second, are you getting the errors while copying?? *_* (Not sure how this works .-.)

    Or do you mean, you copy and then try to access the site and you get 500'd

    The original Processwire files was installed at local. I used FTP to copy/duplicate/transfer files from localhost to webhost. I got 500'd when I ran page in browser.  I believe it's gonna be .htaccess related. But I haven't yet to know what to look for. 

    @FrancisChung Its a nice tool... I could use that for future.  Although I have already solved issues with SQL, it was my error. 

    EDIT: 

    The error 500 is a real pain, I 've tried this step https://processwire.com/docs/tutorials/troubleshooting-guide/  it didnt work for me not after phasing out every lines. Now I only wonder, would this be easier if I'd just install PW directly to web host, then copy or transfer files folders etc except for .htaccess from local to webhost? What are your suggestion? 

  18. I have no issues exporting database from localhost using MAMP. But I am having issue importing it to live host.The phpMyAdmin throw an error "#1046 -- No Database selected." Even thought I've already selected them before exporting. Does anyone have idea? 

    dbError.JPG

    Other thing... I am getting 500 internal server error when I transfer entire pw files from local to host through ftp.  What did I do wrong. Is there a official tutorial transferring PW files and data from local to server?

    files.JPG

     

×
×
  • Create New...