![]() |
User notes visibile immediately on user's profile
1 Attachment(s)
With this you could have user notes visible immediately on user's profile and you could add them, edit them and everything else you do with user notes without need to go to separate window.
This was inspired by @rammieone question here: https://vborg.vbsupport.ru/showpost....&postcount=161 You need to edit at least one template (MEMBERINFO), but probably you would like to edit two more templates to make it more practical. To add usernotes inside member profile edit MEMBERINFO template. Two most logical places is above and below user's profile tabs. To place it above user's profile tabs find: HTML Code:
{vb:raw memberinfo_customize} HTML Code:
{vb:raw template_hook.profile_tabs} HTML Code:
<vb:if condition="is_member_of($bbuserinfo,5,6,7)"><div><IFRAME SRC="usernote.php?{vb:raw session.sessionurl}u={vb:raw prepared.userid}" WIDTH="100%" HEIGHT="300"></IFRAME></div></vb:if> You could define height to different value, depending what you prefer, it doesn't have to be 300px. Also you could add FRAMEBORDER=0 if you don't want border around your IFRAME. Also, you can made this into collapsible block, so if you don't want to see it time from time, use this html code instead: HTML Code:
<div class="block collapse" id="usernotes_in_userprofile"> In case that you decide to use this template change, it would be wise to change two additional templates, to remove unwanted header, navbar and footer. Edit templates usernote and usernote_note Remove from them: HTML Code:
{vb:raw header} HTML Code:
<div id="pagetitle"> HTML Code:
<div id="pagetitle"> I attached image how it looks if you place it above user's profile tabs. v1.00 - Initial version. v2.00 - Added option that usernotes block can be collapsible. Also changed text you need to find and add code below it, if you want it above user profile tabs. |
Thanks Alan Superb Work mate
|
Worked Superb Just what was needed for us!
|
Tagged.
Looks useful, waiting for some feedback from other members. G! |
Quote:
Looks just the same as the screenshots above and you can easy alter the sizes etc |
Quote:
Only thing this modification does is creates iframe page of user's notes if user who looks at member's profile is in allowed usergroup. There's nothing that would prevent this modification to work. If it doesn't work, you have problems with usernotes themselves. |
Alan would there be any way I can include a user profile Field to be shown on the notes system.Would be handy if every member who uses a certain Profile field on our Forums could also be shown on there user notes.
Cheers for any help |
I'm not sure how to do that.
|
No probs mate thanks so much for the help in bringing this mod alive
|
Just a Quick update that this works the same for 4.2 all edits 100%
|
Hi guys,
Works as said on my 4.2. Been following, downloaded and implemented the basic model. I see this as an important attribute to the Profile page, I really want to pump it up there. I don't know why but I can't get bbcode to work, does it work in the frame? |
How can you make it appear in a collapsable menu?
|
For making some part collapsible (if I understand your question), you need to use this code:
Code:
<div class="block collapse" id="unique id name"> For this particular example you can use this code: HTML Code:
<div class="block collapse" id="usernotes_in_userprofile"> Info about collapse status of the block is kept in cookies, so if you change browser, this info isn't remembered. I'll also add this info in first post, and I also change location where you need to add this code to have user notes bellow navbar. |
When it closes, it seems to close really choppy and moves the page. How can you make it to close with Ajax like a clean effect?
|
I also changed location where you should add code, it's in the first post.
Also, you should now that what you're experiencing is the way your browser handles HTML, or just problem with speed with your computer. For example, in my browser collapsing on and off is instant. Try it with different browser, or on different computer. From code perspective, there's nothing that can be done to speed it up (and it is fast). It collapses as speedy as any other collapsing object within vB. |
Quote:
|
I noticed an error, it shows on the WOL that rather than saying you are Viewing User Profile, it now says Viewing User Note. :(
|
Probably because you call both pages, and somehow user notes gets precedence.
|
Quote:
|
I don't know. I guess you should find php code in user notes script that makes user visible in WOL. What code is that, I don't know.
|
Quote:
|
Just an idea, you can test and see if it will work or not.
Every file has something like this on beginning: PHP Code:
|
Quote:
Mark said it would involve editing core files, so I went ahead and just removed this from the themes. Thanks though. :) |
All times are GMT. The time now is 09:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|