Jump to content

virtualgadjo

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by virtualgadjo

  1. Hi again @adrian

    wow, faster than the light speed, just downloaded the last release and, yes, it works really well, thanks so much!!!

    and, you know, don't be confused by my response, it's just that i thought you may have something else to do than reacting that fast, i'm stunned and at the same time it's so pw like πŸ™‚ i should be used to it

    thank you very much again and have a nice day, mine is even nicer, saved some time thanks to you πŸ™‚

    • Like 2
  2. HiΒ  @adrian

    thanks a lot for taking time to answer πŸ™‚Β and don't worry, it will just be the opportunity for me to write my own little module to do this for this website specific needs and i love writing modules for pw πŸ˜„

    have a nice day

  3. Hi,

    funny little problem; if i allow the users to modify the export settings and, for example just want to export the children IDs and titles, il doesn't export a csv at all but tables containing php errors
    ---
    Notice: Trying to get property 'type' of non-object in D:\wamp\www\terrapixa\epifnew\site\assets\cache\FileCompiler\site\modules\BatchChildEditor\ProcessChildrenCsvExport.module.php on line 248
    Notice: Trying to get property 'type' of non-object in D:\wamp\www\terrapixa\epifnew\site\assets\cache\FileCompiler\site\modules\BatchChildEditor\ProcessChildrenCsvExport.module.php on line 254
    ---

    same thing if i just try to add the ids to the original field list

    funny enough, everything works like a charm if i delele this user permission, nice csv as the output but, too bad, without the children ids πŸ™‚

    have a nice day


    ---

    • Like 1
  4. Hi @Boost

    funny, i just had to use it for a friend yesterday and, once more (he often looses his password :)) it worked fine

    the thing is, using this trick, first go to the domain url (not the admin login one) with the ?reset... as it works on the frontend of course and as you can see it doesn't use any user name or email to do the trick, only the user id
    to check if it does something you may try having the "field_pass" table opened, refreshing it after you've gone to the homepage with the reset get var to see if it worked or at least did something

    have a nice day

    Β 

  5. hi,

    no πŸ™‚ this one only resets the password (i think it's @bernhard who gave it)
    first, put this in you _init.php file or on top of your _main.php

    if($input->get->resetpassword == 1) {
      $admin = $users->get(41);
      $admin->setAndSave('pass', 'yournewpassword');
      die("admin url = {$pages->get(2)->httpUrl}, admin username = {$admin->name}");
    }

    then go to http://www.yoursite.com/?resetpassword=1
    and, of course, immediatly remove this code from your template, goes without saying...

    it only uses and targets the first admin user (id 41) whichever login you're using

    have a nice day

  6. hi,

    in this case you have many options...
    - simply unable ACF and Html purifier, good practice if you rely onΒ  the person whomanage the website (you? :)) more risky if you don't
    - use the extra allowed content your field... field tab) with things like
    blockquote2[[attributes]{styles}(classes)
    blockquote3[[attributes]{styles}(classes)
    - or even adding a ckeditor config.js file adding or overwriting native rules but honestly, more useful when using special plugins or if you neede to implement special dropdown menus
    something i often did in ck editor area πŸ™‚ but the previous solutions are a bit more simple

    have a nice day

  7. hoi,

    would be happy to see but just aword to say that i use a lot of svg and src="<?= ...->url" ;?>" works fine if you just want to display it as an img

    <img src="<?= $page->topimg->url; ?>" alt="" />


    image.thumb.png.e2396acfc7576a8e672294ca879abac9.png
    the flag you may know πŸ™‚ is an svg in a simple image field
    sure it would too to force download for example

    have a nice day

    Β 

  8. hi,

    first of all, just check if you have allowed svg files in your file or image field
    if yes, i would strongly suggest you install this module
    https://processwire.com/modules/file-validator-svg-sanitizer/
    as svg being code made files they can be a bit dangerous

    the second thing is the way you 'echo' the img
    is your $content the 'as' of a 'foreach', that's to say an element of your repeater and not the repeater itself
    well, let's assume it's the cas as in the contrary you should have written something like $page->content instead, but you can't access a repeater element field directly by the repeatr itself so, have you tried something like

    foreach($page->your_repeater as $content) {
        echo '<img src="' . $content->images->eq(0)->url . '" alt="" />' . "\n";
    }
    // or, if content is the name of the repeater
    foreach($page->content as $c) {
        echo '<img src="' . $c->images->eq(0)->url . '" alt="" />' . "\n";
    }

    well, the names should be yours of course πŸ™‚

    have a nice day
    Β 

    • Like 1
  9. glad to "hear" you've found the origin of the issue πŸ™‚
    you may have been alerted, trying to see a page other than the homepage on the front side but you would just have seen it didn't work not knowing exactly why, sometimes the simplest and more "brutal" test helps as pw install warns you if there is anything it needs and doesn't find during the process :

    good luck with cwp and my pleasure of course πŸ™‚

    have a nice day

    • Like 1
    • Thanks 1
  10. hi @KG60

    well php 7.4 you're in cotton πŸ™‚
    and yes, if you try a fuul pw install directly on the server and everything goes well, you will be able to compare those two files
    the other things may also be the various php "extensions" that are installed locally as if you're are completly managing the online server using webmin, as you say, it's a little touchy and needs some learning curve
    pw is not very needy in terms of requirements
    https://processwire.com/docs/start/install/new/#requirements
    but if you've installed some modules they may have their self requirements too

    have a nice day and enquiry πŸ™‚

  11. hi @KG60
    well, i don't think the problem is coming from whether the main website is a splash page or not
    reading your posts i see a few usual first questions
    - the server; url rewriting working or not, if the pw website works, it does and so should do the htaccess
    - this famous httphost line in the config (without protocol but i'm sure you know)
    - the database, well if the website works with its right content, should be good too
    - the user you use to log in, have you creates guset users or any kind of users other than you as the super user and aren't you loging with one of them wsth some kind of maintenance mode on

    you see, all those kind of silly first questions we ask ourselves with the normal what have i done wrong πŸ™‚

    honestly when going online with a pw website that works locally, the only things to check are
    - have i put all the needed files on the server (ftp, ssh or whatever you use)
    - have i set the right
    -- database credentials
    -- and httphosts in the config file
    - and if needed have i changed (usually uncomment) the right things in the htaccess file, www or not, ssl or not
    but if the website itself works, all this should be ok
    you could also check the php version, between 5.6 (not a good idea :)) and say 8/8.1 (depending on the pw version you're with) for pw but depending on potential modules you've installed, 7.x and above may be needed

    when stuck like this, if i could, one thing i would do is to add another subdomain and to create a separate database and then try to install a fresh blank pw to see if everything works, if not, you'll soon know why, if yes, sorry, you may have forgotten something somewhereΒ  πŸ™‚

    have a nice day
    Β 

  12. hi,

    you don't need the ip address, i even tend to think it's not a good idea... πŸ™‚
    the problem seems to be your ddb as it's not really usual to have database servers hosts opened to external request

    actually, i often do what you're describing but with the domain name alive with a splash pageΒ  saying coming soon πŸ™‚ ( or the former version) and the future website in a subdomain
    this way, no nedd to change the bdd credentials when the website is ready you just have to change the domain path into the "real" website and change that httphosts line in the config file, job done

    well, you can, while working with the preprod version add a meta robot noindex in the head you'll remove once online as you never know wetherΒ  the master of the world, aka google πŸ™‚ will find the preprod version or not and then reference it which is obviously not what you want...

    but honestly this way you can work with you dev version, even give a client the admin credentials, and when going live with this simply changing the domain path in your hoster panel, no need to change anything about the ddb

    this of course if your dev server is the same as the future live one
    Β 

    Gideon was faster the i πŸ™‚

    have a nice day

Γ—
Γ—
  • Create New...