vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User Notes... Great Feature but how about an icon (https://vborg.vbsupport.ru/showthread.php?t=73430)

SFishy 12-28-2004 08:56 PM

User Notes... Great Feature but how about an icon
 
In a post itself, right where the "report bad post" and "ip address" icons are, it would be great if there was an icon that indicated a user had notes posted about them. Maybe it would be grey if they had no notes, and red if they already had notes posted about them. Only available to admin and mods (or definable in the admin CP as who can see it).

Anyone? ;)

SFishy 12-29-2004 01:52 AM

Quote:

Originally Posted by SFishy
In a post itself, right where the "report bad post" and "ip address" icons are, it would be great if there was an icon that indicated a user had notes posted about them. Maybe it would be grey if they had no notes, and red if they already had notes posted about them. Only available to admin and mods (or definable in the admin CP as who can see it).

Anyone? ;)

One other thing...

It would be nice to have some kind of similar indication that a member has notes about them when you are viewing the person's information in the User Manager (through the admin CP). Right now, the ONLY way you know if someone has user notes is by going to their profile.

SFishy 12-29-2004 02:41 AM

Okay... I figured out the first part. In postbit, I now have a little icon that shows up only for admins and mods (right next to the iplogged graphic) that links right to the usernotes of the member who posted.

PHP Code:

<if condition="($permissions['genericpermissions'] & CANVIEWUSERNOTES)">&nbsp;<a href="usernote.php?$session[sessionurl]u=$post[userid]"><img src="images/buttons/notes.gif" border=0></a></if> 

Now... the second part I still need help with :)

I only want it to show up IF that member has 1 or more notes.
OR
when you rollover it, it tells you how many notes that members has.

Ideas anyone?

SFishy 12-29-2004 02:50 AM

Quote:

Originally Posted by SFishy
Okay... I figured out the first part. In postbit, I now have a little icon that shows up only for admins and mods (right next to the iplogged graphic) that links right to the usernotes of the member who posted.

PHP Code:

<if condition="($permissions['genericpermissions'] & CANVIEWUSERNOTES)">&nbsp;<a href="usernote.php?$session[sessionurl]u=$post[userid]"><img src="images/buttons/notes.gif" border=0></a></if> 

Now... the second part I still need help with :)

I only want it to show up IF that member has 1 or more notes.
OR
when you rollover it, it tells you how many notes that members has.

Ideas anyone?

awe crap -- forget that.. my conditional didn't work (everyone can see).

Help?

SFishy 12-29-2004 02:59 AM

Okay now I got part 1 right :)

PHP Code:

<if condition="($post['userid'] == $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOWNUSERNOTES) OR ($post[userid] != $bbuserinfo['userid'] AND $permissions['genericpermissions'] & CANVIEWOTHERSUSERNOTES)">&nbsp;<a href="usernote.php?$session[sessionurl]u=$post[userid]"><img src="images/buttons/notes.gif" border=0></a></if> 

Please, anyone help with part 2? (I only want it to show up IF that member has 1 or more notes. OR when you rollover it, it tells you how many notes that members has.)

SFishy 12-29-2004 03:32 PM

Anyone?

SFishy 12-29-2004 07:45 PM

Quote:

Originally Posted by SFishy
Anyone?

Call me inpatient... but can anyone offer any assistance with this? I have to imagine it's not all that difficult, I'm just having a hard time putting the pieces together myself.

SFishy 12-30-2004 07:20 PM

Got this figured out with the help of a friend. If anyone wants it let me know.

Bison 12-30-2004 07:32 PM

I feel for you ... and i'm glad you figured it out. You might want to add this as a Mini Mod and get some rep for yourself! ;)

Reeve of shinra 12-30-2004 07:39 PM

Please add it, its a help to everyone :)


All times are GMT. The time now is 09:20 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
  • Page Generation 0.01202 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete