![]() |
|
#1
|
|||
|
|||
|
Is there some way to hack the code so that the users can chose which modules they want to have displayed on their homepage? I've installed a bunch of modules and my users all seem to be divided about which ones are useful to them and which aren't. To display all of them would clutter up the homepage - I know I can set what usergroup can see what modules, but can't there be a hack that the users can freely chose which modules they would like to have displayed and which ones they don't want?
|
|
#2
|
||||
|
||||
|
That would be a cool idea, having the user pick which module they want to display.
|
|
#3
|
||||
|
||||
|
definetly a nice idea
|
|
#4
|
|||
|
|||
|
this can be done easily... just take the admin part where you set the display of modules, create a special storage place in the db for each member pref, and usercp to access the admin part just named... when a user with proper permissions modify the display, it is saved in his own... if the user reset, the saved pref is deleted.
and in the portal construction, simply switch between board prefs and user pref... also, to disable a block, instead of a switch, using the "0" as a display order would disable the block for the user's view... i think it browse the entire need for this hack... someone for the job ?! |
|
#5
|
||||
|
||||
|
sounds complex, but i'm glad is something that someone can do.. hope someone with more php experience than me can accomplish this
|
|
#6
|
|||
|
|||
|
you can do this yourself using User Profile fields, and basic conditionals.
|
|
#7
|
||||
|
||||
|
mm......yeah, i think i'm grasping the idea and the method that could be used... anyone else has any more ideas?
|
|
#8
|
|||
|
|||
|
Okay, makes sense.... but I wouldn't know where to begin coding it myself. Hence I asked :P
|
|
#9
|
|||
|
|||
|
well here it is... its really all template-based, IMO.
If you create a custom user profile field called fieldX, and set it so you can choose Yes or No as the two options (with a title describing the module in question)... then you can just do the following in the template your module is based on: Code:
<if condition="$bbuserinfo[fieldX] =='Yes'">
Module template code
</if>
You could even replace that content with something else, by doing this: Code:
<if condition="$bbuserinfo[fieldX] =='Yes'">
Module template code
<else />
Totally different module code
</if>
|
|
#10
|
|||
|
|||
|
Has anyone tested this... Sounds like it would work.
|
|
#11
|
||||
|
||||
|
I'm pretty sure it works, but it will require some work on your side to set everything up......
|
|
#12
|
|||
|
|||
|
Did anyone get this working? I would love to see a working version of this. Seems like such a great feature to have.
djnth |
|
#13
|
|||
|
|||
|
Search is your friend. This method works fine.
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Active modules not showing | contramontanum | Troubleshooting / "How do I..." Questions | 3 | 06-21-2004 01:43 PM |
| 10+ Modules Bug | maximux1 | Troubleshooting / "How do I..." Questions | 3 | 05-30-2004 11:04 PM |
| User customizable CMPS page | ogetbilo | Feedback & Suggestions | 1 | 05-20-2004 12:04 PM |