Jump to content

flydev

Members
  • Posts

    1,366
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. I would see something like you show us in the screenshot in a Process Module. I remember a lot people discussed about NewsLetter module here in the forum where you can grab insights from them. Also there are already some modules which could be taken as idea / or connected to this module. Like sending Page via mail, members registration etc. You will find all those modules and discussion with the link below : https://www.google.com/search?q=site:processwire.com/talk/ newsletter and For this task, I would see Tasker implemented (the only one drawback, and a good one, it work only under Unix based system, Windows do not support the PCNTL extension) https://github.com/mtwebit/Tasker/wiki I am watching closely now your thread as I will need a gud NewsLetter module in the next months ?
  2. For the faq reference : Mathjax plugin : CKEditor and pasting
  3. Hi, Choose / install a newer PHP version in cPanel. Your current version look too old (below 5.4) and do not support short array syntax..
  4. To use it locally it's simple. Download and install Mathjax lib Download Mathjax from Github and extract the following file and folders from the downloaded archive into the CKEditor Mathjax plugin dir : Left panel = CKEditor mathjax plugin dir / Right panel = Mathjax downloaded folder Modify your config.js (or config-body.js) before : config.mathJaxLib = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML'; after : config.mathJaxLib = ProcessWire.config.urls.root + 'site/modules/InputfieldCKEditor/plugins/mathjax/MathJax.js?config=TeX-AMS_CHTML'; Note : on the config line, the config get value (?config=TeX-AMS_CHTML) need to be the name of one config file existing under the mathjax/config dir. Refresh your page and voila.
  5. Then download it from the cdn server and load the file locally. Nah, you had a typo in your url ?
  6. Hi and welcome, You likely have an issue with document encoding (while pasting the url in the config.js file), you can check it in the Network tab of your browser developer tool, 404 error happen for sure, try recopying from here or write the url by hand : config.mathJaxLib = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML'; Error diff from your previous "pasted" line : Result:
  7. Check @abdus's answer and the comment from @Macrura just before :
  8. Hi, Is your webiste files placed under the `/usr/local/apache/htdocs` folder ? If yes, change the directive `AllowOverride None` to `AllowOverride All` from the Apache config file then restart Apache service: `sudo service apache2 restart` DocumentRoot "/usr/local/apache/htdocs" <Directory "/usr/local/apache/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # # AllowOverride None AllowOverride All # # Controls who can get stuff from this server. # Require all granted </Directory> Edit: make sure you load the `rewrite` apache module : `sudo a2enmod rewrite`
  9. Hi, I don't know if this question is ironically made for your self or if is a real one. Anyway just incase, the answer is easy: Simply add a single character. Always use === instead of == (or !== instead of !=) when comparing so if the types differs PHP will not attempt conversions and will return FALSE. Do not use the == until is really required, knowing what you are doing. Charts: https://github.com/sentientmachine/php_equality_charts
  10. he haven't been able to find one. What about using the built-in user management ? Users could be customer, sellers or admins, you can do what you want. What specificity are you talking about this "membership" related module ?
  11. Hi, sorry not too much time, I think you could use/play with the in-built export/import feature : by @horst Code to read: https://github.com/processwire/processwire/blob/dev/wire/core/PagesExportImport.php Have fun !
  12. Hi and welcome to the forum. Your question is pretty vague. But yes, it will allow it if you write the code for it. The API will help you interacting with the backend easily. Also if the given external service has an API to fetch content from, then the process is more than easy (following their documentation). There is an idea for interacting with another ProcessWire site with the API :
  13. I was exactly thinking about that some days ago but I still can't find the time to do tests.
  14. Hi, look at join-monster (Stem) or DataLoader (Facebook) to solve the N+1 query problem.
  15. Welcome to the forum @PTRRR If you run `heroku logs --tails|grep "code="` and navigate with your browser inside your backend to trigger the error, is there an output ? How do you manage your sessions (session handler like MemCachier) ?
  16. Hi, instead of `$sanitizer->pageName()` use `$this->sanitizer->pageName()` inside your hooks.
  17. I fully understand, same thing here and I still don't know how it really work.. I can use, modify or compile it but not write a single SCSS, LESS or whatever file.. ! I first put my hand into theses things recently with the AdminThemeUikit and AdminThemeBoss. But once you get it, I must admit that they are usefull. A small advice to get started with theses things, take a look there from @Noel Boss : https://github.com/noelboss/AdminThemeBoss#modify-yourself Anyway, great addition, thanks again ?
  18. You should install TracyDebugger asap and then replace all your `echo` with `bd($your_var)` call, it will be easily for us to help you and for you to debug your code. Your hook is working fine on my side. Comment this line `// if($event->object->name == 'job_titel_und_nummer') {` and try again.
  19. Really great ! Thanks for sharing ! Is there a SCSS version of it ?
  20. Do you have installed TracyDebugger ? What's your ProcessWire version ? $jobID = 0; $jobID = wire()->input->get->job; bd("wire() : $jobID"); $jobID = 0; $jobID = $wire->input->get->job; bd("$wire : $jobID"); $jobID = 0; $jobID = $input->get->job; bd("$input : $jobID");
  21. What say the line FILE in the module's information ? If it say nothing then rename the folder `GoodNews` to `ProcessGoodNews` and click on `Submit` on your module page, if still nothing, take a look at your database if there is any trace, on table `modules` and remove the corresponding entry of the module.
  22. lol so easy @adrian I missed this feature ? edit-ot: really.. what a crazzy job with tracy...
  23. In admin.php file : /** * Hook : * Add FieldtypeDecimal to compatible fieldtypes of * a FieldtypeFloat when a superuser need to change the type * of a float field. * * https://modules.processwire.com/modules/fieldtype-decimal/ * https://processwire.com/talk/topic/7542-development-fieldtypefloat-fieldtypedecimal/ * */ $wire->addHookAfter('FieldtypeFloat::getCompatibleFieldtypes', function($event) { if(!$this->modules->isInstalled('FieldtypeDecimal') || !$this->user->isSuperuser()) return; $return = $event->return; $return->set('FieldtypeDecimal', $this->modules->get('FieldtypeDecimal')); $event->return = $return; });
  24. $jobID = $wire->input->get->job; More infos : @BitPoet I think he is outside template
×
×
  • Create New...