Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/30/2012 in all areas

  1. So u are having a ModuleJS? What if u don't make it autoload but permanent? So u dont have to install it, but maybe get loaded after. Well I also gave up after so many tries and use hook on somerhing to add script after jquery or after certain other module. Also as u wrote u want to add scripts on certain admin pages, u would anyway need some hook to determine when to do it. Sorry for triple post.. on mobile
    1 point
  2. I just used this to add AD login abilities to a company docs intranet site for PW and would like to suggest some changes. In this particular environment, the AD logins are in the format of "Forename Surname" <- the problem here is the space in the middle and PW replaces it with an underscore before the check against the LDAP server so it fails and doesn't authenticate properly. The following fixes it: Replace this: $name = $event->arguments[0]; $pass = $event->arguments[1]; with this: $name = wire('input')->post->login_name; $pass = wire('input')->post->login_pass; And this: $user = wire('users')->get("name=$name" with this: $user = wire('users')->get("name=".$event->arguments[0]); Any other suggestions welcome, but that should work correctly in more situations. Antti, did you do any more work with AD groups mapped to roles?
    1 point
  3. I don't mean "execute" function literally, just a hook or function that is added to a hook or process in the system or called directly somewhere. Adding script alone in the init on a autload module will always append it before jquery core. The code example on that link does have a hook with with a addLink function. This will get processed at a certain point where jquery core and likely other script are already appended. If you give us more example of what you are doing I can help. The code Ryan posted, is how the ModuleJS does it, but as I recently found out, doing it the same way in your module init, will add it before jquery core always, so you can't use ModuleJS. Look at the extensive thread I created also about the same subject here
    1 point
  4. You're welcome. I read most anything in the API and watched most video's. Also check out the cheatsheat. It's made by soma and is very handy when you quickly need to find something.
    1 point
  5. Arjen answered directly to this question. The link he pointed to can help giving some answers to your other concern.
    1 point
  6. It is possible. The ProcessWire cms is basicly running on ProcessWire. There were some discussions about this topic a while ago.
    1 point
×
×
  • Create New...