Hi,

Will it be great if homebox can show different display for each user for visitors?

For example user/10 or user/596 will each have their own homebox with different combinations of blocks to display to visitors. Thanks!

CommentFileSizeAuthor
#3 homebox_tab_on_user_page.diff6.69 KBjchatard

Comments

davidwhthomas’s picture

+1 This is indeed a good feature request.

Allowing homebox pages to override individual node / user pages which can then be customized would be ideal!

Perhaps merlinofchaos's 'Delegator' module could be used to provide this functionality?

It's part of his 'CTools' module ( http://drupal.org/project/ctools )

Delegator makes it possible for a UI to more easily control how a task is handled based upon data. For example, it can control what handles the node view task (visiting node/NID) based upon the node type of the node.

jchatard’s picture

Some patche would be appreciated, if you want this integrated.

jchatard’s picture

Status: Active » Needs work
StatusFileSize
new6.69 KB

As a starting point on a project I'm working on, I need to access each homebox from the user profile page.

So I created a quick and dirty patch that adds tabs on the user profile page. Patch attached can be applied against beta1.

Let me know what you think.
Jérémy

dropchew’s picture

Thanks for the patch. After applying, I have this error as a logged in user, when accessing profile tab home box,

user warning: Unknown column 'homebox' in 'where clause' query: SELECT bid, region, weight, status, open FROM homebox_users WHERE pid = 8 AND uid = homebox ORDER BY region ASC, weight ASC in \XXXXXXX\sites\all\modules\contributed\homebox\homebox.module on line 256.

and also this message,

Please be sure to login on our site to have your preferences saved. If you do not have an account please register, and then you will be able to save your preferences.

And I tried accessing other user's homebox in their user tabs but have a access denied error...

jchatard’s picture

I don't have any idea why you this message.

I sorry to tell you I'm leaving today for some holidays. I'll be back in a few weeks.

If you find what is going wrong with the patch please post it here.

Thanks,
Jérémy

dropchew’s picture

Sorry I may have applied the patch on a customize homebox module and thus the error. Have tried applying the patch on beta 1 and v1.0 separately, no erros but I am only able to access my own eg, user/5/homebox/1 and not able to access other user's homebox, seems like it ignoring the permission table..

Nevertheless, its a great module and enjoy your holidays :)

jchatard’s picture

Yes, you can't access other users Homebox because I think (but maybe I'm wrong) this is about privacy.

But you know we could change that.

Thanks, be sure that I will enjoy my holidays!
Jérémy

design.er’s picture

Hi, what's the current status of this patch - does it work? If yes, against which version?

Thank you for your great work! :)

Stefan

socialnicheguru’s picture

And can I view someone else's homebox?

can I place a homebox in a page?

hlan’s picture

Hi SocialNicheGuru,

I did patch it on Dev version and it works. But you still can't view somone else's homebox. I think you might need to hack the code to change the permission.

I also think that you can use mini-panel to bring in the homebox but I don't really know how to do it. If anyone knows, please share.

Thanks
Hein

socialnicheguru’s picture

Title: Support wildcards in url alias » Support wildcards in url alias- tabs on profile page

#3 seems to work for user 1 but no one else.
Do I have to give authenticated users admin priviledge for homebox for this to work?

jchatard’s picture

Well actually patch #3 was only here to create a TAB showing up for each user.

As I said before, Homebox are a private zone for each user, so I don't see any need to access others pages.

But if you really need this feature, feel free to hack the module and give back some patch.

Jérémy

mstef’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Where does everyone stand on this issue? I'll work something in to 2.x.

The work for #742982: Home Box for Organic Group page begun and my first solution was to create an admin settings page for Homebox+OG where you can pick one home box to override all group home pages with. It's not the most flexible solution, but it's something that works for now. My first assumption was to use something out of CTools but I was able to do it easily without it - and less is better.

I think overriding individual nodes and profiles is pointless. I like the idea of optionally adding a tab to user profiles. Is that enough?

Throw some info at me..

mstef’s picture

