PDA

View Full Version : [RELEASE vB2.0] Community Bulletin Mailer



Kier
Mon 7th May '01, 8:26am
First up, huge apologies to everyone who has been waiting for this hack... I actually got it to the state it's in now about a month ago, but never really polished it off after I joined the vB Dev team... and then I completely forgot about it.

So sorry about that.



Installation is a breeze. Simply unzip the attached file and copy commbull.php to your admin folder. When you run the script for the first time, it will detect that you have not altered the user table to include the receivebulletin field, and add that field for you. It will also display the necessary information about what alterations you need to make to the modifyoptions template, and the member.php file.

If you ever want to view the installation instructions again, there is a link at the bottom of the main page.

Once installation is complete, the rest is really very easy to use.

You may find that this hack is a little rough around the edges, but I'm afraid I just don't have the time to dedicate to polishing it right now, so if anyone wants to have a fiddle with the code, be by guest.

Kier
Mon 7th May '01, 8:52am
Might help if I actually ~released~ the hack too eh?

floleb7
Mon 7th May '01, 9:13am
when i click to go i have this

Fatal error: Call to unsupported or undefined function maketableheader() in /home/latriade.net/www/forum/admin/commbull.php3 on line 75

Kier
Mon 7th May '01, 9:27am
Fatal error: Call to unsupported or undefined function maketableheader()

You will need to upgrade to at least Release Candidate 2 to use this script.

TommyBALL
Mon 7th May '01, 9:30am
This will of couse be included in the next release of vb? ;)

:D
- TommyBALL

chrispadfield
Mon 7th May '01, 9:57am
looks very cool. A few suggestions if anyone has a chance to work on it:

i) ability to send multiple sets of threads. I would quite like to be able to send all of:

- top 10 threads by replies
- most recent 10 unanswered threads
- top 10 threads by views

etc.

I imagine this just needs a repliaction of the code that generates the threads..

ii) a way to run this script by cron.

Streicher
Mon 7th May '01, 1:15pm
What a awasome hack!

Is it possible to send a HTML-Mail as Bulletin?

Streicher
Mon 7th May '01, 1:24pm
A Bug:

I have set "Get threads according to" to "Most recently posted" and get this. Look at the dates :D ;)

Title: "Salzsäure" (posted 19-01-2038 by MichiG)
o (3 replies, 3 views, last post: 22:10, 22-03-2000 by CO-Kowtun)
o http://www.chemieonline.de/forum/showthread.php?s=&threadid=1

My private Forums are also included.

Arkham
Mon 7th May '01, 1:51pm
Please excuse my ignorance, but as a soon-to-be vBulletin owner I haven't seen this one in use and really not sure what it does. Could I buy a clue?

From what I could tell, it looks like a hack for people to receive a certain (subscribed?) thread pushed via email instead of having to log on and pull it themselves.


Thanks.

JonnyQuest
Mon 7th May '01, 1:52pm
Great idea!
My thoughts:
1) Be able to choose to send HTML mail using the standard header and footer
2) Instead of hacking the user table, it should just use the field for recieve email from admins.

Joe
Mon 7th May '01, 3:04pm
I would like to make another Sug... I want to include a header and footer (advertisements / gen info text) on this email, can we add two custom fields for this?

Arkham, see this thread: http://www.vbulletin.com/forum/showthread.php?s=&threadid=12366

Kier
Mon 7th May '01, 3:18pm
In the message preview section you can add whatever text you like to the existing message body.

Joe
Mon 7th May '01, 3:19pm
Nice, i guess i should upgrade to RC2 and give this a try :)

The_Sisko
Mon 7th May '01, 4:59pm
Some mroe bugs:
when selecting only Administrator Group (for testing) the script said there are no user ins the group (but there are). The same with a test group with only one user. Then I tried my self created mod groupid and it only mailt to the first user in this group
smae time and date probs like Streicher had!

leadZERO
Mon 7th May '01, 5:16pm
Just a question, can you exclude forums from having threads/posts returned? Such as... I have a staff forum and don't want the "Hot Topics" from it emailed out to all my users.

Pingu
Mon 7th May '01, 5:29pm
I have just used the preview thingy, but everything looks good:

* dates are correct :)
* BUT private forums are included in the Bulletin :(

The_Sisko
Mon 7th May '01, 5:57pm
If just deleted:

AND adminemail=1 so me "no email" Problem is fixed now!

Kier
Mon 7th May '01, 6:30pm
Yes, but now people who have explicitly said that they DO NOT want to receive email from the admins will get the mailing... not a good idea methinks.

Kier
Mon 7th May '01, 6:32pm
Originally posted by Pingu
I have just used the preview thingy, but everything looks good:

* dates are correct :)
* BUT private forums are included in the Bulletin :(

Just make sure that your private forums are not checked on the first page.

The_Sisko
Mon 7th May '01, 6:37pm
Originally posted by Kier
Yes, but now people who have explicitly said that they DO NOT want to receive email from the admins will get the mailing... not a good idea methinks.

I've delete this part in the user option, because methinks thats I'm allowed to mail my user if i like to :D

But another question, my emails get messed up like this:

Star - Trek - Forum Community Bulletin --------------------------------------------------------------------------- Today's Date: 07-05-2001 Activity since 01-01-1970 --------------------------------------------------------------------------- View all new content here: http://www.studenten-city.de/stf/ --------------------------------------------------------------------------- LATEST THREADS --------------------------------------------------------------------------- Title: "Bilderrätsel" (posted 04-08-2000 by The_Sisko) o (938 replies, 8404 views, last post: 17:13, 01-01-2001 by The_Sisko) o http://www.studenten-city.de/stf/showthread.php4?s=&threadid=668 Title: "Quiz (quer durch die Serien)" (posted 19-01-2038 by Kira) o (931 replies, 6439 views, last post: 01:03, 06-05-2001 by U'Tor) o http://www.studenten-city.de/stf/showthread.php4?s=&threadid=494 Title: "Bilderrätsel 2" (posted 01-01-2001 by The_Sisko) o (772 replies

