Jump to content

cjx2240

Members
  • Posts

    93
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

cjx2240's Achievements

Full Member

Full Member (4/6)

25

Reputation

  1. Oh for crying out loud... you are right... it only happened when I was using the device toolbar from dev tools in Chrome which evidently affects the user agent. I'm certain this never used to happen, not sure if it's a change in Chrome or the latest version of PW. I'll try out the config setting next time I need it but for now just going back to non-device mode has solved it. Thanks very much!
  2. Hi all A couple of times now I've run into this issue. Last time I think it went away by itself in the end. It's making it very difficult to build a site, every time I refresh or load any page on the front-end. I get logged out of the CMS. I haven't written any code for this site to do with front end logins, logouts, sessions etc.. It happens if my browser's cache is enabled or disabled. I have the following entries in my session log which I think coincide with it User '[username]' - Error: Session fingerprint changed (IP address or useragent) (IP: ::1) I'm not using a VPN I would appreciate any hints or suggestions as this is getting a little frustrating!
  3. Hey glad to see the update! Things are also very busy on my end but I definitely want to give this a good look soon. Sounds like all good things.
  4. Does anyone know what I need to let through the restrictions in order to have the popup from the FieldtypeAssistedURL module work?
  5. In your config.php $config->prependTemplateFile = '_init.php';
  6. Hi, I really wanted to try this out but I hit a roadblock straight away... the page didn't appear in the CMS after installation. I made sure the module folder was named correctly (saw the similar issue above) and I have the latest version of the code I also couldn't uninstall the module, it hit a php error. While trying to figure it out I've been uninstalling/reinstalling, it definitely hits various issues with the fact it can't remove/update system templates. It looks very interesting though, hope I can figure it out and have a go! Edit: ahhh well, I see the problem. Your bootstrap for creating the admin page assumes that the admin URL will be "/processwire/" - but mine is not! May be better to grab the admin page name there Edit 2: well I have had a look at it and I really like the idea of the way it works! Bit rough around the edges for sure (one bug I seem to have noticed is that I get errors about a sixth repeater row repeatedly after I have deleted it, same thing happens with snippets. They're gone from the original db, but visible and empty when viewing the migration on the target db more on that later*) but the idea is much more in line with how I would want to do migrations. For me though I hit two snags in my first attempt to use it. One is that it didn't include a hidden page in the export data, nor did it allow me to add something like "include=all" to the selector, so I could only add it by un-hiding my page to create the migration. Another is that it didn't include data from a ProFields: Table field, but I can populate that with a hook which is a great addition! Edit 3: * I actually hit a pretty big bug with this later on. I tried (mistakenly) to remove the errant rows on the target db and save it. I got the message saying that I can't actually save changes on the target db (fair enough) but then the status became "superseded" and I could no longer perform the migration.
  7. Just a couple of quick questions - and I know this might be more of a question for Tracy Debugger itself but - why can't I see "Field Code" in my Request tab? Edit: sorry, found it! Tracy settings > Request info panel > Panel sections if anyone else was wondering. Is there any other useful things I should turn on in Tracy for copying field data and similar?? 😄 And second question please, how do I add a field to a template and have it be inside a Fieldset Tab? Thanks in advance!
  8. Hi Bill, thanks for looking Not exactly. Although I have done something very similar to what you suggested already, in order to limit which portfolio's I'm getting based on something in the user details, so you were bang on the money on how to do that. All I really want, is to select portfolio-detail items, and have all the details from a matching user available to me in that selection. Eg, I've got a user like this $user->id = 392; $user->name = 'email_example.com'; $user->firstname = 'Jane'; $user->lastname = 'Doe'; $user->avatar = PageImage; And I've got portfolio detail pages like this $portfolio->title = 'Jane Doe'; $portfolio->user_id = 392; The former has all the data I want to grab for each item. But the latter has all the details I need to organise my site like URLs, tags, parent pages, etc. So I just want to kind of... merge them together neatly.
  9. Hi, this is a blast from the past, 2014 the last time someone talked about this module in here! And what a great module it still is. Is this still the best place to discuss? I've noticed today that {{id}} doesn't seem to return anything in the user template, could there be some obvious reason for that which I'm missing? Thanks!
  10. I have created a page with template "portfolio-detail" for every user's that's registered on my site, linked to by a field that stores their user ID. Now I want to be able to grab that user and integrate them with the page selector as neatly as possible. The reason for this approach is that the page, rather than the user, has many things built around it already, other fields, parent structures, etc. that are fundamental to filtering, url structure etc. I currently have this, but it means a separate query to the user table for every single user. This works, but a) I'm sure it could be faster/neater and b) it means I can only access their details with $profile->user->user_field instead of just $profile->user_field $profiles = $pages->find("template=portfolio-detail"); foreach($profiles as $profile) { $user = $users->get("id={$profile->user_id}"); $profile->user = $user; } Is there a better way?
  11. [edit - double post, can be deleted]
  12. That’s such an incredibly good idea I’m mad I didn’t think of it myself. Thank you! And well done understanding my requirements so well!
  13. I'm capturing the main content for a site using a registration/profile process. The end product will be a categorised showcase of their submissions. They're selecting the page that would be the parent category as part of the profile process. The easiest way to do this would probably be to copy the user pages to be "normal" pages when sign-up is closed. But I would like to avoid this as it would fracture the content if we needed to reopen registrations. So instead I would like to try leaving the users alone, and looping them simply by grabbing all users with the current page as their selected parent. It won't be as simple as browsing to /users/user-name, I need to put them in categories based on regular pages like /category/child-category/user-name I think this is easy enough, I know how to select the users and loop through them, load a template based on their page (I think) - but can you think of any reasons why I should or shouldn't do this, any complications I'm not considering? I'm going to try and store a nice unique name for them from their real name, when they sign up that can serve as the URL. Is there anything useful in the API that can make sure a name is unique and add a number if it's not? I know this is a bit vague, but anyone done anything like this before?
  14. Hm, thanks for the suggestion but that doesn't seem to work, I get the following when registering on the front-end. "Warning (requiredIf): dependency field 'hasRole' is not present in this form."
×
×
  • Create New...