Ok, per the latest commit, under the Admin > User menu, you can specify an existing Home Box to show up as a user profile tab.

The tab will only be visible if you're viewing your own account page and if you have permission to view the Home Box.

Cool?

http://drupal.org/cvs?commit=370966

mstef’s picture

Status: Needs work » Needs review
hlan’s picture

Hi Mike,

That'll be really cool. How about the permission to view that tab? I mean whether user1 can see user2's homebox? or will you include an option for that kind of permission option?

Thanks
Hein Naing

mstef’s picture

I did already - you can only view your own. Its the same homebox so viewing it on another users profile is pointless because your settings will be shown.

hlan’s picture

Thanks alot, Mike. I'll test it tomorrow or the day after tomorrow and will let you know if there is any problem.

Regards
Hlan

mstef’s picture

Great..

The doc is outdated so look under Admin > User for the settings page.

mstef’s picture

Status: Needs review » Postponed (maintainer needs more info)
mstef’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm marking this as fixed. The functionality has been implemented as I see it being best. If someone objects or has some creative alternatives, feel free to open this again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

lvto2000’s picture

Mike first let me say that your module is the best I have seen on Drupal. I absolutely love it. To your point about anonymous users seeing other homebox profiles being pointless Id have to disagree if I understand your meaning. If your saying its pointless because the security risks will remain even after you make the edits to the program then I agree 150%. But as a feature add, if security can be controlled, I think you may have the Drupal module of the year if you add it.

Most other sites like Facebook, Myspace and others give all users the ability to see each other's profile. Also as a part of any new version you consider, it would be nice if the user could also choose an image background.

Again, the module is much appreciated. I spent all night screwing around with Dashboard only to find that it does not do what I need. Your module is there, just need those last couple edits to be perfect for me.

Thanks

mstef’s picture

@lvto2000:

Thank you very much - I really appreciate the feedback and kindness..

I'm not sure everyone on this thread is on the same page... It's very easy for all of us to misinterpret both what features are intended to do and what we're debating..

Here is what Homebox can currently do with profile integration - and keep in mind, it's bare:

The admin can pick an existing Homebox page, just a normal HB page like all of the others, and opt to have it be displayed on a user's profile as a tab. The behavior of the Homebox page is the same as any. If you view the Homebox, it automatically displays your saved settings and configuration. I found that the ability to place a Homebox page as a tab on a profile useful because this is just another convenient place to link to a dashboard-like page. I never intended on making it act as a new profile for the user (for other people to view). The reason why a user is only allowed to view their own Homebox profile tab, is because if you viewed someone elses, since it's just a normal Homebox page, it would load your settings - and that would be very confusing.

I hope that makes sense..

What sort of functionality are we looking for? Homebox profiles? A way for users to drag-and-drop their core profiles and have the settings persist for any user viewing it?

---

Thanks again!

mstef’s picture

Also, I had to add your quote about it being the best module to the project page - look under the Homebox 2 heading.

lvto2000’s picture

Should homebox be the Drupal user profile replacement? Yes this is exactly what I am looking for. I had figured out a way to do this with some php and html editing but the permissions issue denied anonymous users the ability to look at my site's user's homebox tab on their profile. The tab works perfectly for users who want to view their own homebox tab. Thats not the issue. In addition, we can set the profile so that it can be seen by anonymous users but not edited by them. If you apply the same permission thats on each users profile to the homebox tab you have created for them then could that resolve the settings issue?

Again, to all of your questions I say yes, thats exactly what am looking for. In addition, can users be able to have unique settings for color and background settings just for their homebox profile page?

As to the compliment, its much deserved. Everyone likes Drupal but I think most HATE the users section of Drupal. Open Atrium is the only theme/module app that has really done a good job with this until I saw your module. However, open Atrium has their look and feel all over. People can appreciate the level of customization you have given them with your tool.

mstef’s picture

Sounds like an interesting idea. Please just create a new feature request issue with as much information as you can, and I'll see if I can get it going...

Thanks again