![]() |
AdminCP News as Posts or PMs by BOP5 (Get your Admin CP News PMed to you!)
1 Attachment(s)
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-
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! ;) |
Reserved.
|
Pretty interesting mod Joe, thanks for sharing with the community.
|
See, Joe is about solutions instead of excuses.
I actually found out about that /install security threat from Qapla.com, so he's a life saver. Then in the days that followed I heard about more and more sites that ran vB getting hacked. No idea why the powers that be took a week to send out a security warning email when that should have been the first priority. If that's the way IB is going to run things, they should make this mod part of the vB 4.2.2 update. Bottom line, Joe is a great asset to the community. |
Thanx Bop, installed
|
Once again Joe, good job.. very good staying on top of this...
As the man says Quote:
|
Quote:
|
Hey Joe, how do I test if this works?
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. Haven't received anything.... Cheers... |
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. |
Quote:
Quote:
|
1 Attachment(s)
Quote:
And the log looks like this.... https://vborg.vbsupport.ru/attachmen...1&d=1378359042 Hope that this proves useful... |
Quote:
Was there any error shown when you manually ran the task? Quote:
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. |
Curious- Has anyone got PMs or Posts of the existing news items after they installed?
|
Quote:
Quote:
I will re-install, and try the TRUNCATE option.. Cheers.. |
1 Attachment(s)
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. https://vborg.vbsupport.ru/attachmen...1&d=1378394144 Cheers Joe, hopefully this will be a helpful reference for others.... |
Quote:
No errors while running the task. |
Quote:
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 . |
Quote:
|
It works awesome on my forum. BOP5 is the best vbulletin coder ;)
|
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)
|
Quote:
|
Cheers Joe, all clear now. Working.
One thing, I think there is a spelling error at the bottom. User ID of New Post [S]Poser[/S] Poster? Thanks. |
Updated to 1.0.1. The news from this latest 5.x exploit now works- it seems an invisible character was breaking the string at some point- the fix now clears out all but letters, numbers, and required punctuation.
Also fixed the typo pointed out by DemOnstar. :up: |
Thanks, this is very usefull :)
|
This should become a built in feature in vB as soon as possible.
I've created JIRA improvement request VBIV-15812. Let's cast some votes to make this part of vB. I hope Joe doesn't mind :o. |
Quote:
|
Impossible not to vote....
BOP5 is proactive. Doing something that the rest of the whole vB team are not! Hats off to ozzy47 also... These 2 guys could run the whole show in my estimation... |
All times are GMT. The time now is 05:51 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:
|