vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=301841

AdminCP News as Posts or PMs by BOP5 (Get your Admin CP News PMed to you!)
by BirdOPrey5
03 Sep 2013 17:58

5 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-
  • 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! ;)

BirdOPrey5 03 Sep 2013 17:59

Reserved.

ozzy47 03 Sep 2013 18:07

Pretty interesting mod Joe, thanks for sharing with the community.

dougdirac 04 Sep 2013 03:35

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.

Ba'al 04 Sep 2013 05:11

Thanx Bop, installed

DemOnstar 04 Sep 2013 06:48

Once again Joe, good job.. very good staying on top of this...
As the man says
Quote:

Originally Posted by dougdirac (Post 2443053)
Bottom line, Joe is a great asset to the community.

Seconded and installed. :up:

DemOnstar 04 Sep 2013 10:53

Quote:

Originally Posted by dougdirac (Post 2443053)
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.

This is one of the very few encouraging aspects of vB I have seen for a long time..

DemOnstar 04 Sep 2013 15:29

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...

BirdOPrey5 04 Sep 2013 15:45

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.

Ba'al 05 Sep 2013 04:00

Quote:

Originally Posted by BirdOPrey5 (Post 2443170)
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.

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
Quote:

No Matches Found

DemOnstar 05 Sep 2013 05:34

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2443170)
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....

http://www.vbulletin.org/forum/attac...1&d=1378359042

Hope that this proves useful...

BirdOPrey5 05 Sep 2013 10:18

Quote:

Originally Posted by Ba'al (Post 2443359)
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 (Post 2443362)
Done as you say, still nothing....
And the log looks like this....

http://www.vbulletin.org/forum/attac...1&d=1378359042

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.

BirdOPrey5 05 Sep 2013 10:19

Curious- Has anyone got PMs or Posts of the existing news items after they installed?

DemOnstar 05 Sep 2013 14:54

Quote:

Originally Posted by BirdOPrey5 (Post 2443396)

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 (Post 2443396)
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..

DemOnstar 05 Sep 2013 15:17

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.

http://www.vbulletin.org/forum/attac...1&d=1378394144

Cheers Joe, hopefully this will be a helpful reference for others....


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

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.