Back to vBulletin 4.x Add-ons

Commbull (Community Bulletin) 5.1a for vBulletin 4.01
Mod Version: 4.5F for 4, by djbaxter

vB Version: 4.0.4 Rating: (1 vote - 5.00 average) Installs: 59
Released: 22 Jan 2010 Last Update: 14 Jul 2010 Downloads: 326
Not Supported DB Changes Uses Plugins Template Edits Auto-Template Additional Files  

This not the CommBull product itself. This is simply instructions for adapting it to work with vBulletin 4.x.

Download CommBull from: Commbull (Community Bulletin) 5.1a for vBulletin 3.8x

grandeur_69 has released his latest version of CommBull as a free add-on, indicating that he no longer has time to continue developing it. I am posting this here for the benefit of other vBulletin 4.x who don't want to lose the newsletter feature (grandeur_69 has approved this).

At

Spoiler (click to open)


Hi, the version 5.1a work fine with vbulletin 4.0.1 ?

thanks.

[]

Close
a member asks:

Hi, the version 5.1a work fine with vbulletin 4.0.1 ?
My response is posted at

Spoiler (click to open)


I have the previous version, 4.5f, which does run successfully via a cron job, running on 4.01. It required some modification of the installation instructions but it does work. I expect you should be able to get this version running as well, although as the coder noted the cron capability doesn't work.

1. Edit product-Commbull.xml and find the following line:

PHP Code:
        <dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.8.99" /> 
Change to:

PHP Code:
        <dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="4.99" /> 

2. Upload the files and import the product.

3. Now you need to do the template edits so that members can opt-in or opt-out of your newsletter. The current instructions are as follows:

4. Template modifications
--------------------------------------

Template: "Modify User Option" -> "modifyoptions"

After:

PHP Code:
                    <tr>
                        <
td><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checked[adminemail] />$vbphrase[receive_email_from_bulletin_board_staff]</label><input type="hidden" name="set_options[adminemail]" value="1" /></td>
                    </
tr

Add:

PHP Code:
                    <tr>
                        <
td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label><input type="hidden" name="set_options[receivebulletin]" value="1" /></td>
                    </
tr>
                    <
tr>
                        <
td><br />$vbphrase[newsletterformat]<br /><label for="commbull_type"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" $checked[receivebulletin_type] />$vbphrase[type_email_from_commbull]</label>
<
input type="hidden" name="set_options[receivebulletin_type]" value="1" /></td>
                    </
tr

Now, obviously this won't work in 4.x. These need to be modified as follows:

1. Edit Template: "Modify User Option" -> "modifyoptions"

FIND:

PHP Code:
<vb:if condition="$show['friend_email_request']">
                    <
li>
                        <
label for="cb_receivefriendemailrequest"><input type="checkbox" name="options[receivefriendemailrequest]" value="1" id="cb_receivefriendemailrequest" tabindex="1" {vb:raw checked.receivefriendemailrequest} /> {vb:rawphrase receive_friendship_req_email}</label>
                        <
input type="hidden" name="set_options[receivefriendemailrequest]" value="1" />
                    </
li>
                </
vb:if> 

ADD AFTER:

PHP Code:
<vb:if condition="$show['receiveemail']">
<
li>
    <
label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" tabindex="1" {vb:raw checked.receivebulletin} />{vb:rawphrase receive_email_from_commbull}</label>
    <
input type="hidden" name="set_options[receivebulletin]" value="1" />
</
li>
</
vb:if> 
That first part (above) is the option to receive or not receive the newsletters.

Next would be the option for HTML or plain text emails, which should be:

PHP Code:
<vb:if condition="$show['receiveemail']">
<
li>
    <
label for="commbull_type"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" tabindex="1" (vb:raw checked.receivebulletin_type} />{vb:rawphrase type_email_from_commbull}</label>
    <
input type="hidden" name="set_options[receivebulletin_type]" value="1" />
</
li>
</
vb:if> 

However, I was unable to get that second option to stick, for reasons which escape me. I could check the box to specify HTML, which is far superior, but the next time I enterd my settings page, it was always unchecked again.

What I did instead was omit that second entry entirely. That means that everyone who gets the newsletter will receive the HTML version (the default option), but frankly on my forum it was extremely rare that anyone did not opt for HTML, since it has live links.

Close
and reproduced here...

