Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. I got smae problem with moved pw website to local server. I reset passwort and have same userAuthSalt, but I can't login. If I use the pw I've created it doesn't show any error, just stays on login page and I'm not logged in.
  2. I got an WP installation for a friend on my host. I experienced already this kind of base64 encoded scripts at the end of the index.php's... I think it is related to this then, thanks for the infos. I will also have to take a look then. Sorry to hear you lost so much time on this. Glad you posted this here.
  3. You could use the template class to render the template and set vars being "sent" to it. Not sure if that's what you're looking for. $t = new TemplateFile($config->paths->templates . "{$some_template_name}.inc"); $t->set( "mypage", $page ); $t->set( "articles", $some_articles ); echo $t->render();
  4. Oliver, that's pretty much how the current unfinished version apeisa coded works already. Product cart is saved in a custom table , once order completed the order gets saved as page under /admin/shop/orders/ with childpages as the products in the order. The template has a page field reference that is linked with the product. My current shop project bases on apeisa's start, and is pretty much still the same except I have variations. Only colors though, but I have solved it by having a "product-variation" template that presents the variable fields or any additional fields of the base product template. Then the product added to the cart will be one of these variations, the main product parent page then can serve for certain global settings. This allows for maximum flexibility in how to create products and variations. This needs some coding/pw skills to then adapt the template code for the different forms and some shop module code. But it's just me, I prefer this way of having control over code and setup while having some helper modules to help with certain common tasks. As for more complex variations with prize,color,size t-shirt example. Then the more usual way of having options as serialized data along with the main data like prize, product id, name would be required. I think having repeatable/flexible fields could be helpful here a lot. What you think? But still a simple setup with subpages and references could do this all and I like to be able to easily extend it and add thumbs for each variation and so on. It also is just a matter of having the cart helper support options serialized and building the right forms to add the products at the end.
  5. Didn't you plan to implement bramus_cssextras plugin? I think it solve a lot of issues standard css select has. I think the behavior you get with the cleaning feature, its always been like this if I recall correctly and it is a mess. It will only remove tag styling like bold and em etc not classes set on elements. With the bramus plugin you don't get stacked classes and it let's you remove the class set easily.
  6. Your welcome. Also if you want an admin page all users that have "edit" permission can see, you could just use: 'permission' => 'page-edit' , so no need to create custom role for that. But you're free to create one to have additional control.
  7. Sure you can, but then you would require to do the "redirect" stuff in your search result rendering. For example each page that is in the result that has one of those templates, you want to output the parent url instead of the found page. $results = $pages->find("..."); foreach($results as $result){ if($result->template == "members" || $result->template == "events") $url = $result->parent()->url ; ... } But a nice side effect of using a php template with a redirect, is that if you edit a page and using "view" it redirects to the page it is listed. Without a php template you would have no "view" function anyway, but just to mention. Also notice, that repeatable page elements are on roadmap and will come pretty soon. But using sub pages is the way to go for now.
  8. You can set the permission in the get module info of the process module. 'permission' => 'somepermission' just create a custom permission and add it to your editor role.
  9. You could make the physical .php template of members and events redirect to their parent page where they're listed. $session->redirect( $page->parent()->url );
  10. Notice the typo?
  11. did you put the meta tag in the templates-admin/default.php too?
  12. ..for sure it must be this, I for some reason just assumed he must know it and have checked already... stipud me Yeah, good one apeisa. Maybe good idea to put in admin templates.
  13. // we don't even want to go there if($.browser.msie && $.browser.version < 8) { $("#content .container").html("<h2>ProcessWire does not support IE7 and below at this time. Please try again with a newer browser.</h2>").show(); } Not sure, it should be pretty solid, although I heard it's not completely rock-solid-bullet-proof in jquery using this browser sniffing, but there's a more solid around. Would have to search for it again in case.
  14. PW supports IE8 and above, not sure why you get that in IE8. I had to test and fix some things in IE8 already as my clients are on IE8 many times. They didn't had problems like this so far. Can you check what your user agent is set to in your IE8?
  15. Hey visulin thanks for your input, but that's basicly the idea what we (I) want to do. A setting in the inputfield where you could enter the path to a css outside /wire/ folder, basicly anywhere you want in your root or site folder. You could set all tinymce fields to share the same, or each one a different.
  16. Aaaand I was waiting for this answer since 2 months as I wrote a lengthy post back then about this issue above in this thread asking how this issue could be solved... Think you must have missed it then
  17. Thanks and welcome to the forum! I think the problem is that the breadcrumb shows the current page. like "Users" at the end, but it shouldn' even show up. It should be like on setup sub pages, it doesn't show "Fields" for example if you're on the "Fields" page.
  18. I think you missed this thread
  19. Hey, almost forgot about it, but only almost. I recently just was thinking about this one, great to hear you're working on it Nico. Unfortunately I got so much up with higher prio, I need to catch up first before I could spend more time on this.
  20. You know the html templates in TinyMCE you can setup, to then select from the dialog using the template button? It allows to insert chunks of html i.e. table, divs, just predefined html being inserted ready to fill in your text. It is implemented in my version. You just need to add the "template" button to the config and maybe "tablecontrols"... the html templates config is hardcoded into the config js and the files located in the folder "tinymce-templates". I think it's a nice feature. oh dear, since I already done some fooling around I could give it a try... just think need your assistance... but wait.... The hard thing for me is that I'm still not sure, what and how far this should go. - I think for now we just can implement the css bramus plugin into the distribution, and maybe enable "templates" settings, those can be placed outside core anyway too (I think). Same with the content.css. - If one is in need of another plugin, I could try if it's possible to include it from outside core too. - If one needs even more, I would suggest moving it outside core and go from there and maintain it. So I'm still trying to wrap my mind around (not first and last time I guess). Any more ideas, or thoughts? I also think spending some energy and time to the PW plugins in tinymce, to extend or improve those, would be nice?
  21. Looks nice, like the illustration work also. I can't say that from the website , it looks nice, but first time I visited I didn't go any further than homepage, there was something strange. Now looking again, "advertisement" show just a white page, that must have been the issue before. Also I would recommend checking the image sizes as many are far too big, bigger than ever displayed. That results in a slowness of the site, which makes the experience worse.
  22. Thanks Ryan, Pete it works now. No limit
  23. apeisa, it can be used, i posted code above already... but I use it just for admin related tools, prototyping with bootstraping. It wouldn't be recomended using it in front-end production, because of the things apeisa mentioned.
  24. Awesome Nico! Thanks for sharing. Will for sure check out some time.
  25. I think you can do something along these lines, not sure though about side effects <?php // loads modules, that will add it to the script loading below $this->modules->get("JqueryCore"); $this->modules->get("JqueryFancybox"); ?> <?php foreach($config->styles->unique() as $file) echo "\n\t<link type='text/css' href='$file' rel='stylesheet' />"; ?> <?php foreach($config->scripts->unique() as $file) echo "\n\t<script type='text/javascript' src='$file'></script>"; ?> Of course apeisa and diogo is right, but I just wanted to show it's possible. Edit: while kinda on topic. Ryan, could we have an updated Fancybox? The current in PW "1.2.6" is way outdated. I always struggle to get iframes working. I could need some of the more advanced features, options in the PW admin.
×
×
  • Create New...