-
Posts
378 -
Joined
-
Last visited
-
Days Won
5
Everything posted by gornycreative
-
Just making a note here that Form Builder doesn't seem to see this field anymore as of the v3 - not sure if the last fix you mentioned above for v2 would work. I will give it a try.
-
Admin Theme Boss – based on Uikit 3
gornycreative replied to Noel Boss's topic in Themes and Profiles
I have found that the jquery date picker is by default set to a dark background with black text. By adding these lines in the blue.less files (etc.) @pw-datepicker-background: @theme-primary-color; @theme-button-secondary-background: @theme-muted-background; I am able to at least get the background to match the rest of the theme color variables but I have tried many things and cannot find the override that is keeping the text black. In the forms.less I have changed the color of the various ui-state element to the @theme-text-color-inverse variable which should make the text white but it is not working. Has anyone else had this problem or found a workaround yet? -
That makes a lot more sense in terms of advantages - I will need to look into this some more! Thanks.
-
This looks great - I don't personally care for these types of editors because I'm an older user, but many clients have asked for this type of builder. I'd probably get used to it and enjoy it once I got into the habit.
-
When this module is turned on, my CKEditor modals get buried under an overlay I can't obviously click through. The overlay gets set to a ridiculously high z-index. Normally the overlay sits at I think 10000 and then the modal table gets throw above that at like 10010-10060. When AOS is enabled - with no submodules activated AT ALL - there is a css override in aos.min.css and here's what it puts out in my install: .cke_dialog_background_cover { z-index: 103000 !important; } I'm not sure why that rule is in there, all that I know is that if I turn off AOS completely, it goes away. Trying to edit source code, trying to compare revisions - yeah those don't work. Am I the only one seeing this problem? It doesn't matter if the CKEditor autoload segment is turned on or not. I'm using WP 3.0.156 and AOS 2.0.20
-
RockLESS - PHP LESS parsing helper module.
gornycreative replied to bernhard's topic in Modules/Plugins
This worked really nicely, but I have run into an interesting problem. I'm trying to use this in coordination with Settings Factory, and the issue I guess is that there is no real way for RockLESS to detect that the variables going into the CSS call have changed - so I can change the options all day long but the css won't regenrate because RockLess hasn't detected any changes in the less file it is calling - right? Would it make sense to hook the settings factory so that when the settings are saved the compiled file is deleted? Or would it be safer to just touch the less file the less file RockLess is trying to load? I'm curious if any others are trying to do something similar. -
Thanks for those thoughts. I did consider using Hanna Code - I think for collecting the information that is a solid recommendation on its own. If all I was interested in was collecting footnotes, that would be ideal. The secret sauce of the plugin was what Jquery was used for - and while I agree that I'd rather not rely on javascript for the functionality, I don't know if the same effects could be achieved with pure CSS, but I will look into it. What the vanilla jquery placement function does is wicked simple: function placeNotes() { for (n = 1, refCount = $('a.side-matter-ref').length; n <= refCount; n++) { // Iterate through notes and position each var ref = '#ref-' + n; // Reference anchor var note = '#note-' + n; // Sidenote var refPosition = $(ref).position().top; // Position of reference anchor var notePosition = $(note).position().top; // Position of sidenote var noteOffset = refPosition - notePosition - noteAdjust; // Get current offset between reference and note, minus noteAdjust var finalOffset = (noteOffset < 0) ? 0 : noteOffset; // If offset is negative, set to 0 (prevents layout problems) $(note).css('marginTop', finalOffset); // Position note } } noteAdjust is a tuning parameter you set on the admin side that allows for you to adjust the height in case there is a difference between your article parent and your notes aside - but in my implementation I replaced this because it was simple enough to calculate so long as you could name the containers where both the article and the aside would sit. I also had to make some adjustments to prevent notes from stacking on each other by keeping tracks of an aggregate lastNoteBottom that made sure the note top would not blindly go next to the two refs on two consecutive lines and overlap each other - but I think perhaps setting the note to clear would resolve that issue. I'll take a look at your textformatter plugin. Thanks for the feedback!
-
So I have been digging more deeply into processwire working under the hood and I would like to try building a module. So there are two defunct modules I'd like to synthesize - or at least put the pieces together to make work for some of the more serious writing sites I've worked on. In WordPress, there was a plugin called Side Matter: https://wordpress.org/plugins/side-matter/ This plugin allowed a person to use a shortcode to indicate a reference [ref] - the original plugin would: process the shortcode contents (the note) look for nested [ref] shortcodes (and ignore them), process the shortcodes found in the note (if any), assign a note number or letter (depending on the type of numbering you wanted to use) replace the original shortcode with a linked superscript to an ref-1 anchor (optional) add the identifier and reference content to an aggregate div stack feed the content of that aggregate div stack into a second [ref_list] shortcode There was then a jquery script that would look at a stated 'parent' container and normally you would have an aside widget where you would put the [ref_list] shortcode or something like that. What you'd end up with was a height matched set of side notes next to the main article content. If you were crafty and used responsive frameworks like UIKit, the jquery code made a point of making sure two notes never overlapped and never were higher on the page that the original article reference. So in the case of having a responsive layout where the aside slipped beneath the article, the sidenotes would convert very conveniently into footnotes. I was looking at this module - which has been orphaned at WP for years, and I was also looking at the MarkupShortcodes by @Nico Knoll to manage the shortcode processing - at least as a starting point: https://github.com/nicoknoll/MarkupShortcodes Both of these codebases are pretty old, has this sortof plugin already been tried? Are there more recent resources/examples I should use to approach this properly? I think both of these plugins were released in PHP5 - I've been trying to get caught up on the architectural changes of PHP7 (it has been a while). Any thoughts or advice more specific to the kind of project I am looking at would be appreciated - would it be better to complete start from scratch using a more modern template? Thanks!
-
RockLESS - PHP LESS parsing helper module.
gornycreative replied to bernhard's topic in Modules/Plugins
It looks like this module could allow for the introduction of field content prior to compiling - is that accurate? Is there anything special that needs to be done to prioritize it at runtime before ProCache? I'm looking to be able to push field values from SettingsFactory into the LESS file preproc. -
Anyone curious, this module needs a namespace for v3. The module file should begin: <?php namespace Processwire; use DateTime;
-
Not sure how to represent suborganizations for my use case
gornycreative replied to shadowkyogre's topic in Getting Started
The only thing I might suggest is that the Location Role and Organization Role seems like two different classifications - The tricky part that I see in general is that some of the items you talk about would be at the hierarchical level - say, at the vertical level of granularity - while other items are on at a description attribute levels - the horizontal level of classification. Ultimately you will need to make some decisions with regard to what is considered an attribute and what is considered a degree of precision or size. I think the part that might mess with your head a bit is that there are likely going to be very common attributes of a variety of hierarchies. The advantage I can see from a PW perspective is that you could generate queries that pull selector values regardless of where they are in the hierarchy - but in terms of navigation structure I am not really sure how you would want to go about it without using URLSegments or something. I have not tried to model out something that complicated in terms of URL structure - hopefully someone with more experience in tweaking segments can offer input... -
Not sure how to represent suborganizations for my use case
gornycreative replied to shadowkyogre's topic in Getting Started
I would consider how other systems work out the mapping of ragged hierarchies - where you store a hierarchy level in addition to the ancestors and children relationships. Having a two dimensional structures like this enables you to manage granularity level control as well as lineage control. It becomes trivial to isolate branch grouping based on a limit of the lineage and level - say less than three. Alternatively, you can also build queries that select peers across a given landscape. For example, if local heroes of a klan that is a subfaction of a race on a given world, you can list them alongside heroes that are also part of major clans without internal divisions, or even immortal heroes without lineage or clan that live on a mountaintop on a continent. Each 'level' number represents a granularity level, not necessarily a power, quality or quantity level. The nice thing about this method is that it allows you to 'skip' levels while still retaining lineage integrity if you so choose. Here's an example of building such a data structure for an unrelated BI tool, but I think you will understand the design pattern. Perhaps this is what you are looking for: https://www.dundas.com/support/learning/documentation/analyze-data/create-a-ragged-hierarchy -
So I thought I would try updating to 149 tonight, but I got very strange behavior. The backend loads, but all of the scripts (js/css) fail to load. I get no dropdowns, etc. The frontend loads without styles - the coffee svg actually doesn't load at all - throws a 404 even though the file is in the directory on the server. I am running a multi-site setup with a shared wire folder and separate site folders. Replacing the wire directory with v145 and everything returns to normal. Running PHP 7.3 The weird thing is that I can load the module list and upgrade modules (which I did - there is nothing left to update) - unless modules that exist but aren't installed somehow affect things anyway. Since I'm on A2 hosting which uses Litespeed I am going to try a plain vanilla 149 install on a fresh directory tomorrow and see if at least the basic single site install works, just to be sure it is not a litespeed vs actual apache issue. Has anyone else running a multisite install had any issues/success? EDIT: Never mind - doing a full refresh of wire with 150 dev resolved the issue.
-
Future of Padloper - New Project Lead Announcement
gornycreative replied to kongondo's topic in Dev Talk
I know this sounds super easy, and for one provider it sortof is. The issue might be that updating and keeping track of freight APIs for everyone would become a costly development project in itself. Might make more sense to provide API hooks that can be used to push to services like IFTTT or Zapier and see if they already have connectors to postal service APIs. Same goes for accounting bits. I know Xero has Zapier integration: https://zapier.com/apps/xero/integrations This whole vertical integrations issue is something X-Cart and CS-Cart struggled with for a long time, most clients in the meantime ended up opting to work with ShipStation if they had complex freight calculation requirements - they passed the freight on to a piece of software dedicated to the task. I think they had a tax tool integration also to handle various tax jurisdictions, etc. which is also fun. https://www.shipstation.com/developer-api/#/introduction/shipstation-api-requirements/server-responses or (as we ended up doing) doing direct integration because we had simple vertical distribution (FBA) and Amazon controlled the rates - which got a little more complicated once we needed to have separate FBA accounts for different regions, different inventory counts for different FBA accounts, and different shopping locales. To make things nuttier, CS-Cart recently added in warehousing which is let's you balance inventory between multiple freight locations: https://blog.cs-cart.com/2019/11/07/meet-cs-cart-4-11-1-with-warehouses-and-other-improvements/ I haven't gone through the nuts and bolts to see how box count, product distribution per box per order, warehouse location for boxes and freight accounts for warehouse locations all work together in a multi-vendor e-commerce package. I imagine it is trying to run a synchronized swimming routine with farm animals. -
Admin Theme Boss – based on Uikit 3
gornycreative replied to Noel Boss's topic in Themes and Profiles
The guilty party is a rule in the middle of layout.less in the custom/theme/components folder. -
Future of Padloper - New Project Lead Announcement
gornycreative replied to kongondo's topic in Dev Talk
Please point me to some examples, thanks. Hi Kongondo... So I'm not sure if this is what B3ta is referring to - one solid piece that has gone through a bit of a wringer in terms of testing and configuration/transformation over the years is CS-Cart, which was originally in itself an offshoot of X-Cart. I believe both carts now have multishop setups. I am more familiar with the CS-Cart edition. Its a bit tricky, because on some level the owner needs to be able to decide if they want to have one unified database in the backend for various shops (the 'food court') model where you have multiple shops for different types of food but they all share one big common kitchen in the back and also share the credit card processing. Or the subcontract model where each store on the back end has its own unique instance in place with a universal dashboard that allows an admin to oversee everything. My advice, do not touch it with a 10-foot pole. As much as I love the idea, in practice the coding and debugging required has been a real nightmare/evolution for other products. How deep will admin go? Will customers be shared? Will customers use different logins for each storefront? Do cart contents carry over from one store to another? Do all storefronts have the same shipping and tax rules? Is there a shared pool of inventory that only the admin sees and that sub-storefront admins can pull from? Are products added by sub-storefront owners shareable? There are just a ton of variables laid on top of the shopping cart platform which already has a tendency to become super bloaty and confusing. CS-Cart made some serious errors during the evolution of their product, it has taken many years for them to iron own the kinks and hurt feelings that multi-vendor has created. I'd love to see a step up from padloper in terms of interface-in-place. Looking forward to the alphabetagamma. -
Future of Padloper - New Project Lead Announcement
gornycreative replied to kongondo's topic in Dev Talk
Looking forward to seeing this project in beta! -
I get a namespace error when trying to warm up the OPCache - was the PW3 namespace issue not resolved?
-
Deleting the dev.zip file seemed to work for me.
-
I know this has been around awhile - just wanted to say thanks - its working well for me.
-
Sharing Modules Within MultiSite Setup
gornycreative replied to ethanbeyer's topic in General Support
Interestingly, this doesn't seem to work for AdminThemeUIKit. Never mind! I had already consolidated my modules under a base installation rather than a shared location. -
I'm currently having this problem on siteground. Running multisite pw the .well-known directory and files are not created, let alone accessible. If I create the directories in the pw/ directory and try accessing them directly I can browse to them, but if I use one of the multisite domains it will not find the directory in pw/ - should it be looking somewhere else? Do I need to alter the base directory for each multisite? They are currently all pointing at the pw/ directory. Thanks!
-
Released: PadLoper (commercial eCommerce platform for ProcessWire)
gornycreative replied to apeisa's topic in Modules/Plugins
Yeah so there needs to be better access to the support forum, which I believe there was a link to on the page when you first purchase the module but if you don't save it - poof it is gone. I've tried emailing but haven't gotten any response regarding the forum. A little frustrating. Even the invoice email doesn't include a link to the forum, which to me seems like a logical place to put it. -
Strange multisite installation quirk
gornycreative replied to gornycreative's topic in General Support
Never mind. DB authentication typo. -
Hi! I've been working over a number of sites into processwire, but I have come across a strange bug I cannot wrap my head around. I'm using method #1. Single wire directory, multiple site- directories with index.config.php and config.php set up properly. I've had no problem setting domains in the configs up until this point. www and root domains are loading perfectly. However I tried to add a subdomain value 'new.domain.com' and I have put the bits in all the right spots. I get a 500 Internal Server Error. If I change the subdomain to something else, same deal. Only domain.tdl and www.domain.tdl entries are working. Any thoughts? I'm using the latest stable 3.X branch.