![]() |
VBNotes
This is meant to emulate the old VBPad which seems to no longer be in production and died out in version 2.x. A client who is upgrading needed this for their 3.7 site so I wrote it up.
It allows your users to have up to X notepads in their user CP for just themselves. Can set user group permissions. I will support this as I can but don't expect miracles. Sure, there are many other functions that could be added, but my job was to keep it as close to VBPad as possible so as to not upset the applecart too much. I wrote it completely from scratch and this will NOT upgrade anyones current installation of the old VBPad. The database is completely different as the last version was put together rather poorly. Enjoy and don't forget to: Click Install |
Screen Shots?
|
Quote:
|
installed on 3.6.8
thanks alot |
Ok, I should mention I have only tested this on 3.7.. Should work on 3.6.x but you never know.
|
/me clicks install. Thanks!
|
Well what would be great is the ability to have a drop down menu of canned messages aka notepad entries from within the postbit and the private messages.
That way it can be very easy to select a notepad entry and post it in the post/thread/private message :) That would be amazing! Something ive long wanted. |
Dies this have a list of canned entries or does a box show up for each one? If you had enough entries the page could get very long with just boxes.
|
Got an error:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/vbnotes.php on line 45 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in [path]/vbnotes.php on line 45 We are using mysqli to connect to database and this seems to be related to that. |
Indeed.
I also get a mysql error. Un installed. |
Hello Jafo232
Thank you for the hack. I´ve it install in vb 3.7 without any problem I have a query, it is possible that when you click at the notes, ther are opened within the main table. Preserving in this way the control panel side navigation table? |
Feel free to edit the template any way you wish to accomplish just that.
|
Nice! Thanks!
|
I've installed it and everything went smoothly but when I try to use the notepad within my control panel - I am confronted with this message..
smooth-c, you do not have permission to access this page. This could be due to one of several reasons: 1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? 2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. Even though, in my usergroup permissions the vbnote option; Permission to use VBNotes Is set to Yes. Any help? |
Do you belong to any other user groups? Make sure they too have permission..
|
Great hack but i have 3 suggestions
1- each group have diffrent number of notes can set from group permission 2- the note is shown in the usercp note another page 3- when you set the permissions for a number (ex. 2) the 3rd note apper and when you try to write in it is write after that if the user update the note every thing gone !! and this is not good for important notes :) , hope you can fine some way that is you set the namber no new note place apper :) |
Questions I have before installing:
- Any SQL/XSS injection vulnerabilities associated? |
Nice, installed. :)
|
Quote:
|
Can we have it as a Tab in our Userprofile and not on a own vB-Site?
Any maybe a Link at the QuickLinks. :) |
Thank you very much
|
Did not work for me on 3.7.1. I was not able to see the content after I entered text and pressed "Update Notes"
I just got another blank box appearing. Also was not able to erase the box as well. FYI: I'm using: PHP 5.2.3 |
I just noticed the line in the first post that says "the last version was put together rather poorly". I hope you weren't referring to Chen's version.
|
Quote:
The last version as I recall was set up where each user had a row in the vbnotes table. All of the users messages were in ONE row, parsed by something like |||. In otherwords: Code:
$usernotes = preg_split("/\|\|\|/",$row); It has been a bit since I worked on it, but I recall there were other issues as well. |
His also had a list where you could choose the note and not a separate box for each one, if I recall. If Chen did it that way, then he had to have a good reason. His code is excellent. ;)
|
Quote:
Code:
$DB_site->query_first("SELECT lastupdated FROM usernotepad WHERE userid='$bbuserinfo[userid]'")) { Not to mention he includes global.php numerous times. I have attached the only file I could find left of it (they have been deleted from chens thread). :p Of course, this code is about 7 years old, and I know if you looked at mine from that long ago, it would probably not be much better. |
At the time, that was considered top of the line coding. vb has come a long way since then. If ol' Chen was around today I think he would still be able to blow us all away with his knowledge. ;)
Do you have any plans on doing the listing of the notes like he did instead of separate boxes? I might be interested in that. |
From the hack I saw, it was already in separate boxes. Like I said originally, I basically was just charged to copy it exactly as it was working.
|
No, he had it as a listing that would bring up a box for the said note when you clicked on the link. The way you are doing it would make for one long page if you have enough notes.
|
Just installed on 3.7.1 - seems to work perfectly. Thanks!
|
All times are GMT. The time now is 03:28 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:
|