Any help?

The_Sisko
Mon 7th May '01, 6:41pm
Update:
I used another Emailclient and now it works, looks like Outlook 2000 is the problem!

NickyNet
Mon 7th May '01, 7:17pm
@Kier,

THANK YOU ...

great hack....

Pingu
Mon 7th May '01, 7:55pm
Originally posted by Kier


Just make sure that your private forums are not checked on the first page.

Umm, umm, umm... :o :D
It's taking up most of the page, and I completely overlooked it!

I definitely need some time off...

tubedogg
Tue 8th May '01, 5:35am
Originally posted by The_Sisko
smae time and date probs like Streicher had!


Did you (or Streicher for that matter) import posts from a UBB originally? This would explain that.

The_Sisko
Tue 8th May '01, 7:21am
Yes we both do so!

tubedogg
Tue 8th May '01, 7:30am
I wrote a script for JJR512 to fix his dates when coming from a UBB import. I'll try to find it and post it. :)

tubedogg
Tue 8th May '01, 8:19am
Here's the script I wrote. Please, please, please backup your database first. I took a look at each of your boards and neither of you have that many threads (relatively) so this should work out just fine.

Rename it to fixubbdate.php, upload to your admin directory and go to it in a browser.

Streicher
Tue 8th May '01, 2:38pm
Originally posted by tubedogg
Here's the script I wrote. Please, please, please backup your database first.

Thanks, tubedogg. I will test it.

tubedogg
Tue 8th May '01, 8:38pm
With Kier's permission, I have rereleased this hack in this (http://www.vbulletin.com/forum/showthread.php?threadid=16290) thread. It has the first suggestion Chris P. made and a couple other things that I put into it, plus birthdays now work. :)

TimberLand
Wed 9th May '01, 10:14am
How do members subscribe to the mailing list. If I read this right. It seem like this hack will send a news letter with the best post of the week or whatever to members that subscribe?????

If not, what exactly does this hack do?

RobAC
Wed 9th May '01, 11:14am
What exactly does this hack do??

tubedogg
Wed 9th May '01, 11:34am
It allows you to send a fully-customizable community bulletin, generated by vBulletin. It can include latest threads, threads with no replies, threads with most replies or views, polls, calendar events, birthdays, polls, and the user's info (username, password, etc.), and a few other things, as well as anything else you wish to add. The system generates a preview based on your settings and then you can add anything into the text box before mailing. You can limit to which usergroups it gets sent, and from which forums information is pulled, and users can opt-out of receiving it.

This is a "Kier" hack ;) but I have updated it slightly with his permission, and rereleased it in this (http://www.vbulletin.com/forum/showthread.php?threadid=16290) thread. You can also look at this (http://www.vbulletin.com/forum/showthread.php?threadid=12366) for more info.

RobAC
Wed 9th May '01, 11:48am
I just checked out the other thread......whoa! I can't wait to install this hack. Very cool!

TimberLand
Wed 9th May '01, 6:57pm
I installed this no problem. What is the main way to access the hack when needed. Is it the link that is supplied with it. Or is a new link in the control panel?

Thanks

Pingu
Wed 9th May '01, 7:02pm
You can direct your browser to http://www.yoursite.com/path/to/commbull.php

Or you can check TubeDogg's add on. His posting contains a "hack" for a link in the Admin Panel...

The_Sisko
Wed 9th May '01, 7:09pm
Originally posted by tubedogg
Here's the script I wrote. Please, please, please backup your database first. I took a look at each of your boards and neither of you have that many threads (relatively) so this should work out just fine.

Rename it to fixubbdate.php, upload to your admin directory and go to it in a browser.

I looked at the code and didn't realy get what it does....?
Can you please explain in a few words what it does to the post/threads? Thanks

TimberLand
Wed 9th May '01, 7:50pm
When i tried a test mail I get this error message. The link to the technical staff is my email

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

tubedogg
Wed 9th May '01, 9:25pm
Originally posted by The_Sisko
I looked at the code and didn't realy get what it does....?
Can you please explain in a few words what it does to the post/threads?

Sorry, should have explained. It takes the date&time from the first post in each thread and makes that the date&time of the posting thread. As it is now, all your threads imported from UBB have a posting date of 37 years in the future. This fixes that.

The_Sisko
Thu 10th May '01, 10:49am
Thanks, I will try it!

tubedogg
Thu 10th May '01, 11:01am
Originally posted by TimberLand
When i tried a test mail I get this error message. The link to the technical staff is my email

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

What is the error you are receiving in your email? (Either that or view the source of the page and copy and paste the error message from there.)

Mark Hewitt
Fri 11th May '01, 11:10am
The patch script doesn't work, it just gives a parse error line 15.

tubedogg
Fri 11th May '01, 9:04pm
I apologize - I missed a semicolon. :eek:

Here is a working script.

Kier
Sat 12th May '01, 2:04am
h e r e (http://vbulletin.com/forum/showthread.php?s=&threadid=16290)