vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Pm All Members *Via Email Form (https://vborg.vbsupport.ru/showthread.php?t=64629)

insanctus 05-02-2004 03:06 AM

Quote:

Originally Posted by allhandl
fantastic work. Went flawlessly

Good to hear :) , I did install to 2 sites and both going as planned.

Boofo 05-02-2004 03:07 AM

That's easy to fix. You just need to add an addslashes to the username variable when inserting it into the db.

Vivi Ornitier 05-02-2004 03:09 AM

hey insanctus, you should create a user with an apostrophe in its name and then try mass pming. I'm pretty dead set sure it's the apostrophes doin the error.

insanctus 05-02-2004 03:23 AM

Find
Code:

$DB_site->query("INSERT INTO pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie)
                        VALUES ($bbuserinfo[userid], '$bbuserinfo[username]', '$_POST[subject]', '" . addslashes($sendmessage) . "',  '" . serialize(array($user[userid] => $user[username])) . "', 0, " . TIMENOW . ", 0, 0)");

Replace with
Code:

                                                $DB_site->query("INSERT INTO pmtext
                                                            (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie
                                                            )
                                                            VALUES
                                                            ($bbuserinfo[userid], '" . addslashes($bbuserinfo[username]) . "', '$_POST[subject]', '" . addslashes($sendmessage) . "',  '" . serialize(array($user[userid] => addslashes($user['username']))) . "', 0, " . TIMENOW . ", 0, 0)");

I will update the text now

Vivi Ornitier 05-02-2004 03:32 AM

parse error on line 201 and line 201 is just a ).

insanctus 05-02-2004 03:33 AM

Sounds like you missed some of the code copy. Can you post your code?

Vivi Ornitier 05-02-2004 03:37 AM

Quote:

Originally Posted by insanctus
Sounds like you missed some of the code copy. Can you post your code?

here is email.php

insanctus 05-02-2004 03:41 AM

Quote:

Originally Posted by Vivi Ornitier
here is email.php

Code:

                                                $DB_site->query("INSERT INTO pmtext
                                                            (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie
                                                            )
                                                            VALUES
                                                            ($bbuserinfo[userid], '" . addslashes($bbuserinfo[username]) . "', '$_POST[subject]', '" . addslashes($sendmessage) . "',  '" . serialize(array($user[userid] => addslashes($user['username']))) . "', 0, " . TIMENOW . ", 0, 0)"

You forgot the ); at the end , it should be

Code:

                                                $DB_site->query("INSERT INTO pmtext
                                                            (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie
                                                            )
                                                            VALUES
                                                            ($bbuserinfo[userid], '" . addslashes($bbuserinfo[username]) . "', '$_POST[subject]', '" . addslashes($sendmessage) . "',  '" . serialize(array($user[userid] => addslashes($user['username']))) . "', 0, " . TIMENOW . ", 0, 0)");


Boofo 05-02-2004 03:42 AM

Quote:

Originally Posted by Vivi Ornitier
here is email.php

Vivi Ornitier, you need to remove the link for that file. vBulletin files are not allowed to be posted here. Please just post the code you need looked at. ;)

Vivi Ornitier 05-02-2004 03:45 AM

workin perfectly ;)


All times are GMT. The time now is 09:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01318 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete