![]() |
Admin. 2 Admin. Notes VIA AdminCP Index
Hello Fellow vBulletin.org Members,
I bring greetings from Appleworld. Lol. Sorry, it's been awhile since my last AdminCP related hack. This time I'm turning more towards Administrator to Administrator communication via quick posting software under the vBulletin AdminCP backend. I don't know, why else would I post it here. Lol. Anyways, here's what it is. Admin. 2 Admin. Notes Hack is a small hack but can help very greatly especially for those forums who have many Administrators who are always on the go and really don't have the time to post a quick thread. I believe there are more than enough of you out there. ;) This hack is almost portraying itself as a "dry-erase" board for quick messages to leave for your close "vBFamily". I'm currently unable to take screenshots so if any of you would be willing, I'd love ya da death. Lol. Since it is an Administrative feature, I'm ofcourse, unable to show you a working system, basically why I need someone to install and take screenshots. Well, with all that said and done, the only thing you have to do is click install and download. It comes with a detailed MSNotePad version of the Installation and only requires one table on your database. Enjoy and thank you. - Anthony AKA Crater Seraph UPDATED! ONCE AGAIN! LOL! ------------------------------------- Many years later... An update for 2.3.x is underway. Emails have been sent on the news. Lemme d/l the software and I'll get it out as quick as possible. This time, it'll be titled 'Administrator Notes' :nervous: |
Hi Anthony,
This is a useful idea for a hack...... thought I'd set it up and come back with a couple of screenshots for you. But I got this error when I tried to run the query. Quote:
|
Sounds good, I think I'll install this now and see what its like :D
|
Sorry Talisman. I need to fix that quick. Thanks. ;)
UPDATED! |
Looks interesting, I'll ponder installation after I see some screenshots. :p
|
Im a little confused - Although others seem to understand this hack, I dont know what it does. Would someone kindly explain what exactly this does:)?
|
It looks like a small PM system for use in the ACP, instead of posting a thread/pm'ing all admins, you post a message in the ACP instead :D
Thats what it looks like to me :) |
I believe the query is fixed. Here.
UPDATED |
Interesting Concept:)
Satan |
Quote:
This would be even cooler if you could use it with mods |
LOL.... I'm just not having any luck with this today. Just tried the update and got a slightly different error this time:
Quote:
Will check back later. Has anyone else got this installed yet? |
What exactly does this hack do?
I didn't quite get it from your description :D Regards - miSt |
The table creation query should work. This is it:
CREATE TABLE `adminnotes` ( `notes` LONGTEXT NULL, `userid` INT(11) NOT NULL DEFAULT '0', `timestamp` INT(11) NOT NULL DEFAULT '0', `username` VARCHAR(50) NOT NULL) I didn't have any problem when I tested it just now. Give it a try. Like I stated on the installation file, you may want to download the DB Query Hack that FireFly and I innovated. Btw, you can also catch me at: anthony@digitalsoft.net Good luck. - Anthony EDIT: Sorry, added a semi-colon at the end. |
Quote:
|
Oh that sounds pretty cool
- miSt |
Any screenshots?
|
I'm currently waiting for any chosen member to submit one. I'm unable to. :(
|
I have a question? Maybe I'm just flat out missing something, but how do we delete a message?
|
You just overwrite it. It only takes up a single row on that table at any given time. It only parses one note at a time. Everytime a new one is submitted the old one is deleted and is replaced by the new one.
|
I tried overwriting it with a blank note, but it still leaves my name on it. Is there anyway to make it just blank?
|
I can create a delete button if you'd like and submit the code. It shouldn't harm anyone.
|
here is a screeni
don't care about the language its german ;) but nice and cool feature ;) little code addition : instead of: ------------------------------------------------ maketableheader('Administrator To Administrator Notes'); echo "<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>". makelinkcode("Leave A Note","./anotes.php","0") ."</p></font></td>\n<td><p></p></td>\n</tr>\n"; $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext); $imgcodeon=iif($forum[allowimages],$ontext,$offtext); $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext); $smilieson=iif($forum[allowsmilies],$ontext,$offtext); $notes = $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1"); $note = stripslashes($notes['notes']); $timestamp = $notes['timestamp']; $userid = $notes['userid']; $author = $notes['username']; $time_posted = vbdate('n-j-y, g:i:s a',$timestamp); makelabelcode($note); makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$aut hor</a> | Posted On: $time_posted"); --------------------------------------------------- use: --------------------------------------------------- doformheader("",""); maketableheader('Administrator To Administrator Notes'); echo "<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>". makelinkcode("Leave A Note","./anotes.php","0") ."</p></font></td>\n<td><p></p></td>\n</tr>\n"; $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext); $imgcodeon=iif($forum[allowimages],$ontext,$offtext); $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext); $smilieson=iif($forum[allowsmilies],$ontext,$offtext); $notes = $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1"); $note = stripslashes($notes['notes']); $timestamp = $notes['timestamp']; $userid = $notes['userid']; $author = $notes['username']; $time_posted = vbdate('n-j-y, g:i:s a',$timestamp); makelabelcode($note); makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$aut hor</a> | Posted On: $time_posted"); echo "</table></td></tr></table></form>\n"; --------------------------------------------- so it looks much nicer ;) |
Quote:
|
Quote:
- Anthony |
Hey. Crater, I installed it very very nice idea, great hack... however I am having 1 issue with this, that is that i get the following error after posting my note
PHP Code:
Reguards -UB [underburn] |
i am also getting the same error
|
ditto here. im getting the same error
|
Works like a charm!! :)
Thanks. [high]* Kars10 klicks install![/high] |
Excellent addition.
/me does the install dance! By the way, how do we get it to display smilies or vbcode? It doesn't display them for me. |
Another addon to this already great hack. ;)
Instead of displaying and empty message box if you click "Leave a message" and hit enter before you enter anything (to erase the message until I can get a delete button for it), this will only leave the "Leave a message" line until someone enters a message. (No sense having an empty message line or an Author line if there is no message. :)) Change this: PHP Code:
PHP Code:
|
OK, this is my first time here at vBulletin.org so I wanted to make this a good first post :)
I have attached a new anotes.php file which fixes the PHP errors that some of you were having after a note was posted. Also, I have added an Delete Button Add-On of sorts that a few people were requesting. The delete button will ONLY show up when a message is posted (credit of the PHP code goes to Boofo due to the fact that it's pretty much the same code as his). In your /admin/index.php file find this: PHP Code:
PHP Code:
That's it! Once again, this modification/fix should also be partially credited to Boofo for his PHP modification :) |
Excellent addon (with the delete button). Thanks! Try this code and let me know what you think. :)
PHP Code:
|
The only problem with the facelift you showed me is that it doesn't seem to work for my AdminCP :( It's odd too, because I'm using vB 2.2.9. But oh well, lol...anywho. I'm back with another bug fix for this. It's a rather small one, but it's a bug none the less.
In /admin/index.php find: PHP Code:
PHP Code:
Also, if you guys are interested I've done a few more add-ons to this great hack. If you would like for me to post them, I would be more then happy to! Thanks! |
That actually should be:
PHP Code:
I'd be interested in any other fixes or addons you have. |
Can someone help me...
When i ever i leave a note, i always get the following message: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/webn/public_html/forum/admin/db_mysql.php on line 154 Warning: Cannot modify header information - headers already sent by (output started at /home/webn/public_html/forum/admin/adminfunctions.php:19) in /home/webn/public_html/forum/admin/anotes.php on line 34 (But the note i posted, is still shown when you return to the control panel home) Thanks in advance! |
just to make sure. is the code suppose to appear on the left side?
l8er sonic |
Could somebody, please - put it ALL together for 2.3?!
|
yeah id like to see this all put together for vb2.3 also :D
|
Alrighty, I think I'll update it for 2.3.x.
Gimme a couple of days. Gotta download the software on dial-up. :ninja: |
All times are GMT. The time now is 05:02 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:
|