-
Posts
224 -
Joined
-
Last visited
-
Days Won
2
Posts posted by virtualgadjo
-
-
Hi,
honestly for this kind of thing i use one of those two modules π
https://processwire.com/search/?q=runtime&t=ModulesRobin's one is a little more recent but both work fine
have a nice day
- 2
- 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
-
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
---- 1
-
@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
- 1
-
-
@Boost my pleasure of course but i would have prefered it was useful π
have a nice day
-
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 -
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...Β
-
@Boost where have you put the php snippet ?
-
-
@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
Β
-
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 somethinghave a nice day
Β
-
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.phpif($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
-
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- 2
-
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 simplehave a nice day
-
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
- 1
-
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 examplehave a nice day
Β
-
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 dangerousthe 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 likeforeach($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
Β- 1
-
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
- 1
- 1
-
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 toohave a nice day and enquiry π
-
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 onyou 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 neededwhen 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
Β -
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 requestactually, 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
-
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
Add general information to specific template pages in admin
in General Support
Posted
@NicolasΒ you're right and it's one of those things that makes it so great without speaking of all those crazy guys here who never stop helping while writing great addons π