I have the previous (commercial) version, 4.5f, which does run successfully via a cron job, running on 4.01. It required some modification of the installation instructions but it does work. I expect you should be able to get this version running as well, although as the coder noted the cron capability won't work.

1. Edit product-Commbull.xml and find the following line:

PHP Code:
        <dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.8.99" /> 
Change to:

PHP Code:
        <dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="4.99" /> 

2. Upload the files and import the product.

3. Now you need to do the template edits so that members can opt-in or opt-out of your newsletter. The current instructions are as follows:

4. Template modifications
--------------------------------------

Template: "Modify User Option" -> "modifyoptions"

After:

PHP Code:
                    <tr>
                        <
td><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checked[adminemail] />$vbphrase[receive_email_from_bulletin_board_staff]</label><input type="hidden" name="set_options[adminemail]" value="1" /></td>
                    </
tr

Add:

PHP Code:
                    <tr>
                        <
td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label><input type="hidden" name="set_options[receivebulletin]" value="1" /></td>
                    </
tr>
                    <
tr>
                        <
td><br />$vbphrase[newsletterformat]<br /><label for="commbull_type"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" $checked[receivebulletin_type] />$vbphrase[type_email_from_commbull]</label>
<
input type="hidden" name="set_options[receivebulletin_type]" value="1" /></td>
                    </
tr

Now, obviously this won't work in 4.x. These need to be modified as follows:

1. Edit Template: "Modify User Option" -> "modifyoptions"

FIND:

PHP Code:
<vb:if condition="$show['friend_email_request']">
                    <
li>
                        <
label for="cb_receivefriendemailrequest"><input type="checkbox" name="options[receivefriendemailrequest]" value="1" id="cb_receivefriendemailrequest" tabindex="1" {vb:raw checked.receivefriendemailrequest} /> {vb:rawphrase receive_friendship_req_email}</label>
                        <
input type="hidden" name="set_options[receivefriendemailrequest]" value="1" />
                    </
li>
                </
vb:if> 

ADD AFTER:

PHP Code:
<vb:if condition="$show['receiveemail']">
<
li>
    <
label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" tabindex="1" {vb:raw checked.receivebulletin} />{vb:rawphrase receive_email_from_commbull}</label>
    <
input type="hidden" name="set_options[receivebulletin]" value="1" />
</
li>
</
vb:if> 
That first part (above) is the option to receive or not receive the newsletters.

Next would be the option for HTML or plain text emails, which should be:

PHP Code:
<vb:if condition="$show['receiveemail']">
<
li>
    <
label for="commbull_type"><input type="checkbox" name="commbull_type" value="1" id="commbull_type" tabindex="1" {vb:raw checked.receivebulletin_type} />{vb:rawphrase type_email_from_commbull}</label>
    <
input type="hidden" name="set_options[receivebulletin_type]" value="1" />
</
li>
</
vb:if> 
Update:

This now works. I had a ( instead of a { on the previous code. Thanks to grandeur_69 for pointing this out!

Notes:
  1. The product is not mine so I can't offer any support for CommBull itself. However, I have been using the paid versions of this mod for some time and I'm happy to offer what support I can for making the changes necessary to get it running on 4.x.

  2. I have been in communication with grandeur_69. He has indicated that he has no objections to this thread and that as he gets time he will be trying to develop this add-on further as a free product.

Update July 12, 2010: Product XML file provided by grandeur_69 for vBulletin 4.x.

NOTE:
  1. If you have already done the manual edits, do NOT use the XML file. And if you import the XML file, you should not need to do the manual edits.
  2. Some people are encountering problems using the XML file. If you are one of them, uninstall the product and use the manual edits. Those seem to work just fine.


Update July 14, 2010: Error in XML file corrected.

Download

File Type: %1$s product-Commbull4.xml (29.5 KB, 347 downloads)

Screenshots

Click image for larger version
Name:	top-custom-text.jpg
Views:	3331
Size:	61.4 KB
ID:	110697   Click image for larger version
Name:	top-new-threads.jpg
Views:	2681
Size:	51.1 KB
ID:	110698   Click image for larger version
Name:	articles.jpg
Views:	1838
Size:	48.6 KB
ID:	110699  

Similar Mods

Administrative and Maintenance Tools Commbull (Community Bulletin) 5.1b vBulletin 3.8 Add-ons
Commbull (Community Bulletin) vBulletin 3.5 Add-ons
CommBull (Community Bulletin) vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024