Version: 1.00, by Jafo232
Developer Last Online: Oct 2022
Category: Add-On Releases -
Version: 3.7.0
Rating:
Released: 05-01-2008
Last Update: Never
Installs: 39
DB Changes Uses Plugins Auto-Templates
Additional Files
No support by the author.
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
I was..
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);
I cannot remember the exact delimiter but that was basically how it went. Sorry, but I think that is a poor design. Each note should have its own row. That is pretty much the point of using SQL. Chen was using the row as if it were a flat file.
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.
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.
Well, hopefully you do not consider this excellent:
Code:
$DB_site->query_first("SELECT lastupdated FROM usernotepad WHERE userid='$bbuserinfo[userid]'")) {
$note=$DB_site->query_first("SELECT * FROM usernotepad WHERE userid='$bbuserinfo[userid]'");
$splitnotes=explode("|||",$note[notes]);
There is no reason for that whatsoever.
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).
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.
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.