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

Reply
 
Thread Tools
CommBull (Community Bulletin) Details »»
CommBull (Community Bulletin)
Version: 1.00, by grandeur_69 grandeur_69 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-19-2004 Last Update: 10-01-2006 Installs: 142
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

vb3.5 Commbull
vb3.6 Commbull

Note:
The 3.6 version is a commercial product, any queries on it should be submitted to: vb3.6 Support Site

THIS THREAD IS FOR SUPPORT FOR 3.0 VERSIONS ONLY. PLEASE VISIT THE APPROPRIATE FORUMS (links above) FOR THEIR SUPPORT

[valid point]
it's been brought to my attention that not everyone knows what this is ... fair enough: This hack is considered a "weekly newsletter" by the fact that it will email members (only sent by an admin) who have opted to receive it new posts, hot threads, etc ... basically a summary of what has been going on since the last time the newsletter was sent out. However there is a vast number of options, and I won't go into detail of all of them ... you can view the the images that I've attached, but u will only get a full idea by installing it.
I would say that there is 0 risk of this installation doing any damage to your current install as these are the changes that it does (manually and automatically):
- change profile.php and admincp/index.php
- add a couple columns to user table (receivebulletin and receivebulletin_type)
- add some phrases to phrase table (receive_email_from_commbull, type_email_from_commbull, newsletterformat, commbul)
- add a row to datastore table (commbull)
- add some html to nav template for admin side
So, if you are unhappy with the install. you can just ignore that it's there and it'll never cause any problems ... your next upgrade will overwrite any changes to the index and profile pages and the extra columns in the DB won't be an issue

[mods that i've added from vB2 version]
- to change languages, comment/uncomment line 22 and 23 to switch from English to German
- save prefs (option)
- skip to page X in case of mailout freeze
- auto redirect to next page (option)
- adding personalized text to top of newsletter w/out searching through the two text & html fields ... u'll c what i mean :ermm:

[INSTALL]
drop the 3 files into the admincp directory and then go to admincp/commbull.php ... follow the instructions and you are good to go.
If you find that the option isn't showing up on the control panel after the install, then it's because you aren't using the default phrases. Go into phrase manager, search for 'commbull' and update the fields appropriately.

If something goes wrong, don't worry .. it checks for already completed updates to the database to avoid redundancy ... enjoy!!

Show Your Support

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

Comments
  #22  
Old 06-21-2004, 11:02 PM
grandeur_69 grandeur_69 is offline
 
Join Date: Feb 2003
Location: Kelowna, BC, Canada
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yup ... u have a version of PHP < 4.3 ... didn't realize that this function was part of such a recent build ...

try it now (have to say try, cuz i don't have a version less than 4.3) ... just grabbed what someone wrote specifically for this reason on the php.net site
Reply With Quote
  #23  
Old 06-22-2004, 12:23 AM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grandeur_69
yup ... u have a version of PHP < 4.3 ... didn't realize that this function was part of such a recent build ...

try it now (have to say try, cuz i don't have a version less than 4.3) ... just grabbed what someone wrote specifically for this reason on the php.net site
I rrepleced the ones I had uploaded - Now Im getting this:
Parse error: parse error in /home/httpd/vhosts/bakermedia.com/httpdocs/learn/admincp/commbull.php on line 1383
Reply With Quote
  #24  
Old 06-22-2004, 12:39 AM
grandeur_69 grandeur_69 is offline
 
Join Date: Feb 2003
Location: Kelowna, BC, Canada
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my bad ... uploaded the wrong file ... not very good at multi-tasking, i guess
Reply With Quote
  #25  
Old 06-22-2004, 01:17 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, there is one unnecessary query I found in profile.php

instead of doing this
PHP Code:
    $receivebulletin = ($commbull) ? 0;
    
    
$DB_site->query("
        UPDATE " 
TABLE_PREFIX "user SET
            receivebulletin = 
$receivebulletin
        WHERE userid = 
$bbuserinfo[userid]
    "
);
    
    
$receivebulletin_type = ($commbull_type) ? 0

    
$DB_site->query(
        UPDATE " 
TABLE_PREFIX "user SET 
            receivebulletin_type = 
$receivebulletin_type 
        WHERE userid = 
$bbuserinfo[userid] 
    "
); 
do this
PHP Code:
    $receivebulletin = ($commbull) ? 0;
    
$receivebulletin_type = ($commbull_type) ? 0;     
    
    
$DB_site->query("
        UPDATE " 
TABLE_PREFIX "user SET
            receivebulletin = 
$receivebulletin,
            receivebulletin_type = 
$receivebulletin_type             
        WHERE userid = 
$bbuserinfo[userid]
    "
); 
Reply With Quote
  #26  
Old 06-22-2004, 02:23 AM
grandeur_69 grandeur_69 is offline
 
Join Date: Feb 2003
Location: Kelowna, BC, Canada
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and, i'm sure you will find others. As i've been putting it together piece-by-piece and working out bugs, i haven't done a lot of optimizing.
Reply With Quote
  #27  
Old 06-22-2004, 02:27 AM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works now for me, thanks!!
Reply With Quote
  #28  
Old 06-23-2004, 08:48 PM
Blackbeard Blackbeard is offline
 
Join Date: Mar 2003
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

User table altered... sucessfully.
User table altered... sucessfully.
Phrase table updated (profile.php 1 of 3)... sucessfully.
Phrase table updated (profile.php 2 of 3)... sucessfully.
Phrase table updated (profile.php 3 of 3)... sucessfully.
Phrase table updated (admincp/index.php) ... sucessfully.

You may now proceed to use the Community Bulletin Script

In order to allow your users to unsubscribe from the bulletin, you will need to make the following alterations to your existing code and templates:

Upload admin/index.php and profile.php to your server, then go to your Admin CP and look for the "Send Community Bulletin" option under "Users" If you find that the option isn't showing up on the control panel, then it's because you aren't using the default phrases. Go into phrase manager, search for 'commbull' and update.

done all changes, could not find send community bulletin in users section, searched in phase manager for commbull and got this

No Phrases Matched Your Query

whats gone wrong????

iam running PHP v4.3.5
Reply With Quote
  #29  
Old 06-23-2004, 09:33 PM
grandeur_69 grandeur_69 is offline
 
Join Date: Feb 2003
Location: Kelowna, BC, Canada
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

be sure to check "Phrase Variable Name Only" when searching
Reply With Quote
  #30  
Old 06-24-2004, 01:10 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried sending to 3 ppl and it timed out
Reply With Quote
  #31  
Old 06-24-2004, 11:13 AM
Blackbeard Blackbeard is offline
 
Join Date: Mar 2003
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grandeur_69
be sure to check "Phrase Variable Name Only" when searching
Cheers that work great
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 09:36 AM.


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.04888 seconds
  • Memory Usage 2,320KB
  • 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
  • (2)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