![]() |
This will add a speical section to the User CP, called "My vBpad".
Started a reply but don't have time to finish it? Need to save a certain sentence you use a lot? (*cough*) Just put it there, and hit save! Each pad can store multiple notes. Maximum number of notes can be set in the Admin CP. You can also allow/disallow use of IMG code, vB code, smilies and HTML in notes. Also storing the last time the pad was changed. I was hoping that I could get fedback from you guys, and maybe turn this into something a lot better So if you got any ideas, how this can be used to make life easier on a forum, please do not hesitate. Screen shots: https://vborg.vbsupport.ru/attachmen...&postid=182455 https://vborg.vbsupport.ru/attachmen...&postid=182457 https://vborg.vbsupport.ru/attachmen...&postid=182891 Read tubedogg's thread here for more info about running queries. Installer: (upload to your admin folder and run) https://vborg.vbsupport.ru/attachmen...&postid=182964 |
Wow, a great hack again. May I gonna try it later on my home PC since I don't need it on my server (yet).
|
Thanks orca.
Here is a screen shot of the main thing - for now, the only thing. But I'm already working on a little add-on... :) |
Figured it's a waste of time to navigate thru the User Control Panel just to read the notes, so I added this.
(screen shot attached) Will update first post in a couple of minutes. |
this is a great plan, until now i have sent pms to myself ;)
the next feature would be able to have more than one notepad per person and an admin option to set the limit. cool hack :) |
WELL DONE FIREFLY!!!!!!!!!!
THANK YOU!!!:D |
Wait, it gets better.
I added a couple of new features: Now with support for multiple notes. Admin can set max number of notes a user can have, and max chars for each note. I just need to fix a few things and I'll release it. Until then I remove the code from my first post to avoid too many people installing an old version. :) |
Brilliant! I look forward to the release :)
|
GREAT HACK AGAIN FROM FIREFLY!!
Now, shouldn't it be just called vB Pad or My vB Pad instead of Your vBPad to be consistent :)? |
Thanks hacker, I'll edit the templates.
(the reason I added "Your" there is because just vBpad looked small :p) So I'll make everything "My vB Pad". (can someone edit the thread title for me? thank you!) |
Keep in mind that $usercpnav is pretty wide as it is...Kier and I spent some time a few months back trying to fit a new link on it (and keep it fitting within 800x600) and it wasn't fun. :)
|
Then I think I'll remove the link from the navigation, and just link to that page from that box that shows the notes.
You don't happen to know if it's possible to add something like maxlength="xx" to <textarea>, do you? I don't want to add Javascripts... ;( |
I`m I want it :D
|
In a couple of minutes (really!).
|
Ok, it's done.
I added a lot of stuff, you can see everything by the screenshots I posted: Main thing - http://www.vbulletin.com/forum/attac...&postid=182455 User control panel - http://www.vbulletin.com/forum/attac...&postid=182457 Admin options - http://www.vbulletin.com/forum/attac...&postid=182891 |
All works but the box does not show up to place notes in, a box comes up that has the following information in it
"Your notes: Last updated: 10-08-2001 06:15 AM You are allowed to have 10 notes, each can contain 250 characters IMG code is , vB code is , smilies are , HTML is " and says update my pad at bottom. When you click on update pad it gives you this error and then automaically goes back to the user profile. warning varaiable passed to each () is not a array or an object at home/blab/blab/blab on line 536 line 536 is this PHP Code:
Any Ideas? |
Database vbulletin
Error SQL-query : [Edit] INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES ('40','vBpad','32') MySQL said: Duplicate entry '40' for key 1 Back |
Did you install his first version, if so that might already be installed in that table. That is the reason you are getting the error, I got that error also but when i looked in the table it was there, so i went on with the install.
|
kamrad.ru, run this query and attach a screen shot of what you get (don't worry, no private info will be displayed):
Code:
SELECT * FROM settinggroup WHERE settinggroupid>'30' Webhost, very strange. I thought it's a problem when the table is empty, but I already ruled that possibility out. Are you sure you created the table? Anyway, I updated the first post. Updated part is the code for member2.php. |
The pad works fine now, but nothing shows up on the My Vb Home page
|
Nothing at all?
Then you either didn't add the code to usercp.php, or didn't create the templates usercp_mininotepad and usercp_mininotepad_bit. |
oops,
i actually did all the changes but somehow it kept the old usercp.php in stead of the changed one, sorry to waste your time GREAT HACK!!! |
Quote:
|
Installation was easy - thank you for this great hack!!!
Tom |
Installer:
(couldn't post any more in my post because I was over the max-chars limit! :eek:) |
Great idea and great addon, I am going to install it on a dev board here in a bit before my college class :)
thanks FireFly :) |
Another excellent hack FireFly! :)
I have one question. How difficult would this be to limit to specific user groups? For instance, I am going to create a 'Premier Member' program for those people who donate to my site and something like this would be perfect as an added-on benefit for contributors. |
i don't know if there is such a need for multiple notes fields. i think one semi large field would be fine. i don't know, because people can just add there notes into the one main one. either way i like the idea for notes. on newpost, or newreply or whatever, there should be a link directly to go to your notes. or an option in the cp to display your notes on those pages. i like how yu used my post for testing.
|
All work`s it`s realy COOL, thanks :)
|
great job FireFly
Also, I feel the same way as smachol, about the user groups... |
when i run install_vbpad.php, it gives me this message:
Fatal error: Call to undefined function: cpheader() in /home/411hype/public_html/forums/install_vbpad.php on line 15 |
Just installed it! Thanks, it went flawlessly :)
- although, in the installer, it's a little confusing when it comes to editing the usercp template, as you actually need to edit usercp_nav to add in Code:
<td bgcolor="$cpnav[8]"> Mind you, I'm easily confused :p |
nobody can solve my problem?!
When i run the install file, the following error comes up!... Fatal error: Call to undefined function: cpheader() in /home/411hype/public_html/forums/install_vbpad.php on line 15 |
You need to put that file in your /admin directory to run it.
Also, please enter your license information in your profile. See the link in my sig for more info. Thanks! |
Yup, sorry I didn't write it in my post.
MarkB, thanks for that, I'll fix it right away. :) Steve, yeah it's very possible. Give me a couple of hours and I'll get to it. :) |
Alright Steve, Justice, here it is.
Works great as far as I tested it. (by default, all usergroups have this DISABLED!) ADDON: Make vBpad available only to certain usergroups, based on settings in Admin CP Run query: Code:
ALTER TABLE usergroup ADD cannotepad SMALLINT(6) DEFAULT '0' not null AFTER canwhosonlineip Add: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Add: PHP Code:
PHP Code:
Changes to file usercp.php (admin folder): Replace: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Excellent hack, well done! :)
|
very easy install
cool thanx |
magistr, glad you liked it! :)
Can you please enter your license information in your profile. See the link in my sig for more info. Thanks! |
Found a little (big) bug:
In member2.php, this code Code:
if ($maxpadnum!=0 and $counter<=$maxpadnum) { Code:
if ($maxpadnum==0 or $counter<=$maxpadnum) { |
All times are GMT. The time now is 04:47 PM. |
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:
|