1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Javascript works for Members, Not Public

Discussion in 'Community' started by SoilentRed, May 15, 2019.

  1. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    I have these elements that show or hide based on a selection made on a radiobutton. Here is what i have cooking:

    On Load: When this element "rating" == "", hide element "reviews.review_notes"
    On Change: When this element "rating" < "4", show element "reviews.review_notes"
    On Load: When this element "rating" == "", hide element "reviews.post_review"
    On Change: When this element "rating" > "3", show element "reviews.post_review"

    When I have a user logged in the javascript works fine. When I load the page as a public user, JS is no bueno. I thought it might be a permissions thing, but when I disable the JS, all the elements show.

    Any ideas?
     
  2. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    I just did a github update, but it is behaving the same way.
     
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Dunno, I'd have to see the page. Link?

    -- hugh
     
  4. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    HUGH!

    Sorry for the belated response. Had a brief stint in the hospital.

    SO, check out this example page https://www.networkinaction.com/index.php/reviews?&reviews___member_id=1707

    The URL uses the member ID to pull facebook and google info if the rating is 4 or 5. if the rating is 3 or below, there is a textarea element that should show. BUT neither of these javascript actions are taking place UNLESS you are logged in. What gives. It should work whether you are logged in or not.

    THANKS!
     
  5. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    Friendly bump.
     
  6. bea

    bea Active Member

    Level: Community
    Hi,
    I notice an issue with JS too. I've made an github update today and it seems okay.

    With github update from 18.04.2019 (modified 05.04.2019) everything works well.

    @ SoilentRed:
    1. Do you use different tables for Members and Public
    2. Does the JS work readonly?
    3. Did you check in your elements?
    Cheers,
    Bianka
     
    Last edited: May 28, 2019
  7. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    @SoilentRed can you PM me a login so I can check logged in.

    -- hugh
     
  8. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    @cheesegrits
    Login credentials sent! Thanks for taking a look. Let me know if there is anything else you need there.

    @bea ,
    1. we do not use different tables
    2. I don't know how to test if the js works readonly. Where would the ticket for that be?
    3. I checked me elements insofar as what I know to check. Again, they work when logged in, not on public view.

    Thanks for your help and let me know if there is anything else that you need.
     
  9. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    friendly bump
     
  10. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Yeah, I've been looking at this. Still can't work out wtf is going on.

    -- hugh
     
  11. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    Thanks. You think it might work if the JS was manually written? 'nuther thought: Might this have something to do with my caching app, jotcache?
     
  12. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    on second thought this page doesn't seem to be being cached anyways...
     
  13. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    Bueller...?
     
  14. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    So, I switched this page to the Beez3 Template, and the JS SEEMS to work on a public view. I don't understand the difference, but perhaps this might better inform us how to examine the problem.
     
  15. troester

    troester Well-Known Member Staff Member

    Level: Community
    Which Joomla template did you use before?
     
  16. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    I was using the Socialize Template by Jomsocial.
     
  17. troester

    troester Well-Known Member Staff Member

    Level: Community
    Did you try with the standard Protostar template?
     
  18. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    I removed protostar a while back. If I recall it had something to do with the way the styling was affecting fabrik on my Jomsocial template. Memory is hazy though. I'll see about reinstalling it and what result it yields.
     
  19. SoilentRed

    SoilentRed Caaan do!

    Level: Community
    Okay, I have it installed. and this is interesting. it works with Beez3 but NOT protostar
    Another interesting thing is that the beez3 template does not reflect the option for "button group" I ticked to "yes"
     

Share This Page