Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by christec christec is offline
Developer Last Online: Mar 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-18-2001 Last Update: Never Installs: 76
 
No support by the author.

Updated 30 Nov 2001
Fixed a typo and Birthday Date Bug
---------------------------------------------

Here's a new version of the Community Bulletin + HTML
With the changes and the inclusion of the news section I have
titled it News and Email Community Bulletin Generator.

Here's a list of the changes/modifications that were made

Include News Articles (Threads) in bulletin.
Remove vbCode from news articles before sending email.
User email options include HTML or Text.
Forums are sorted by displayorder.
Category forums do not contain yes/no option.
Private forums marked as no by default.
Fix lasteventdate bug.
Modify admin/index.php installation instructions for version 2.2.x and version 2.0.x.
Include Admin CP edit user option to include Receive Community Email Bulletin and Type (HTML or TEXT).
Remove user password, send link instead.
Preview of HTML and TEXT email.
Post to Forum can be HTML or TEXT
Modified a few mysql SELECT * queries to include only necessary fields.
Cosmetic changes
......

To install
Copy the commbull.php file to the admin/ directory.
WIth a web browser access the commbull.php file.

Example: http: //yoursite.com/forums/admin/commbull.php

Follow the additional installation instructions.

This hack is based on Community Bulletin Generator by Kier
and additional Community Bulletin Generator functions by Kevin

Additional: This hack has only been tested on my machines. I don't have the ability to send emails
to a lot of users so this has not been tested either.

Remember: BACKUP and TEST.
213

Show Your Support

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

Comments
  #32  
Old 11-30-2001, 06:27 AM
Sukij Sukij is offline
 
Join Date: Nov 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi..

Got problem !!! The Age behind the name is shift down.. Normally, Benjapa(26), Duengpon(34).... etc.
Please help..

UPCOMING BIRTHDAYS:
December 3: Benjapa
December 5: Duengpon (26)
December 5: Busakorn Laohawiroj (34)
Reply With Quote
  #33  
Old 11-30-2001, 05:02 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sukij
Hi..
Got problem !!! The Age behind the name is shift down.. Normally, Benjapa(26), Duengpon(34).... etc.
Please help..
Birthday Fix:
Find This:

PHP Code:
if ($user[birthday] != $lastbirthday) {
    if (
$datebits[0] != "0000") {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$birthdayspreview .=" <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
        
$age " (".($thisyear $datebits[0]).")";
    } else {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$birthdayspreview .= " <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
        
$age "";
    }

Replace With This
PHP Code:
if ($user[birthday] != $lastbirthday) {
    if (
$datebits[0] != "0000") {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$age " (".($thisyear $datebits[0]).")";
        
$birthdayspreview .=" <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
    
} else {
        
$currentdate date($calformat2mktime(0,0,0,$datebits[1],$datebits[2],0));
        
$age "";
        
$birthdayspreview .= " <tr>\n";
        
$birthdayspreview .="  <td><font size=\"2\">$currentdate:  <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
        
$birthdayspreview .=" </tr>\n";
        
// text mail option start
        
$text_birthdayspreview .= "\n$currentdate:\n";
        
// text mail option end
    
}

Reply With Quote
  #34  
Old 11-30-2001, 05:06 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

News & Emil Community Bulletin Generator has been updated to fix a typo and the Birthday Date bug.

Reply With Quote
  #35  
Old 11-30-2001, 05:46 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So just download the new .zip and upload the new commbull.php, and that's all there is? That will fix the problem Sukij mentioned, or do we still need to do what you said in Post 32?
Reply With Quote
  #36  
Old 11-30-2001, 05:49 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
So just download the new .zip and upload the new commbull.php, and that's all there is? That will fix the problem Sukij mentioned, or do we still need to do what you said in Post 32?
YES, Just download the new .zip file and then upload the new commbull.php file.
That's it.
Reply With Quote
  #37  
Old 12-01-2001, 03:24 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! One problem though - it doesn't find my Super Moderators even though I choose to send to them. Any ideas?
Reply With Quote
  #38  
Old 12-01-2001, 04:15 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to have it remember settings? That would help a LOT.

Also, I spent about 5 minutes getting the settings right, then hit preview, forgot someting, hit back, and it was reset!
Reply With Quote
  #39  
Old 12-02-2001, 04:54 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem that I need help with. Although I set:

"Only include threads that have been started or replied to since this date? Note: Only applies to sections sorted by Most Replies or Most Views (others automatically adhere to above date)"

....to 'Yes', the choices for Most Replies and Most Views does not adhere to the date I choose. Instead it chooses them from the beginning. How can I fix this?
Reply With Quote
  #40  
Old 12-02-2001, 05:11 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to set NO as the default for the forums selected in the admin panel when putting the bulletin together? I only select a few forums, so I end up having to click NO on most of the forums that I have.
Reply With Quote
  #41  
Old 12-03-2001, 03:50 PM
christec christec is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by smachol
I have a problem that I need help with. Although I set:

"Only include threads that have been started or replied to since this date? Note: Only applies to sections sorted by Most Replies or Most Views (others automatically adhere to above date)"

....to 'Yes', the choices for Most Replies and Most Views does not adhere to the date I choose. Instead it chooses them from the beginning. How can I fix this?
This option inlcludes the complete thread, not just the posts.
"Only include threads that have been started or replied to"

If a new thread is start on 1 May 2001 and the last post is 1 June 2001 and you select the date to be 25 May 2001, it will include this thread because of the last post being after 25 May.
Does that make sense?
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 07:39 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.09979 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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