Article Logic Issue - drupal

I am working on a site that is built around articles and videos. Additionally, members sign-up and create a profile. Within that profile, there are "interests" that they can select in addition to some categories we place the user in based on other behavior.
My issue is that I am trying to create logic that will display articles and videos based upon three variables. The variables are below. What is the simplest way to do this?
1) For members who have selected and "interest" I want to serve articles that have been tagged in the system as associated with that "interest" with the articles that have been most recently posted shown first.
2) For members who I don't have an interest for, but I have placed in a bucket based on behavior I want to serve articles that have been tagged in the system associated with that "bucket" with the articles that have been most recently posted shown first.
3) If I don't have an "interest" or a "bucket" I just want articles to be served by most recently posted.
Thanks for your help.

I would recommend using the Profile module. This will allow you to customize the User Account Creation form and add in custom form fields [suchas term references]. This also will allow you to create relationships between each user and specific content. [Show all content of type X, which shares interests with the current user ID.]
https://www.drupal.org/project/profile2
I've used it and it's pretty awesome.

Related

Allow registered users of a Wordpress site to create favorites lists

I've been building a Wodrdpress site lately. It's going to have free registration. I want it to have one and only certain feature for registered users. They should be able to create favorites lists. I mean is that they could favorite certain posts with something like a "like button" and view and edit all their favorites on a certain place like a listview. They shouldn't be able to comment, edit, upload or have any other interaction with the posts. I understand that this can by arranged by giving different permissions to the users. Although I have two questions.
1) Can you suggest some practices/plugins to feature a free registration for the users?
2) Can you suggest some practices/plugins so that registered users can create favorites lists as I explained above?
In case you need further info feel free to ask.
Thank you.
For point 2:
Check out this plugin:
https://favoriteposts.com/
Users are able to add posts and even pages to favorites list.

User Blog difficulty Wordpress

I have have a client that wants to create a Wordpress site with the following features.
Private Messaging
User profile
Friend Groups
The ability for a user to create one or many "journals" which are essentially a blog, which only their friends can see.
The last item is the one that I am puzzling over. It seems that it might be best to create a multisite where users can create their own blogs. But I'm not sure how I would manage who can see the blogs, or how I would display the blogs on the user's profile page.
Does anyone know any projects similar to this or have any ideas about where to start with a project like this?
Update for anyone who sees this.
Buddypress solves first three problems more or less out of the box.
I decided to customize the groups feature a bit to fit the bill for a user created journal. The user can create a group (groups are renamed 'journals' by means of the translation file for BP) and he is the only one allowed to post to it. I have updated some of the group meta fields so the user can add a bit more information about his journal, as well.

Exporting a specific user's content from Drupal 6

I am new to Drupal. I am working with a preexisting website that has a couple dozen staff bloggers. Some of the bloggers need to have all of their posts migrated out to a database (the CMS they will be imported to is not yet known).
I have looked into a few modules for backups, but they don't seem to have the ability to choose what exactly is exported.
If anyone could give me some advice or direct me to an appropriate module, that would be fantastic!
You can do it easily with Views and Views Data Export modules.
However, you will need to learn a little about Views before making use of the Data Export module. You can follow some quick tutorials. You will not need any coding skills but concentrate on Views UI , Filters and Arguments.
Make a View on node as primary content, and add a filter (or an argument if you want to take the user ID from URL) for User: UID and add fields you want to get exposed as Fields. Then, in the style settings, choose "Data Export". Create a page display and give it a path.
You can also make the form advanced with exposed filters.

Drupal, Ubercart products relating to blog articles and vice-versa

I'm very new to drupal however what I'm trying to achieve I assumed would be relatively straightforward but finding any documentation on the subject is proving difficult.
I am creating an ecommerce site using ubercart, i have installed this and all of the relevant modules and have created custom product pages with not much hassle. What I need to do is create a 'blog' that's articles can relate to one or multiple products. I have managed to set up the blog with no issues but I am struggling to find out how I can first of all link the story to a product in the product creation process (i.e. when creating a product I can choose a blog article from a list to form a relationship). I have kind of managed to provide this required relationship using the References module. But I have no idea how I can use this relationship to, for instance dynamicall display a list of products related to the current blog article or vice-versa.
I have previously asked a similar question but an still unable to figure this out.
Many thanks.
If the field is attached to the blog content type then you'll have a list of related products automatically outputted in the field display. If you haven't, go to the 'Manage Display' section for that content type and make sure that field isn't hidden.
The References module is only uni-directional currently so you'd have to code a solution for the other way around yourself (not particularly tricky). Alternatively you could ditch References altogether and try the Relation Module which defines bi-directional relationships between entities.

Drupal 6: Using Organic groups for Educational page

I am working on a departmental website within a big university and want to add different types of functionality for different users depending on their roles.
There are 3 main types of users:
Publicly listed
Alumni (listed but based on different fields and using a custom template file)
Others (users on site but not listed)
Right now we are using Content Profiles for the publicly listed users and list the content in the core profile tables for the alumni.
The problem is: If I'm faculty I still see all the fields for alumni (although it is in its own tab) and if I am alumni I see all the fields for faculty.
Question: What I would like to do is provide them different views of editing "My Account" based on their roles. So I wonder, would it be possible to do this with organic groups or is this something that needs custom PHP coding?
Thanks for the help
If you're asking about limiting fields, then it has nothing to do with OG.
I think you're looking for the conditional fields module.
This way you can set a node as 'alumni' or 'faculty', and depending on it show different fields.

Resources