I'm really sorry for bumping this thread. But I think it is better if I post this here, because it is about Profile Forum too.
I have this idea based on this thread:
http://mybbhacks.zingaburga.com/showthread.php?tid=668
Basically, we can use showthread / forumdisplay as our Additional Profile page with XThreads. We know that showthread / forumdisplay is one of the main XThreads working area, so, we can modify it as our need. Because user's info loaded in showthread is more detail compared than in forumdisplay, so, I have an idea to use showthread as this Additional Profile page.
Almost all XThreads and MyBB features related to showthread can be used for this.
It means:
- Has an ability for having "unlimited custom blocks" by using XThreads custom thread fields, like profile video, profile album, personal file download, and etc, depends on whatever custom thread field we want to add for this Additional Profile page.
And we know that each custom thread fields has its own permission. So, permission for creating and viewing each custom block can be set per usergroup basis.
For example:
Lets say that we have 4 image uploader and 1 YouTube video blocks.
Usergroup A -> Can upload max 3 image for their Additional Profile page.
Usergroup B -> Can upload 4 image for their Additional Profile page.
Usergroup C -> Can upload 4 image and add YouTube video for their Additional Profile page.
- Each block can be styled and placed anywhere in showthread / forumdisplay. We can display it as text, image, video, and etc. Basically, XThreads custom thread fields is the main contents of this Additional Profile page. It means that we need to know how to use it
- MyBB reply system can be used as comments system. Thread rating can be used as user rating. Thread views can be used as user views counter.
- Permission for having Additional Profile page uses MyBB post thread permission, per usergroup basis. Permission for commenting uses MyBB post reply permission. Permission for viewing Additional Profile page uses MyBB view forum / thread permission, per usergroup basis.
- Inline Post Moderation and Moderation Options can be used for managing each Additional Profile page, like deleting, unapproved / approved, report, warn and etc.
That's what I've been thinking about this Additional Profile page.
Here is a simple example for a "general" Profile Forum:
XThreads Options settings in edit forum page (this is a basic option only):
AdminCP -> Forum & Posts -> 'edit / create our Profile Forum'
- Template Prefix: xtprof_
- Thread Grouping: 2
- Show first post on every showthread page: Yes
- Enable XThreads' Inline Forum Search: Yes
- Force Postbit Layout: Force horizontal postbit layout
- Hide Forum: Yes
We need to put this forum URL manually in our templates (e.g: header template).
- Custom WOL Text:
- Forum Display: Viewing List Of Additional Page
- New Thread: Creating A New Additional Page
- New Reply: Commenting <a href="{1}">{2}</a> Additional Page
- Show Thread: Viewing <a href="{1}">{2}</a> Additional Page
And this is a simple example for custom thread fields used for this "general" Additional Profile page:
Custom Thread Fields Setting:
AdminCP -> Configuration -> Custom Thread Fields:
- File Input for Main Profile Image:
We will display this image in threadlist. So, it is a required field.
- Multiline Textbox for Wall Note:
- File Input for Additional Profile Image:
Repeat this step as our need. Use a different key. eg: xtprofpic2, xtprofpic3 and etc.
As said above, we can set the permission for each fields (which usergroup can upload image in which image uploader).
So, it is not a required fields.
- Title: Profile Picture 1
- Key: xtprofpic1
- Applicable Forums: 'select the forum above'
- Input Field Type: File
- Valid File Extensions: gif|png|jpg|jpeg
Modify it as our needs. It is the extensions of image that can be uploaded.
- Maximum File Size: 1048576
Modify it as our needs. It is a maximum file size (in bytes) that can be uploaded. In this example, 1 Mb.
- Editable by / Required Field?: Everyone
This is where we can set the permission for which usergroup this field can be used.
- Only accept uploaded images: Yes
- Image Thumbnail Generation: 120x90
- Display Format:
Variable in template for displaying this field is: {$GLOBALS['threadfields']['xtprofpic1']['value']}. If we repeat this step, we have a similar variable, but with a different key. In this example, we use 4 additional Profile Image with different permission. The key for those fields are: xtprofpic1, xtprofpic2, xtprofpic3, xtprofpic4. So, the variables are {$GLOBALS['threadfields']['xtprofpic1']['value']}, {$GLOBALS['threadfields']['xtprofpic2']['value']}, {$GLOBALS['threadfields']['xtprofpic3']['value']}, {$GLOBALS['threadfields']['xtprofpic4']['value']}
- Textbox for Profile Video:
Again, we can set the permission for this field. Which usergroup can use this field.
And a simple example template edit for this:
Create new templates in Global Template.
The templates below is for example only. Maybe we need to modify it as our need, depends on what design we want for it.
Admin CP -> Templates & Style -> Templates -> Global Templates:
- xtprof_forumdisplay_group_sep
- xtprof_forumdisplay_nothreads
- xtprof_forumdisplay_sticky_sep
- xtprof_forumdisplay_thread
- xtprof_forumdisplay_threadlist
- xtprof_forumdisplay_threads_sep
- xtprof_forumdisplay_thread_null
- xtprof_postbit
- xtprof_postbit_first
Basically, because postbit load some user info, so we can try to design it to make it a bit similar to the default profile page (if we want to make this additional profile page layout similar to our default profile page).
- xtprof_showthread
Modify it as our needs. Very related to the xtprof_postbit_first template.
- xtprof_showthread_noreplies
- xtprof_showthread_ratethread
There is a simple example additional plugin attached.
We need to put this link in our
member_profile and / or
template_prefix_showthread template:
Link to the default profile page:
Link to the Additional Profile page:
Each user is allowed for having one thread / Additional Profile page only in our Profile Forum.
Unapproving a thread in our Profile Forum will "suspend" the Additional Profile page, and will "suspend" the author for creating a new Additional Profile page.
This is an example for a suspended user:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=6&views
For user who doesn't have Additional Profile page:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=2&views
And this is a simple example of our "general" Additional Profile page:
http://www.14.mynie.co.cc/member.php?act...http://www.14.mynie.co.cc/member.php?action=profile&uid=1&views
Forum Display:
Of course this is for example only. We need to create our own Additional Profile page, depends on what we want.
Well, that is my idea
I'm really sorry if this is useless