Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AdminCP News as Posts or PMs by BOP5 (Get your Admin CP News PMed to you!) Details »»
AdminCP News as Posts or PMs by BOP5 (Get your Admin CP News PMed to you!)
Version: 1.0.1, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.x.x Rating:
Released: 09-02-2013 Last Update: 09-05-2013 Installs: 19
Supported Uses Plugins
Re-useable Code Additional Files  

Brought to you by BirdOPrey5 / Qapla.com

Live Demo: ACP News: Potential vBulletin Exploit (vBulletin 4.1+, vBulletin 5+)

vBulletin pushes important news items to your Admin CP News Section. Some important items that get pushed are new versions of the software, and more importantly, notice of exploits and security patches. If you don't check your Admin CP regularly it could be days, even weeks before you see important notices. This can leave your site unprotected and vulnerable to hacking.

This mod will check the news every hour and at your option PM, and/or post the news to your forums. The idea is to PM one or more Admins and/or post in your staff forum so everyone is aware of the news.

Each option is independently controlled-
  • PM one or more users
  • Post a new thread in a forum of your choice
  • Post a new post into an existing thread of your choice

Note- The first time the mod runs it will pull all old news (usually 5 to 6 items) so you will get a "flood" of PMs or posts. After that initial flood is over the old news is recorded in the database as having been delivered and you won't get multiple posts/PMs again unless vBulletin puts out more than one news item as a time. They rarely post Admin CP news, it may be weeks or months between updates.

This mod creates the Scheduled Task called "AdminCP News as Posts or PMs" that is set to run hourly. You can adjust the timing by editing the task in Scheduled Task Manager.

This mod does not use phrases- News is delivered in English only as it is only posted in English.

Another Note- The nature of vBulletin scheduled tasks requires traffic on the board to work. If you have a forum with little traffic (no one views it) then scheduled tasks will often get skipped.

Compatible and tested with VB 3.8.x and VB 4.x.x. May work with older versions of VB 3.x as well but not tested.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: zip AdminCP News as Posts or PMs by BOP5 v101.zip (8.7 KB, 51 views)

Screenshots

File Type: jpg acpnews-settings-view.jpg (101.5 KB, 0 views)
File Type: jpg acpnews-pm-view.jpg (72.1 KB, 0 views)
File Type: jpg acpnews-posts-view.jpg (120.2 KB, 0 views)
File Type: jpg acpnews-thread-view.jpg (74.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
dougdirac, Hostboard, obglobal.net, ozzy47, puertoblack2003, tbworld

Comments
  #12  
Old 09-05-2013, 04:34 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Go to Scheduled Task Manager in Admin CP and manually run the task. Do you get any posts/PMs?

If not, look at the Scheduled Task Log, let me know what it says about this mod.
Done as you say, still nothing....
And the log looks like this....



Hope that this proves useful...
Attached Images
File Type: jpg CP News.JPG (95.1 KB, 0 views)
Reply With Quote
  #13  
Old 09-05-2013, 09:18 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ba'al View Post
I also have received no pm's so i ran the scheduler and still no pm's so i checked the log and got this
That would mean the task didn't run. can you confirm the php file was uploaded to the correct location? If you want to post your forum URL I can check.

Was there any error shown when you manually ran the task?

Quote:
Originally Posted by DemOnstar View Post
Done as you say, still nothing....
And the log looks like this....



Hope that this proves useful...
That is interesting, it did insert it into the database but it didn't even attempt to make a PM or post.

Was there any delay between the time you installed the mod and the time you setup the PM and / or posting options?

Are you sure in settings you have Send PMs? set to YES, and valid userids (numbers, not names) for both the PM reciever(s) and PM sender?

At this point the news items were stored in the database so you wouldn't get the old news resent unless you delete it from the database.

If you want use a tool like phpmyadmin and TRUNCATE the table bop_adminnews in the database. That will basically reset the mod and it will re-send the news items again.
Reply With Quote
  #14  
Old 09-05-2013, 09:19 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Curious- Has anyone got PMs or Posts of the existing news items after they installed?
Reply With Quote
  #15  
Old 09-05-2013, 01:54 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post

Was there any delay between the time you installed the mod and the time you setup the PM and / or posting options?
Not sure about that, I will attempt a re-install and overwrite.

Quote:
Originally Posted by BirdOPrey5 View Post
Are you sure in settings you have Send PMs? set to YES, and valid userids (numbers, not names) for both the PM reciever(s) and PM sender?
I didn't originally have it set as yes to PM's, I had it set to Post News as New Threads. Bit of confusion here..

I will re-install, and try the TRUNCATE option..

Cheers..
Reply With Quote
  #16  
Old 09-05-2013, 02:17 PM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did as instructed, didn't do the re-install. Went for the send PM's set to yes.
PHP Myadmin and performed the TRUNCATE.
Ran the cron job manually and received 5 notifications...

The confusion I think is in the Post News as New Threads. I thought they would all land where designated.



Cheers Joe, hopefully this will be a helpful reference for others....
Attached Images
File Type: jpg Admin CP News.jpg (111.1 KB, 0 views)
Reply With Quote
  #17  
Old 09-05-2013, 03:54 PM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
That would mean the task didn't run. can you confirm the php file was uploaded to the correct location? If you want to post your forum URL I can check.

My url is in my signature.

No errors while running the task.
Reply With Quote
  #18  
Old 09-05-2013, 04:06 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DemOnstar View Post
Did as instructed, didn't do the re-install. Went for the send PM's set to yes.
PHP Myadmin and performed the TRUNCATE.
Ran the cron job manually and received 5 notifications...

The confusion I think is in the Post News as New Threads. I thought they would all land where designated.



Cheers Joe, hopefully this will be a helpful reference for others....
The problem is the UserID of New Thread Poster is 0, it needs to be a valid userid.

Each of the 3 options (PM, New Thread, New Posts) all need to have the poster id set independently, in case you wanted a different user to send the PMs then you wanted to make new threads for example.

You also should need a valid userid of the Userid of PM Sender .
Reply With Quote
  #19  
Old 09-05-2013, 04:12 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ba'al View Post
My url is in my signature.

No errors while running the task.
Sending you a PM...
Reply With Quote
  #20  
Old 09-05-2013, 06:37 PM
datoneer datoneer is offline
 
Join Date: Jul 2011
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works awesome on my forum. BOP5 is the best vbulletin coder
Reply With Quote
Благодарность от:
BirdOPrey5
  #21  
Old 09-06-2013, 12:24 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see some news came in tonight missing links, will work on it. Was kind of limited with what I had to work with to only the few news items originally in the queue. The important thing is you'd know of the exploit (though in this case it is only for VB5)
Reply With Quote
Reply


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 11:33 PM.


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.07646 seconds
  • Memory Usage 2,366KB
  • Queries Executed 26 (?)
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
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete