Implementing a time-sensitive hype/trend algorithm (via Flag module) as sort criteria for a Views page

Hi everyone,

I've been setting up a Views (3.0) page that will display a list of user-generated node content sorted by a flag counter (via the Flag (2.0) module) in Drupal 7.

This works just fine, but I'm also interested in creating a sort criteria that will take into account the recency of a node's flag. I.e. When the website starts building a significant and consistent amount of traffic of users flagging content, I want a Views page that will help push content that is flagged more recently higher on the sorted list, creating sort of a hype/trending feed.

E.g. I envision a simple algorithm that could be dynamically calculated and continuously updated (in the form of an integer content field, perhaps) in which a flag made by a user in the last:
6 hours is weighted 10X,
12 hours is weighted 9X,
1 day is weighted 8X,
2 days is weighted 7X,
3 days is weighted 6X,
4 days is weighted 5X,
5 days is weighted 4X,
1 week is weighted 3X,
2 weeks is weighted 2X,
1 month is weighted 1.5X,

Create Supervisors of Users and letting them upload files

Hi,

Sorry if this is an easy to answer question but this is my first Drupal project. I've set up the site OK and everything is working fine. The client has now asked for an extra feature and I'm not sure about the best combination of modules to achieve it.

Warning: include_once(): Unable to allocate memory for pool. in drupal_settings_initialize()

There is a huge list of errors like the one above on conversationsaboutethics.org. It shows up on the top of every page, even when in maintenance mode. How on earth do I get it to stop!

Drupal under Windows - Arvixe

I have installed Drupal 7 on my Arvixe-hosted site. I have TWO problems which are causing me a lot of grief!

(1) I am able (apparently) to change the colours of the default theme (Bartik) but when I view the site afterwards ALL colour has disappeared. This is also true when using any other theme.

(2) I can apparently upload an image to my account but the image does not appear. Instead I get an apparent 'file missing'n error.

Any suggestions?

Alan Chantler

Nested Views

It's not clear to me how to go about adding a link to a view result that responds with another view maybe using an argument. Is this what I have to accomplish to do the following?

I have a list of theaters. For each theater I'd like to display a link to a list of shows for that theater only.

Theater is a content type.
Show is a content type.

Each show has a node reference field to a theater.

(I believe I could add an "unlimited" number of node references to Show for each Theater but this would require too much work and be error prone for my clients who will be managing this content themselves. So I don't want to do that.)

I could do it my self in PHP, but it seems to me that Drupal should be able to do this. It's just an SQL query.

Can anyone point me in the right direction? (I've tried to install Eva which sounds like it does something similar by attaching a view as a content type field, but it appears that it won't install properly. I don't see it anywhere's in Drupal's UI and I got error messages trying to install it:

Notice: Undefined index: log in update_authorize_install_batch_finished() (line 236 of /Applications/MAMP/htdocs/drupal/modules/update/update.authorize.inc).

File Disclaimers For File Uploads

Hi everyone I am new to Drupal and A requirement of my system is to have disclaimers for certain file types letting the user know that they may need additional software to view the file. We need to see if there is a solution that already exists in Drupal that will add these disclaimers to the files automatically when they are uploaded by content authors. Is there a module for this?? I really need help.

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x