Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Admin. 2 Admin. Notes VIA AdminCP Index Details »»
Admin. 2 Admin. Notes VIA AdminCP Index
Version: 1.00, by shovel shovel is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-28-2002 Last Update: 11-29-2002 Installs: 22
DB Changes
Re-useable Code Code Changes Additional Files  
No support by the author.

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:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-16-2003, 07:38 AM
TraceyPRO TraceyPRO is offline
 
Join Date: Jan 2003
Location: Indiana
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
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'>$author</a> | Posted On: $time_posted"); 
Replace this chunk of code with:
PHP Code:
$notes $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1");
$bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
$note stripslashes($notes['notes']);
$timestamp $notes['timestamp'];
$userid $notes['userid'];
$author $notes['username'];
$time_posted vbdate('n-j-y, g:i:s a',$timestamp);

maketableheader('Administrator To Administrator Notes');
echo 
"<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>"makelinkcode("Leave A Note","./anotes.php","0") ."";

if ( 
$note != "" ) {
echo 
""makelinkcode("Delete","./anotes.php?action=delete","0") ."";
}
echo 
"</p></font></td>\n<td><p></p></td>\n</tr>\n";

if ( 
$note != "" ) {
makelabelcode($note);
makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$author</a> | Posted: $date_posted at $time_posted");

Once that is done, simply overwrite the original anotes.php file with the altered anotes.php file I attached.

That's it! Once again, this modification/fix should also be partially credited to Boofo for his PHP modification
Reply With Quote
  #33  
Old 02-16-2003, 08:29 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent addon (with the delete button). Thanks! Try this code and let me know what you think.

PHP Code:
// Administrator To Administrator Notes Hack
doformheader("","");
$notes $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1");
$bbcodeon=iif($forum[allowbbcode],$ontext,$offtext);
$imgcodeon=iif($forum[allowimages],$ontext,$offtext);
$htmlcodeon=iif($forum[allowhtml],$ontext,$offtext);
$smilieson=iif($forum[allowsmilies],$ontext,$offtext);
$note stripslashes($notes['notes']);
$timestamp $notes['timestamp'];
$userid $notes['userid'];
$author $notes['username'];
$date_posted vbdate('l, F jS, Y',$timestamp);
$time_posted vbdate('g:i a',$timestamp);

maketableheader('Administrator To Administrator Notes');
echo 
"<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>"makelinkcode("Leave A Note","./anotes.php","0") ."";

if ( 
$note != "" ) {
echo 
""makelinkcode("Delete","./anotes.php?action=delete","0") ."";
}
echo 
"</p></font></td>\n<td><p></p></td>\n</tr>\n";

if ( 
$note != "" ) {
makelabelcode($note);
makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$author</a> | Posted: $date_posted at $time_posted");
}
echo 
"</table></td></tr></table></form>\n";
// End of Administrator To Administrator Notes Hack 
Reply With Quote
  #34  
Old 02-17-2003, 05:26 PM
TraceyPRO TraceyPRO is offline
 
Join Date: Jan 2003
Location: Indiana
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$author</a> | Posted On$time_posted 
Replace that with:
PHP Code:
Author: <a href='./user.php?s=$session[sessionhash]&action=edit&userid=$userid'>$author</a> | Posted On$time_posted 
The original code would take you to a blank page when you click on the author's username because the Action 'userinfo' doesn't exist. Well at least it doesn't work on vB 2.2.9 anyway if it does exists, lol.

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!
Reply With Quote
  #35  
Old 02-18-2003, 02:00 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That actually should be:

PHP Code:
Author: <a href='$bburl/member.php?s=&action=getinfo&userid=$userid'>$author</a> | Posted On$time_posted 
You really don't want Admins editing Admins profiles.

I'd be interested in any other fixes or addons you have.
Reply With Quote
  #36  
Old 03-04-2003, 10:53 AM
Poggyuk's Avatar
Poggyuk Poggyuk is offline
 
Join Date: Sep 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #37  
Old 03-04-2003, 09:02 PM
sonic3d's Avatar
sonic3d sonic3d is offline
 
Join Date: Jan 2002
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just to make sure. is the code suppose to appear on the left side?

l8er
sonic
Reply With Quote
  #38  
Old 05-24-2003, 08:43 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could somebody, please - put it ALL together for 2.3?!
Reply With Quote
  #39  
Old 07-22-2003, 10:56 PM
kabresh kabresh is offline
 
Join Date: Dec 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah id like to see this all put together for vb2.3 also
Reply With Quote
  #40  
Old 11-17-2005, 05:29 AM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alrighty, I think I'll update it for 2.3.x.
Gimme a couple of days.
Gotta download the software on dial-up. :ninja:
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 01:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04781 seconds
  • Memory Usage 2,333KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete