Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Notes Icon/Link in Postbit, if user has notes Details »
User Notes Icon/Link in Postbit, if user has notes
Mod Version: 1.00, by SFishy (Member) SFishy is offline
Developer Last Online: Dec 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 21
Released: 31 Dec 2004 Last Update: Never Downloads: 25
Not Supported  

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:


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

ADD right ABOVE it:


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

Save showthread.php
Close and upload.


----- TEMPLATE CHANGE -----

OPEN postbit

FIND:


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

ADD right BELOW it:


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

Save changes.


----- ADDITIONAL IMAGE UPLOAD -----

Use provided notes.gif image, or make your own.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	usernote_screenshot.gif
Views:	491
Size:	16.8 KB
ID:	22638  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 31 Dec 2004, 00:35
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Good job SFishy!
Reply With Quote
  #3  
Old 31 Dec 2004, 03:26
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Real name: Colin
Great idea! Makes the user notes feature a lot more useful and convenient
__________________
-alkatraz
Northwest Nissans Classifeds
Reply With Quote
  #4  
Old 31 Dec 2004, 03:35
Guest190829
Guest
 
Excellant Hack, simple but useful.
Reply With Quote
  #5  
Old 01 Jan 2005, 03:14
SFishy SFishy is offline
 
Join Date: Nov 2001
Real name: Amy
Originally Posted by pseudo class
Excellant Hack, simple but useful.
Glad you guys like it --
One thing I just added to the mod .txt file...


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

Just makes it's easier to immediately select to post usernotes about a member.
__________________
Amy

Responsible for mods:
Usernote Info and Link in Postbit for those with Proper Permissions

Last edited by SFishy; 01 Jan 2005 at 05:42.
Reply With Quote
  #6  
Old 02 Jan 2005, 06:22
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Awesome enhancement, thanks so much!
__________________
-Jason / WTF!?
Reply With Quote
  #7  
Old 03 Jan 2005, 16:07
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Real name: Snowy
I had this for vb2 nice addition.
__________________
A Disability Chat Community
Reply With Quote
  #8  
Old 14 Jan 2005, 23:21
jmacieira's Avatar
jmacieira jmacieira is offline
 
Join Date: Sep 2004
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]">&nbsp;<a href="usernote.php?$session[sessionurl]u=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/notes.gif" alt="$show[usernotetotal]" border="0" /></a> &nbsp;</if>
Reply With Quote
  #9  
Old 21 Jan 2005, 20:23
ttlgDaveh's Avatar
ttlgDaveh ttlgDaveh is offline
 
Join Date: Dec 2003
Nice hack, although I would suggest adding
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

around the query as you get nice DB errors if you have any posts without userids, as happened to me in a botched upgrade from one forum software to another several years ago.
Reply With Quote
  #10  
Old 25 Jan 2005, 16:25
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Real name: Jason
I got this whenever someone tried to open a post made by a guest user:


Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

Date: Tuesday 25th of January 2005 08:19:27 AM
Script: http://www.trackpads.com/forum/showthread.php?t=83928
Referer: http://www.trackpads.com/mail/read.e...69710&show=msg
Username: Hannibal
IP Address: 68.18.124.54
I have USENET import on my site and the posts from the usenet posters are guests.

Thanks,

-Jason
Reply With Quote
  #11  
Old 28 Jan 2005, 16:25
synn synn is offline
 
Join Date: Nov 2004
I'm receiving the same db error as Trackpads...any fix for this?
Reply With Quote
  #12  
Old 28 Jan 2005, 19:49
DR@M W@VR DR@M W@VR is offline
 
Join Date: Aug 2002
Thumbs up

Originally Posted by alkatraz
Great idea! Makes the user notes feature a lot more useful and convenient
yeah I think It makes it more of a option for users to use it, its a great resource, just like a personal guestbook/journal/custom page.

Nice hack very simple but effective.
__________________
Majestic Forum
Reply With Quote
  #13  
Old 28 Jan 2005, 22:28
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Originally Posted by trackpads
I got this whenever someone tried to open a post made by a guest user:




I have USENET import on my site and the posts from the usenet posters are guests.

Thanks,

-Jason
I get the same error. Any news?
__________________
Ciao jluerken
Reply With Quote
  #14  
Old 31 Jan 2005, 04:05
h75's Avatar
h75 h75 is offline
 
Join Date: Sep 2004
Real name: Hollii
i git an db error after i install that hack. :devious:
Datenbankfehler in vBulletin 3.0.6:

Ungueltige SQL-Abfrage:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid =

mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

Datum: 31.01.2005 05:02:19
Skript: http://halloo.de/t.php?t=339
Referer: http://halloo.de/f.php?f=45
Benutzername: Hollii
IP-Adresse:
Reply With Quote
  #15  
Old 03 Feb 2005, 19:44
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Real name: Mike
Originally Posted by h75
i git an db error after i install that hack. :devious:
Replace:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

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

Layout Options | Width: Wide Color: