![]() |
User Notes Icon/Link in Postbit, if user has notes
Description:
This modification adds an icon and link to a member's usernotes in the postbit template. The icon will only appear to the people with proper permissions for viewing notes. The icon will only appear IF the member actually has usernotes posted about them. Icon links directly to that member's notes. Rolling over the icon reveals the number of notes a member has posted about them. Time to install: 5 minutes or less. Files to Modify: 1 php file, 1 template. Graphic included. - - - - - ------ FILE CHANGE ------- OPEN showthread.php FIND: PHP Code:
PHP Code:
Close and upload. ----- TEMPLATE CHANGE ----- OPEN postbit FIND: PHP Code:
PHP Code:
----- ADDITIONAL IMAGE UPLOAD ----- Use provided notes.gif image, or make your own. https://vborg.vbsupport.ru/ UPLOAD into directory images/buttons (or other appropriate image directory of your choosing). If you upload into a different directory, be sure to change the IMG SRC code in postbit to refer to the correct place. That's it, you're done. |
Good job SFishy!
|
Great idea! Makes the user notes feature a lot more useful and convenient
|
Excellant Hack, simple but useful.
|
Quote:
One thing I just added to the mod .txt file... PHP Code:
|
Awesome enhancement, thanks so much!
|
I had this for vb2 :) nice addition.
|
Nice i instalade
but i correct the center gif <if condition="(($post['userid'] == $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOWNUSERNOTES) OR ($post[userid] != $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOTHERSUSERNOTES)) AND $show[hasusernote]"> <a href="usernote.php?$session[sessionurl]u=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/notes.gif" alt="$show[usernotetotal]" border="0" /></a> </if> |
Nice hack, although I would suggest adding
PHP Code:
|
I got this whenever someone tried to open a post made by a guest user:
Quote:
Thanks, -Jason |
All times are GMT. The time now is 06:54 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:
|