Hi,
I installed this module on a fresh Drupal 5.1 installation. After that i installed the 2 jQuery plugins that are required, and enabled the Aggregator module.
What i want to achieve is a website where i aggregate (RSS) content from a few websites with the Aggregator module.
The front page of the website would have blocks with the aggregated headlines from these sites. Next to that, logged in users should be able to define which blocks they want to see, and where they want to position them. So this module seems perfect for my needs.
However, when i'm testing this module, it doesn't really seem to work as it should:
When i go to admin/settings/mysite, in Content Settings 'Web Feeds' is disabled. I cannot enable this untill i go to the page admin/settings/mysite/type/feed and select 'Allow users to add new feeds'. However, i don't want users to add new feeds. I want to define about 50 sources for users to choose from, without allowing them to add new ones. But when i set the setting to 'Do not allow users to add new feeds', the Web Feeds functionality is disabled again.
The Web Headlines still works though. But if i want the functionality i described above, i need to create a new category for every feed, and only put that one feed in the category. This way i'd need 50 categories for 50 feeds, which seems idiotic. And if i were to put all 50 feeds into 1 category, users will see only that 1 block, which is not the desired behaviour also.
Furthermore it can't force the block position to be saved. When i go to mysite/1/view (which has 3 column layout) i can move the feed categories to the column i like, but when i refresh the page, they just show in the standard way again.
Same when i go to mysite/1/content: There's the 'click and drag to sort' icon to the left of the block title, but when i move the block that's on the right to the left for example, and then view my MySite page, nothing happened. So basically the mysite/1/content doesn't do anything at all. I can drag and drop the content titles to a chosen region, but this doesn't change anything whatsoever to the actual MySite page.
I've scrolled through the README.txt file, but i didn't find anything that tells me why i can't get this pretty standard behaviour to work. As this module and quite complex and big, i can't see why i can't get this to work for my purpose, which seems not that special to me.
Did i miss something important perhaps?
If anyone can help me out on this, i'd appreciate it :)
Comments
Comment #1
agentrickardToo many issues here. Let's try to address them one at a time.
There is a logic error in /plugins/types/feed.inc. Remove the
elsestatement infunction mysite_type_feed_active($type), lines 80-83. (I will commit a patch later today.) Nice catch.Fixing the first problem solves this as well. You want to enable the Web Feeds plugin but not the Web Headlines plugin.
I'm trying to track this down. This problem just surfaced with the 5.x.2.4 release. It happens on the test site, but not on my local machine. So I'm investigating.
Comment #2
agentrickardChanges not saved.
I think this is a caching problem. Turn off MySite's internal cache and see if the problem goes away.
Comment #3
agentrickardI am convinced that this is an internal MySite cache issue. Add the following code to
mysite_ajax_sortor turn off MySite's cache.Due to the path alias feature, we can't be sure that the JavaScript can pick up the user id from the URL, so we have to explicitly clear the cache for the user making the request. [Note: this will not help if the admin is correcting someone else's page.]
Better solution is to write a JavaScript var that is the uid and can be picked up and processed by the sorting script.
Comment #4
agentrickardComment #5
agentrickardTry the new 5.x.2.5 release. Should fix your issues.
Comment #6
svendecabooterThanks a lot for the quick replies and fixes.
The Web Feeds content is now enabled, so i can let users choose feeds to put to their MySite, without having to necessarily put them in seperate categories. Thanks for that!
However, when i go to admin/settings/mysite/type/feed and choose 'Do not allow users to add new feeds', users can still add new feeds on the mysite//content/feed page. So this seems still like a bug...
Also i can't figure out why i the blocks dragged to a region don't get remembered. Everytime i refresh the page, all blocks are on the left or top region (depends on which layout i chose). I forgot to reply yesterday that i never turned MySite cache on anyway, so i doubt this would have caused this behaviour. The blocks layout in the regions doesn't get remembered: not by dragging it to another region on the MySite page itself, nor on the Organize Content page where block titles can be dragged into regions.
Maybe some of these issues are still there, because i overwrote my mysite 2.4 folder with the 2.5 release (and did a database update). Perhaps some things don't work because of this. I'll try with a fresh Drupal install and fresh MySite install later this week.
If this doesn't improve things, i guess i can try diving into the code to help identify the exact problem.
Thanks a lot for the quick work already though!
Comment #7
agentrickardI'll check the feed bug.
As for saving content. Did you replace the jquery.js file with the one provided by jQuery Update?
For debugging that, try adding an alert to mysite.js
Comment #8
agentrickardFor the feed problem, try changing line 390 of feed.inc:
Comment #9
agentrickardThe feed change fixes the form issue.
This issue is too jumbled. Let's separate them.
If updating jquery.js doesn't work, please open a new issue "Drag and drop fails to save" and include the following:
* Screenshot of your 'admin/logs/status' page.
* Browser and operating system. (Please cross-reference against jQuery's documentation.)
Only re-open this issue if the feed problem recurs.
Comment #10
svendecabooterAbout the feed problem: actually it wasn't a problem at all. I had unchecked 'add mysite feeds' access for anonymous and registered users, but i tested it with my admin account, so that's why it still showed. Silly me... Sorry about that
So even without your line of code, it works.
I will test the JQuery problem later on, and create a new issue if it doesn't work... Sorry for putting these two things in 1 issue.
Comment #11
svendecabooterOK i found out why the JS saving didn't work...
The URL of my testing install was "http://localhost/mysite"
This conflicted with this line of JS code:
So having the 'mysite' string in the base URL breaks things. But i guess that's not really an issue that needs resolving...
Comment #12
agentrickardIt is worth documenting, though. My JS / regex isn't great, so if you can code a fix, we should add it to the file.
Comment #13
(not verified) commented