Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by jsantari

  1. Looking to create a membership based site using LoginRegisterPro. Seems it's missing a key piece which would be charging for a new user sign up and assigning them a new role or roles ideally based on what type of membership they choose. For example: Basic, Silver, Gold etc. How would you add this ability to LRP? Suggestions?

    • Like 1
  2. Had to sit on this for awhile as other things have taken priority. Tried it out and it works on preventing me from adding an image over limit. However it does it after it initiates the upload showing a thumbnail and leaves the spinner spinning. Not really what I would want for UX. What would work best would be for it to disable uploading if the limit has already been reached so they don't even try but that may not be possible?

  3. This is an interesting hook. I'm looking for a way to limit the number of images a user with a specific role can upload. I'm using FEEL as a front-end editor for a membership/directory type site. I want for example someone with a basic-member role to only be allowed 2 images, silver-member 5 etc.. Is this possible? It would need to not allow them to add additional images but they would be able to still edit/delete an image if they were at their max limit. 

  4. I'm trying to access the feel module from within a custom module but it's throwing a 500 error with "Call to a member function feel() on null " in my module . I'm using $this->page->feel() in my module. Have no idea what is wrong with this? Can't figure out how to get a reference to feel inside the module.

  5. 13 hours ago, kongondo said:

    What about an autoload module that will make the changes on save? This way, it's done once. Or maybe JavaScript to make changes client-side on click' insert-link'? Hmm, maybe not be as elegant though.  Just some rumblings....

    Good thought. Easiest way for now was to just swap out the single class for the multiple classes with jquery on dom loaded. Works fine.

  6. You and I both know the right BS classes to use, clients don't. Ideally it would be really cool to have it usean alias for a group of classes - ex; 'Green Link' for 'btn btn-success btn-sm'. Sometimes there are BS theme tweaks involved too so again the alias approach would be more user friendly for the less informed.

  7. Is it possible in the  ProcessPageEditLink to define multiple classes as a group. I've tried to add more the one class to a line but this breaks things. Only single classes on a line seem to work. Using a css framework like Bootstrap it would be good to be able to create a class check box for example for the combined classes: btn btn-success btn-sm.

  8. Sorry, should have clarified the why for this. I host clients on hostgator and back in the spring they changed a mod security rule on the server which causes any url with an http or https in it to throw a 403 forbidden error. So when you go to edit a link you have created it errors and the dialog displays the error. Only way to fix it is to get on support with HG go through a couple of levels and then get them to whitelist the domain for the security rule which is causing it (they don't tell you what it is). This is the url that crashes it: http://northernaire.com/webadmin/page/link/?id=1322&modal=1&href=http%3A%2F%2Fwww.vilaswi.com%2Foutdoor-fun%2Fcross-country-skiing-snowshoeing%2F

    Take out the http on the call and it will load. I was going to look at trying to look at a way to hack something to get it to work on the output end.

    Just a pain to have to go through the process of whitelisting for a new PW install.

  9. @Robin SIt will go to api.php when that was setup as a template for the page /api. I did figure out that PHP files don't work in /site/ and I moved it to /xapi below root. I can access it now and just figured out how to get what I wanted.

    @LostKobrakaiMoving it outside of /site/ as mentioned above got it working with parameters but still didn't get me the ability to use segments. Was able to get that working by adding a rewrite rule in the PW .htaccess. Don't see any other way to get it to work so that will need to go into any updated .htaccess I use down the road.

  10. I looked at some of the posts on that module and it's not what I'm looking for. I can handle the intercoolerjs side fine. I've done a few small projects with it using mysql & slim as the route handler. I can use a simple template in PW like api.php and call url's like somedomain.com/api/?c=controller&m=method but then intercoolerjs can't take advantage of the dependency system. Basically what I'd like is to just be able to route to the subfolder with PW getting out of the way. I can bootstrap PW at that point and do what I want.

  11. Trying to do some ajax calls to an api  named somedomain.com/xapi/index.php using intercoolerjs in my home page. I'm trying to make calls like this in intercoolerjs. somedomain.com/xapi/controller/method. Looked through a bunch of the posts but nothing seems to match what I am trying to do. Is there a change I can make to the htaccess file  to get this to work? Anyone have a suggestion on this or is there a better way to handle the api?

  12. I have some hanna codes that I would like to trigger the inclusion of css and js files depending on the code that is used. Does PW have a way to do this similar to WordPress wp_enqueue_script or style core functions?

  13. The right click popup is the same as putting your cursor on the linked text and clicking the link icon on the toolbar. Either way I get the 403 in the modal dialog. The link is external to a http://somedoman.com url. I've determined that it's being an external url that breaks things. If it's a link to an local page, editing the link works fine. So basically it's a bug that doesn't allow you to edit external links.

  14. I am trying to create a hanna code [[side-menu]] to display a static menu. If I put the menu html in the hanna file directly it works fine. What I'd want though is to keep the menu html in a external file and just let the hanna code include it. So in my hanna code I put:




    This does not work - no errors just no output. The menu in mysidemenu.php is just plain html. Not sure what I am missing on this. 

    RESOLVED: I determined that if I write the include like this it will work as expected:


    Surprised though that I didn't see a file not found on the first approach.

    • Like 1
  15. Yes there is no page context but - it sees that the product_category uses a page selector as that one works as expected. I would think it could also see the custom selector and determine that the field it wants to use as the parent is product_shapetype. Probably a feature they need to add as an enhancement to Lister. If the client has to know what data is in product_shapetype for a given product_category it isn't going to be very user friendly to find products. Have you worked with Lister Pro and if so could a custom finder be created to handle this?

  • Create New...