Jump to content

virtualgadjo

Members
  • Posts

    222
  • Joined

  • Last visited

  • Days Won

    2

Everything 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 πŸ™‚
  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 ---
  4. @bernhard πŸ˜€ great to have you here and thanks a lot, i keep this one as carefully as the former one and will try it next time i'm asked for help by a friend having lost his password πŸ™‚ have a nice day
  5. Hi @Boost ah yes, great to "hear" this (actually it's a @bernhard script i keep carefully in a txt file πŸ˜„ ) have a nice day
  6. @Boost my pleasure of course but i would have prefered it was useful πŸ™‚ have a nice day
  7. maybe (really maybe...) your issue comes from the mysql port in your virtualbox but if the website works it shouldn't i must say i'm a litte stuck here as using this trick quite often i never ran into that kind of problem be it online or locally
  8. @Boost funny, maybe try on top of your _main.php file just after the namespace... but this seems to show it does work what i don't really get is your url using a :8000 port being used to set virtualhosts, looks like an url sent by vs code live server...
  9. @Boost sorry i misread your question... what @zoeck said πŸ™‚
  10. @Boost oh yes, being an old guy, i like to see if what i do actually does something, i don't totally rely on my brain πŸ˜„ the important thing here is the homepage with the get var one as using the snippet in your _main ou _init only works on the front side have a nice day
  11. 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
  12. 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
  13. Hi @Mats i had been fighting for a while with this too and ended wrting my own solution to keep some hair on my head πŸ˜„ and my pleasure of course have a nice day
  14. 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
  15. hi, sorry, as it was not said in your first post i assumed you were simply trying to access the svg as an simple image file in the case your httpUrl stays the simplest way despite the get request except from putting the svg code in a textarea field, not very client friendly i must agree πŸ˜„ have a nice day
  16. 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="" /> 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
  17. 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
  18. 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
  19. 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 πŸ™‚
  20. 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
  21. 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
  22. hi, there may be various reasons for this, the first i tend to think about is have you changed this line in the config.php file $config->httpHosts = array('localurl.test'); to fill the quotes with the domain (or sub...) your website is on online ? have a nice day
  23. hi, if you're using pw tinyMCE it's in the setting tab of the field have a nice day
  24. hi, maybe adding something like this in the custom json (if you're using blockquote2 and 3 as tags { "extended_valid_elements": "blockquote2[id|class|style],blockquote3[id|class|style]" } even if seems honestly curious as blocquote class="xxx" sounds a little bit more html friendly πŸ™‚ have a nice day
Γ—
Γ—
  • Create New...