[SOLVED] Not compatible with Attachment mod?

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[SOLVED] Not compatible with Attachment mod?

Postby The Grinch on Sun 31. Aug, 2003 18:56

I installed the Mass PM mod after I installed Attachment Mod 2.3.8. Now when I send out a Mass PM, the reciever gets the following error when the go to check their PM's:


Could not get attachment informations for specific posts

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'LIMIT 1' at line 3

SELECT attach_id FROM phpbb2_attachments WHERE privmsgs_id = LIMIT 1

Line : 489
File : /var/www/public_html/forum/attach_mod/includes/functions_attach.php


Has anyone had success running the two together? What would I need to change to make it work?

I also noticed a spelling error under Profile:

Notify on mass PM:
Send an email for PM sendt by admin/mod to the usergroups you belong to


...probably should read

Notify on mass PM:
Send an email for PMs sent by admin/mod to the usergroups you belong to
The Grinch
Poster
Poster
 
Posts: 7
Joined: Sun 31. Aug, 2003 18:30

Postby Niels on Sun 14. Sep, 2003 23:53

yes, I have also seen this my self - to correct this:

in attach_mod/includes/function_attach.php
[FIND]
Code: Select all
   $sql = 'SELECT attach_id
   FROM ' . ATTACHMENTS_TABLE . '
   WHERE ' . $sql_id . ' = ' . $post_id . ' LIMIT 1';


[REPLACE WITH]

Code: Select all
   $sql = 'SELECT attach_id
   FROM ' . ATTACHMENTS_TABLE . '
   WHERE ' . $sql_id . ' = "' . $post_id . '" LIMIT 1';


thnaks for reporting the spell error, I will correct this
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby The Grinch on Mon 15. Sep, 2003 00:39

Thank you. I will give it another try shortly. 8)
The Grinch
Poster
Poster
 
Posts: 7
Joined: Sun 31. Aug, 2003 18:30

Postby The Grinch on Mon 15. Sep, 2003 07:58

That did the trick! Thanks. :D

I ended up running into that empty PM box issue. I was glad to see the fix was already posted. Thank you for this mod. 8)
The Grinch
Poster
Poster
 
Posts: 7
Joined: Sun 31. Aug, 2003 18:30

Postby mbressman on Fri 10. Oct, 2003 14:00

The Grinch wrote:I ended up running into that empty PM box issue. I was glad to see the fix was already posted. Thank you for this mod. 8)


What's the empty PM box issue? And where can I find the fix in case I run into this?

Thanks!
User avatar
mbressman
Poster
Poster
 
Posts: 7
Joined: Sun 07. Sep, 2003 07:23
Location: Upstate NY

Postby The Grinch on Fri 10. Oct, 2003 15:23

I believe it was a bug fix for this mod. If you installed the latest version, you probably won't run into it.
The Grinch
Poster
Poster
 
Posts: 7
Joined: Sun 31. Aug, 2003 18:30


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron