Jump to content

desbest

Members
  • Posts

    118
  • Joined

  • Last visited

Everything posted by desbest

  1. I can't get rewriting the URL to work on processwire. Below is my following code in runfirst.php template file that runs before any other template as defined in the config file with $config->prependTemplateFile = 'runfirst.php'; <?php //url rewrite // https://processwire.com/talk/topic/1799-routes-and-rewriting-urls/ function segmentUrl(HookEvent $event){ $url = $event->return; // requested url $segment = "/page/"; if(strpos($url,$segment) == 0){ $event->return = str_replace(rtrim($segment,'/'),'/article/',$url); } } // https://processwire.com/talk/topic/2984-controlling-page-url-structure/ function hookPagePath(HookEvent $e) { $page = $e->object; // if($page->template == 'article') $e->return = "/article/$page->name/"; $e->return = "/article/$page->name/"; } // $wire->addHookAfter('Page::path', null, 'segmentUrl'); // $pages->addHookAfter('Page::path', null, 'hookPagePath'); ?> It doesn't matter which ->addHookAfter command I use, the page still does not rewrite. I have enabled URL segments on the template for the web page I am running. What is going on and how do I fix it?
  2. It is possible to have a responsive design for mybb. Here is a good example on the Sinisterly forum. I choose mybb over php because back in 2006-2008 I ran a free web hosting company, and made the big mistake of choosing phpbb instead of mybb. There was no such thing as plugins. They were called mods. To install a mod you had to modify the core phpbb code, and this caused HUGE problems if you had multiple mods installed or were running a newer phpbb version. Some mods would not work even if you had the required phpbb version and had followed the installation instructions correctly! You had to backup your website every time before you installed a mod. The "automod" mod which automated the modification of phpbb core files made the process easier, but did not solve any problems. You also have to backup your forum before upgrading phpbb as they do new versions which break the website and theme of the website if you're using a custom theme. Phpbb uses bad shoddy code and mybb uses better code. The way to make plugins for mybb is much better than how to make a plugin for phpbb. And mybb has the XThreads plugin! PS. I have not tried phpbb 3.1 and above where they rewrote a lot of things, added new features and removed lots of the suckiness.
  3. I recommend MyBB with XThreads and you might want to make a mybb plugin yourself.
  4. desbest

    Ekzaga

    Well spotted! I am fully aware of this. As my client has not added enough blog posts to the website and the website doesn't get enough traffic as it's not being advertised yet, we both agreed not to format or give stylesheets to those pages. When there are more articles on the blog, it will make sense to style those pages later, as people will want to browse by author, category, tag and date. Also I think I'll leave the blog/post/ page without a stylesheet as a joke. It's not a page that people are expected to find. Maybe I should add an easter egg there.
  5. desbest

    Ekzaga

    I got my client to send me a Word file in Outline View of the questions and to indent right for every subsequent question, and put the 3 desired outcomes for each question in brackets. However for two of the questions which appear in succession, how you answer both of the questions, dictates the final 3 results rather than the 3 results being chosen for one option. What the javascript code does, is have a "mayberesults1" array and "mayberesults2" array for both questions, and it checks whether what 3 results are in "mayberesults2", whether they match what's in "mayberesults1". If they match, it is kept, if there is no match, one of the outcomes from "mayberesults1" is dropped and replaced with one from "mayberesults2". If you use Ctrl+U or Cloverleaf+U then you can see the javascript code for yourself at the bottom of the page. The "results" and "mayberesults1/2" are a HTML tag attribute added to the element you click on. What is inside the attribute are three page id's separated by a pipe symbol, (eg. 473|382|943) There is also a sitemap which makes use of the Sitemap module. Other modules used are Form Builder, Blog, Wire Mail SMTP, Padloper will be used in future once my client gets tutors involved on the website. Below are some screenshots of the website that you won't see on the current website. I prefer the old home page that had the photo on it as it is more graphical and I'm not a fan of minimalism, but the client went with his newest idea for a home page.
  6. desbest

    Ekzaga

    I've made a website for a client, called Ekzaga which serves multiple purposes. It is a forex broker and cryptocurrency exchange directory, as well as a trading tutor marketplace. The trading tutor marketplace section is hidden as my client is trying to get various tutors to join the website willing to teach students, but it does exist in the code, you just can't access it online. Launch Ekzaga
  7. My bookmark isn't being saved properly, as it saves a different selector than what I chose A gif video showing this bug is below. I am using Processwire 3.0.62 I believe that there is a bug with saving bookmarks where the selector being saved is 2 "is empty" for a 2 repeater fields which have OR on them. Update This has been fixed in the latest version of Processwire, specifically the 3.0.94 version
  8. If the GDPR requires websites and other data processing companies to allow me to withdraw my consent at any time, does that mean that I can signup to a website based in the European Union and get them to remove my personally identifiable information from their database, such as my ip address, so I can use their website anonymously?
  9. I updated to the latest dev version which is 3.0.90 and now it works. It also works on the newest master version 3.0.62 It looks like an issue with the old version of processwire 3.0.61
  10. I use WordPress, Codeigniter and Processwire CMS/framework to make websites. Other people will recommend something different.
  11. So what do you want to make with javascript and php?
  12. That's vague. I specifically asked you what you want to make with php and javascript. Every year the possibilities of what you can do in php and javascript increases, so no one person can know everything or how to do everything. It's best to have a skillset of what you want to do rather than learn things you don't need to learn. Below are things you can make with javascript Scraper Bookmarklet PDF Viewer Games Chat room Video and audio chat Audio and video player Video game emulator Below are things you can make with php MVC framework Templating engine Parser Scraper Wordpress/magento/processwire/prestashop/mybb plugins
  13. When I insert an image into the CKEditor in a field called "content" , it should also be added to the "image_bucket" field (an image field) but it appears in the CKEditor but not the image_bucket field. The image appears in CKEditor and in the page when viewed in a web browser, but it does not appear in my file system when I use WebDAV or FTP to see if it's uploaded. When I select the image in CKEditor then click the image button, I get the Invalid image file: 1,shop_novels.png error. (The file name is shop_novels.png) The assets/ folder and all folders within it have 755 chmod. How do I fix this problem? Here's a video showing this behaviour.
  14. It depends on what you want to make, as what you can do with php and javascript increases every year. So what are you looking to make in php and javascript?
  15. Hello I would like a setting in the processwire admin panel that allows me to set the complexity setting of new passwords. Just a reminder to say that this is a good feature to put in.
  16. @rafaoksi The video tutorial you posted shows how to install the new blog profile which contains UI Kit. How do I install the old blog profile?
  17. There was some confusion as to what I asked and what some of you thought I asked. I was asking how to add the "Add new" menu items that should appear underneath "Tree" under "Pages. I was not asking how to add a template to the "Add new" menu located on the Processwire admin panel "Pages" page. However I restarted my computer and the problem is now solved. It must have been something to do with sessions or cookies or something. Well it definitely wasn't the cache.
  18. Hello The "Add new" menu item missing from Pages dropdown menu, but on the Pages admin page, on the right hand side where it says Add New, there are types of pages I can add. Why would the Add new options appear in one place and not the other? I am using Processwire 3.0.62
  19. My web host switched from Apache to Litespeed. Update It seems to be a permissions issue with the files. All my folders are set to 755 and all my files are set to 644, but when I change site/assets/logs/modules.txt to 777 an error disappears. How should I set my permissions under Litespeed? I deleted the cache and now I get these errors.
  20. My web host fixed that error now. Now there's 1 error remaining which stops my processwire website from running. It worked before and no files have been modified. My web host has changed how things work. How can that be fixed? What does the error mean?
  21. Yes. Strangely I cannot chmod my files and folders on WebDAV, so I checked using cpanel's file manager.
  22. Maybe my web host is blocking file_put_contents() I have contacted them to check whether they are blocking that php function as it works on my localhost.
  23. The admin panel of processwire is showing Error 500 Internal Server Error Also there are no logs in site/assets/logs about this. Is my shared hosting putting restrictions on my website? Should I contact them about it? Now my entire processwire website is down and there's no error logs about why.
×
×
  • Create New...