vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User-to-User Log (https://vborg.vbsupport.ru/showthread.php?t=49996)

filburt1 03-21-2003 12:12 PM

Sorry but you'll have to write it yourself (or have somebody else write it) because not everybody's in the same situation as you.

lalo landa 03-21-2003 12:17 PM

Ready..

https://vborg.vbsupport.ru/showthrea...569#post257569

ThnXs anyway

Bison 04-08-2003 11:42 PM

I Got a little problem with this hack:

Invalid SQL: INSERT INTO usertouserlog (entrytype, fromuserid, touserid, dateline) VALUES ("email", 0, ,
UNIX_TIMESTAMP())
mysql error: You have an error in your SQL syntax near ' UNIX_TIMESTAMP())' at line 1

In the member.php file ... the $touserid isn't returning a value.

filburt1 04-08-2003 11:44 PM

Make sure you're running a late version of vB and at least PHP 4.2.0.

Bison 04-08-2003 11:47 PM

I am ... 2.2.9 and my PHP is 4.3....

filburt1 04-08-2003 11:50 PM

Make sure you followed the instructions again; I don't know what else to tell you, I'm running 2.3.0 on PHP 4.3.0 and it works fine. It could be a hack interacting badly with this one.

Bison 04-09-2003 12:01 AM

No dude ... that line you refferd in your hack code for $vbmail is the problem...

In 2.2.9, the only code that resembles this is:

eval("\$message = \"".gettemplate("email_lostpw",1,0)."\";");
eval("\$subject = \"".gettemplate("emailsubject_lostpw",1,0)."\"; ");

HERE: mail ($user[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");[/b]

// User to User Log Hack
$DB_site->query("INSERT INTO usertouserlog (entrytype, fromuserid, touserid, dateline) VALUES (\"email\", ". $bbuserinfo['userid'] .", $userid, UNIX_TIMESTAMP())");
// User to User Log Hack (End)

filburt1 04-09-2003 12:02 AM

Well like I said:

Quote:

03-11-03 at 10:37 PM filburt1 said this in Post #1
The instructions refer to specific functions only present in 2.3.0 (RC3) and later. Earlier versions will still function with this hack but require some creativity on one of the steps.

Bison 04-09-2003 12:09 AM

[Rolodex hurrys to uninstall this hack!]

Will make a "user friendly" one myself...

Bison 04-29-2003 06:29 PM

For users who are still using v2.29, and want to install this hack, I modified a few lines that works for your version of vB.

Changes were made in the member.php, where this line wasn't found in 2.29:

Code:

vbmail($destuserinfo['email'], $subject, $sendmessage, $bbuserinfo['email'], '', $bbuserinfo['username']);
Instead of inserting this:

Code:

$DB_site->query("INSERT INTO usertouserlog (entrytype, fromuserid, touserid, dateline)
          VALUES (\"email\", " . $bbuserinfo['userid'] . ", $userid, UNIX_TIMESTAMP())");

Insert this:

Code:

$DB_site->query("INSERT INTO usertouserlog (entrytype, fromuserid, touserid, dateline)
VALUES (\"email\", ". $bbuserinfo['userid'] .", ".$user['userid'].", UNIX_TIMESTAMP())");

After This:

Code:

mail ($user[email],$subject,$message,"From: \"$bbtitle Mailer\" <$webmasteremail>");


All times are GMT. The time now is 05:45 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.01032 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)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