I thought maybe I had configured your module incorrectly, so I visited the demo site to see how it's supposed to work.
I created an account and logged in, but there was no reply box like on Facebook.
So I clicked on "respond" and was taken to a different page where I submitted several messages, but nothing send to happen. Also couldn't find a way to post a new message to the main wall, without choosing someone else's post to respond to.
Then I hit the back button a few times to get back to the main page, but my messages were not there.
Then I hit "refresh" and they appeared.
Is this how it's supposed to work? Or is my browser (Firefox 3.5.5 XP) seriously messed up?
I've read all the documentation I could find, and if I read correctly, your module should function much like Facebook's Status/wall" application, with a box to submit comments, which then appear on the "wall" after pushing "submit."
Am I doing something wrong, or did I misunderstand what the module does?
Comments
Comment #1
icecreamyou commentedThe demo site happens to have the status update box on profile pages and not the front page, but you could put it on the front page if you want (or on both the front page and the profile pages, or anywhere else you want).
You won't see your status updates if you click the back button because your browser is showing you a cached version of the page when you click the back button. That means it's showing you the exact same version of the page you saw when you first logged in, which (obviously) didn't have your status updates on it. When you refreshed, you were asking your browser for the current version of the page. Instead of clicking Back and refreshing, you could have just clicked on the "Warble" header and you would have seen your statuses (i.e. not the cached page) as you expected. You'll notice Facebook works the same way, but it has much more complicated JavaScript that will update the entire page every few seconds anyway, even if you clicked Back.
When you go to submit a status on a profile page (including your own), clicking the "Share" button will initiate an AJAX request that will cause your new status to appear under the status update form without a page refresh.
Comment #2
boblangdon commentedExcellent! That's what I thought.
It does work for me now on your site, when I post on a profile page.
Unfortunately, I can't get it configured properly on my site (the refresh).
I've read all the documentation ( I believe), and tried it with AJAX enabled and disabled (using AHHA). I even tried the refresh_views module, carefully following your documentation HERE.
I'm running Drupal 6.14 on a L.A.M.P. setup using:
Linux 2.6.30.5-1-grsec
Server API Apache 2.0 Handler
MySQL 5.0.51a
PHP Version 5.2.4-2ubuntu5.7
relevant modules:
Views 6.x-2.6
Panels: 6.x-3.0
APK: 6.x-1.0-beta2
Content Profile: 6.x-1.0-beta4
I'm using Firefox 3.5.5 to view the site.
Permissions for FBSS are "view all statuses" for anonymous users and "edit own statuses" for authenticated users.
I'm using the "stock" views provided in a panel, but cannot gt them to refresh upon submit.
Either nothing happens at all (until manual refresh) or the form and statuses disappear (again, until manual page refresh. Even with Ajax AND "Use AHAH" disabled, the page won't even do a "hard" refresh for me upon submitting the form. The status "IS" submitted and stored to the db, but I can't get the view to refresh on the profile page.
:(
If you'd like to view it, my test site is Here. You can log in as an authenticated user with the same credentials as you would at your demo site.
I'm sure I'm missing something very basic here, but I can't seem to see the forest for the trees at this point. Any advice would be very much appreciated.
It may be a permissions problem. I see now that I can't see the status pane when I visit a profile as an anonymous user, even though I have "view all statuses" and "access all views" and "view all panes" enabled for anonymous users.
8^/
Comment #3
boblangdon commentedHmmmm.... I now see that even with "use ajax" set to "NO" in views and "Use AHAH" disabled in FBSS settings, I still get no page refresh and class="ajax-form" is still set in the status form tag:
Should this class STILL be getting added? I have AJAX forms disabled in "AJAX UI" for ALL content-types.
??????
Comment #4
boblangdon commentedThe "delete" link works as it should - view is refreshed when I confrm delete status. So I checked the rules and noticed a trigger for delete status. Then I found that in "Rules" there was a rule named "Submit Facebook-style Status" that had become disabled.
I re-enabled the rule (choosing "clone") and now, upon submitting a new status, I get a warning: "Unable to get variable 'account'".
So I re-enabled "Use AHAH", and cleared my caches and that error went away.
But now I'm back where I started: I submit a status and the view/form disappears until I manually refresh the browser.
Comment #5
boblangdon commentedOK, I got AHAH refresh to work.
I had to completely disable AJAX module.
I had assumed that unless a content type was enabled in AJAX UI then "class='ajax-form' would NOT be added to FBS-box.
:-(
So... can I not use AJAX elsewhere on the site if I'm using FBSS?
Comment #6
icecreamyou commentedYou should be able to just turn off the setting for the AJAX module to control the FBSS form submission. I can't reproduce your problem, but the AJAX module has never worked with FBSS like it promises to (due to bugs in the AJAX module, not FBSS). As a result, I've decided to drop support for the AJAX module -- the next dev should allow you to use it without interfering with FBSS. (If it still interferes, complain in the AJAX issue queue, since there's nothing I could do at that point.)
But bonus points for you for reading the documentation. :)
Comment #7
boblangdon commentedThat's what I assumed. But disabling the FSSB form in AJAX UI doesn't do the trick.
:-(
Go figure.
I'll have to broach the issue in the AJAX issue queue, see what they think.
Maybe I can override it in a template somewhere... overwrite the "class='ajax-form'" bit that is being added to the form (that isn't added by FBSS, right?).
Thanks IceCreamYou.
Great module
Comment #8
icecreamyou commentedYup, the ajax-form class is added by the AJAX module, not FBSS.
Cheers