Sonnie
08-18-2006, 10:42 AM
I'm wondering can we get this hack worked out for vB 3.6
I've got commbull_3.5e.zip extracted and installed on my version 3.6 at the Shack, but have several issues.
Of course installing it per the instructions was fairly painless, although it didn't install everything properly.
Here are the instructions:
*** NEW INSTALL:
Upload commbull.php and commbull_phrases.php to your forums/admincp folder.
Upload cpnav_commbull.xml to the forums/includes/xml folder.
Install the commbull product XML file in your ACP under "Plugin System".
Edit template "modify user option templates -> modifyoptions"
LOCATE:
<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 BELOW:
<tr>
<td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label>
</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>
</td>
</tr>
Run /forums/admincp/commbull.php and follow the instructions.
*** UPGRADE FROM COMMBULL FOR vB 3.0.x:
Upload commbull.php and commbull_phrases.php to your forums/admincp folder.
Upload cpnav_commbull.xml to the forums/includes/xml folder.
Install the commbull product XML file in your ACP under "Plugin System".
Run /forums/admincp/commbull.php and click [Show Installation Instructions]
or [Perform Installation] to install updated phrases.
*** UPGRADE FROM COMMBULL 3.5, 3.5a, 3.5b, or 3.5c to 3.5e:
Replace /forums/admincp/commbull.php.
Replace /forums/admincp/commbull_phrases.php.
Uninstall any commbull plugin hooks or products under "Plugin System" in your ACP.
Install the commbull product XML file in your ACP under "Plugin System".
*** UPGRADE FROM COMMBULL 3.5d to 3.5e
Replace commbull.php in your admincp folder.
I noticed it did not install the 4 phrases. I did the template modifications to modifyoptions and added two of the phrases for the User CP/Edit Options page, but it doesn't check the blocks automatically. This would obviously cause all members not to receive the newsletter.
I figured I'd try to send out a test newsletter to the Administrators and I got this error when trying to preview the mailout:
Database error in vBulletin 3.6.0:
Invalid SQL:
INSERT INTO datastore VALUES ('commbull','$includedate = 1; $numtopics1 = 5; $topicorder1 = "dateline"; $hotonly1 = 0; $reuse1 = 0; $numtopics2 = 0; $topicorder2 = "replies"; $hotonly2 = 0; $reuse2 = 0; $numtopics3 = 0; $topicorder3 = "views"; $hotonly3 = 0; $reuse3 = 0; $numtopics4 = 0; $topicorder4 = "virg"; $hotonly4 = 0; $numpolls = 0; $numevents = 0; $numbirthdays = 0; $dostats = 0; $newlines = 1; $douserinfo = 1; $mail_subject = "Testing"; $calendarid = "0"; $sc = "-"; $rsc = 75; $lic = "o"; $fixcss = "1"; $extramaterial = \'Hello \\$username...
This is a test newsletter bulleting being sent to staff only. A copy should be posted in the Private Testing forum.
This is only a test.\';$def_calendar["1"] = 0; $def_forum["1"] = 1; $def_forum["31"] = 1; $def_forum["13"] = 0; $def_forum["41"] = 0; $def_forum["45"] = 1; $def_forum["7"] = 1; $def_forum["8"] = 0; $def_forum["26"] = 0; $def_forum["42"] = 0; $def_forum["43"] = 1; $def_forum["49"] = 1; $def_forum["9"] = 1; $def_forum["11"] = 1; $def_forum["70"] = 0; $def_forum["50"] = 1; $def_forum["96"] = 1; $def_forum["103"] = 1; $def_forum["99"] = 1; $def_forum["104"] = 1; $def_forum["105"] = 1; $def_forum["106"] = 1; $def_forum["10"] = 1; $def_forum["91"] = 1; $def_forum["12"] = 1; $def_forum["107"] = 1; $def_forum["89"] = 1; $def_forum["92"] = 1; $def_forum["90"] = 1; $def_forum["93"] = 0; $def_forum["94"] = 0; $def_forum["95"] = 0; $def_forum["88"] = 0; $def_forum["39"] = 0; $def_forum["28"] = 1; $def_forum["37"] = 0; $def_forum["47"] = 0; $def_forum["24"] = 0; $def_forum["40"] = 0; $def_forum["111"] = 0; $def_forum["56"] = 1; $def_forum["78"] = 1; $def_forum["84"] = 1; $def_forum["83"] = 1; $def_forum["85"] = 1; $def_forum["86"] = 1; $def_forum["48"] = 0; $def_forum["98"] = 0; $def_forum["46"] = 0; $def_forum["19"] = 0; $def_forum["20"] = 0; $def_forum["21"] = 0; $def_forum["97"] = 0; $def_forum["76"] = 0; $def_forum["3"] = 0; $def_forum["22"] = 0; $def_forum["4"] = 1; $def_forum["5"] = 1; $def_forum["6"] = 1; $def_group["1"] = 0; $def_group["2"] = 0; $def_group["3"] = 0; $def_group["4"] = 0; $def_group["5"] = 0; $def_group["6"] = 1; $def_group["7"] = 0; $def_group["8"] = 0; $def_group["9"] = 0; $def_group["10"] = 0; $def_group["11"] = 0; $def_group["12"] = 0; $def_group["13"] = 0; $def_group["14"] = 0; $auto_nextpage = 0; $auto_timer = 1; $save_prefs = 1; $postcopy = 1; $pfid = 6; $pftype = 1; $pcu = "1"; $open = 1; ');
MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Friday, August 18th 2006 @ 01:36:30 PM
Script : http://www.hometheatershack.com/forums/admincp/commbull.php?do=preview
Referrer : http://www.hometheatershack.com/forums/admincp/commbull.php
IP Address : 65.82.122.150
Username : Sonnie
Classname : vB_Database
Hopefully... being that vB-FAQ has it working, we can figure out how to make it work for those who are interested in the newsletter.
Thanks!
I've got commbull_3.5e.zip extracted and installed on my version 3.6 at the Shack, but have several issues.
Of course installing it per the instructions was fairly painless, although it didn't install everything properly.
Here are the instructions:
*** NEW INSTALL:
Upload commbull.php and commbull_phrases.php to your forums/admincp folder.
Upload cpnav_commbull.xml to the forums/includes/xml folder.
Install the commbull product XML file in your ACP under "Plugin System".
Edit template "modify user option templates -> modifyoptions"
LOCATE:
<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 BELOW:
<tr>
<td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label>
</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>
</td>
</tr>
Run /forums/admincp/commbull.php and follow the instructions.
*** UPGRADE FROM COMMBULL FOR vB 3.0.x:
Upload commbull.php and commbull_phrases.php to your forums/admincp folder.
Upload cpnav_commbull.xml to the forums/includes/xml folder.
Install the commbull product XML file in your ACP under "Plugin System".
Run /forums/admincp/commbull.php and click [Show Installation Instructions]
or [Perform Installation] to install updated phrases.
*** UPGRADE FROM COMMBULL 3.5, 3.5a, 3.5b, or 3.5c to 3.5e:
Replace /forums/admincp/commbull.php.
Replace /forums/admincp/commbull_phrases.php.
Uninstall any commbull plugin hooks or products under "Plugin System" in your ACP.
Install the commbull product XML file in your ACP under "Plugin System".
*** UPGRADE FROM COMMBULL 3.5d to 3.5e
Replace commbull.php in your admincp folder.
I noticed it did not install the 4 phrases. I did the template modifications to modifyoptions and added two of the phrases for the User CP/Edit Options page, but it doesn't check the blocks automatically. This would obviously cause all members not to receive the newsletter.
I figured I'd try to send out a test newsletter to the Administrators and I got this error when trying to preview the mailout:
Database error in vBulletin 3.6.0:
Invalid SQL:
INSERT INTO datastore VALUES ('commbull','$includedate = 1; $numtopics1 = 5; $topicorder1 = "dateline"; $hotonly1 = 0; $reuse1 = 0; $numtopics2 = 0; $topicorder2 = "replies"; $hotonly2 = 0; $reuse2 = 0; $numtopics3 = 0; $topicorder3 = "views"; $hotonly3 = 0; $reuse3 = 0; $numtopics4 = 0; $topicorder4 = "virg"; $hotonly4 = 0; $numpolls = 0; $numevents = 0; $numbirthdays = 0; $dostats = 0; $newlines = 1; $douserinfo = 1; $mail_subject = "Testing"; $calendarid = "0"; $sc = "-"; $rsc = 75; $lic = "o"; $fixcss = "1"; $extramaterial = \'Hello \\$username...
This is a test newsletter bulleting being sent to staff only. A copy should be posted in the Private Testing forum.
This is only a test.\';$def_calendar["1"] = 0; $def_forum["1"] = 1; $def_forum["31"] = 1; $def_forum["13"] = 0; $def_forum["41"] = 0; $def_forum["45"] = 1; $def_forum["7"] = 1; $def_forum["8"] = 0; $def_forum["26"] = 0; $def_forum["42"] = 0; $def_forum["43"] = 1; $def_forum["49"] = 1; $def_forum["9"] = 1; $def_forum["11"] = 1; $def_forum["70"] = 0; $def_forum["50"] = 1; $def_forum["96"] = 1; $def_forum["103"] = 1; $def_forum["99"] = 1; $def_forum["104"] = 1; $def_forum["105"] = 1; $def_forum["106"] = 1; $def_forum["10"] = 1; $def_forum["91"] = 1; $def_forum["12"] = 1; $def_forum["107"] = 1; $def_forum["89"] = 1; $def_forum["92"] = 1; $def_forum["90"] = 1; $def_forum["93"] = 0; $def_forum["94"] = 0; $def_forum["95"] = 0; $def_forum["88"] = 0; $def_forum["39"] = 0; $def_forum["28"] = 1; $def_forum["37"] = 0; $def_forum["47"] = 0; $def_forum["24"] = 0; $def_forum["40"] = 0; $def_forum["111"] = 0; $def_forum["56"] = 1; $def_forum["78"] = 1; $def_forum["84"] = 1; $def_forum["83"] = 1; $def_forum["85"] = 1; $def_forum["86"] = 1; $def_forum["48"] = 0; $def_forum["98"] = 0; $def_forum["46"] = 0; $def_forum["19"] = 0; $def_forum["20"] = 0; $def_forum["21"] = 0; $def_forum["97"] = 0; $def_forum["76"] = 0; $def_forum["3"] = 0; $def_forum["22"] = 0; $def_forum["4"] = 1; $def_forum["5"] = 1; $def_forum["6"] = 1; $def_group["1"] = 0; $def_group["2"] = 0; $def_group["3"] = 0; $def_group["4"] = 0; $def_group["5"] = 0; $def_group["6"] = 1; $def_group["7"] = 0; $def_group["8"] = 0; $def_group["9"] = 0; $def_group["10"] = 0; $def_group["11"] = 0; $def_group["12"] = 0; $def_group["13"] = 0; $def_group["14"] = 0; $auto_nextpage = 0; $auto_timer = 1; $save_prefs = 1; $postcopy = 1; $pfid = 6; $pftype = 1; $pcu = "1"; $open = 1; ');
MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Friday, August 18th 2006 @ 01:36:30 PM
Script : http://www.hometheatershack.com/forums/admincp/commbull.php?do=preview
Referrer : http://www.hometheatershack.com/forums/admincp/commbull.php
IP Address : 65.82.122.150
Username : Sonnie
Classname : vB_Database
Hopefully... being that vB-FAQ has it working, we can figure out how to make it work for those who are interested in the newsletter.
Thanks!