The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User notes visibile immediately on user's profile Details »» | |||||||||||||||||||||||||||||
User notes visibile immediately on user's profile
Developer Last Online: Oct 2023
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"> <h2 class="blockhead"><img src="{vb:stylevar imgdir_siteicons}/note.png" alt="{vb:rawphrase user_notes}" class="inlineimg" /> {vb:rawphrase user_notes} ({vb:raw prepared.usernotecount}) <a class="collapse" id="collapse_usernotesprofile" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_cel_dummy_img}_40b.png" alt="{vb:rawphrase collapse_this_category}" /></a> </h2> <div class="blockbody settings_form_border" id="usernotesprofile"> <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> </div> </div> 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} {vb:raw navbar} {vb:raw footer} HTML Code:
<div id="pagetitle"> <h1>{vb:rawphrase user_notes_for_x, {vb:raw userinfo.username}}</h1> </div> HTML Code:
<div id="pagetitle"> <h1>{vb:rawphrase user_notes_for_x, {vb:raw userinfo.username}}</h1> </div> </br> </br> 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. Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
BlueCheri, ProFifaLeagues |
Comments |
#2
|
||||
|
||||
Thanks Alan Superb Work mate
|
#4
|
||||
|
||||
Tagged.
Looks useful, waiting for some feedback from other members. G! |
#5
|
||||
|
||||
Quote:
Looks just the same as the screenshots above and you can easy alter the sizes etc |
#6
|
||||
|
||||
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. |
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
I'm not sure how to do that.
|
#9
|
||||
|
||||
No probs mate thanks so much for the help in bringing this mod alive
|
#10
|
||||
|
||||
Just a Quick update that this works the same for 4.2 all edits 100%
|
2 благодарности(ей) от: | ||
Alan_SP, Toorak Times |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|