Version: , by christec
Developer Last Online: Mar 2004
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.
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.
I am pretty sure there is a bug in this hack that prevents you from adding new members!
1) Whenever I try a to manually add a new user with admin cp, I get a MYSQL error that says
"Column count doesn't match value count at row 1"
It dumps the terms, which I compared and they don't add up.
I looked at step 2
PHP Code:
2 of 4
Then Find This:
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,birthday) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','birthday')");
Replace With:
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,receivebulletin,receivebulletin_type,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,birthday) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$receivebulletin', (THERE SHOULD BE A '$receivebulletin_type', here!!!!!) '$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','birthday')");
And it looks like '$receivebulletin_type', is missing from the REPLACE WITH section. I added it back in and everything seems to be fine.
[QUOTE=memobug]I am pretty sure there is a bug in this hack that prevents you from adding new members!
1) Whenever I try a to manually add a new user with admin cp, I get a MYSQL error that says
"Column count doesn't match value count at row 1"
It dumps the terms, which I compared and they don't add up.
I looked at step 2
PHP Code:
2 of 4
Then Find This:
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,birthday) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','birthday')");
Replace With:
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,receivebulletin,receivebulletin_type,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,birthday) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$receivebulletin', (THERE SHOULD BE A '$receivebulletin_type', here!!!!!) '$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','birthday')");
And it looks like '$receivebulletin_type', is missing from the REPLACE WITH section. I added it back in and everything seems to be fine.
I would appreciate it if you would take another look Gary. I just downloaded the hack again from Post #1 in this thread for comparison with what I installed months ago and that parameter($receivebulletin_type) is definitely missing from the VALUES portion of the replacement string.
Whether you do or don't have it - can you verify that you can add a forum member manually - from admin cp USER->ADD - without getting a PHP error on submit?
[QUOTE=memobug]I would appreciate it if you would take another look Gary. I just downloaded the hack again from Post #1 in this thread for comparison with what I installed months ago and that parameter($receivebulletin_type) is definitely missing from the VALUES portion of the replacement string.
Whether you do or don't have it - can you verify that you can add a forum member manually - from admin cp USER->ADD - without getting a PHP error on submit?
.. threa mails?
i get no errors when i start a bulletin and write a username in the file dof the Comm Generator ..did you mean that?
or where else i can write a username in a field?
Wich version do you have? Maybe PHP Version problem.. i have 4.06 thats very old.. and i have to change very often manually some things.. you see the string and error in his exact place..so you can locate the string who do this error..so you can look for changing it to make it right