vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=278884

User notes visibile immediately on user's profile
by Alan_SP
20 Feb 2012 17:59

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: http://www.vbulletin.org/forum/showp...&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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To place it below user's profile tabs find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In both cases below add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With $bbuserinfo,5,6,7 you define which usergroups will see user notes inside user's profile.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Code for making something into collapsible block you can find here.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In template usernote you also need to find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add below two </BR> so you have:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is that button for adding new user notes is separated from title of page.

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.

ProFifaLeagues 20 Feb 2012 19:43

Thanks Alan Superb Work mate

ProFifaLeagues 20 Feb 2012 19:52

Worked Superb Just what was needed for us!

BlueCheri 21 Feb 2012 06:02

Tagged.

Looks useful, waiting for some feedback from other members.

G!

ProFifaLeagues 21 Feb 2012 07:21

Quote:

Originally Posted by BlueCheri (Post 2301812)
Tagged.

Looks useful, waiting for some feedback from other members.

G!

Confirmed working fine on 4.1.3 and 4.1.5
Looks just the same as the screenshots above and you can easy alter the sizes etc

Alan_SP 21 Feb 2012 12:29

Quote:

Originally Posted by BlueCheri (Post 2301812)
Looks useful, waiting for some feedback from other members.

Usernotes are separate page and IFRAME is used to load pages inside page.

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.

ProFifaLeagues 21 Feb 2012 15:08

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

Alan_SP 22 Feb 2012 11:54

I'm not sure how to do that.

ProFifaLeagues 22 Feb 2012 20:00

No probs mate thanks so much for the help in bringing this mod alive

ProFifaLeagues 13 Jun 2012 23:09

Just a Quick update that this works the same for 4.2 all edits 100%

Toorak Times 06 Oct 2012 18:22

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?

Elixar 27 Nov 2015 22:01

How can you make it appear in a collapsable menu?

Alan_SP 29 Nov 2015 00:17

For making some part collapsible (if I understand your question), you need to use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In upper example I used CODE BBtag so I can use color BBcode, so you can see in red what are variables you can (and have to) change to suit your needs. The two unique names in green must be the same that collapsing work.

For this particular example you can use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In above example you have for title of collapsible block first image (you can easily remove it), phrase for user_notes and total number of usernotes for that user.

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.

Elixar 29 Nov 2015 07:03

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?

Alan_SP 29 Nov 2015 21:44

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.


All times are GMT. The time now is 03:18.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.