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)
-   -   New User Welcome PM [v2] (https://vborg.vbsupport.ru/showthread.php?t=63269)

rob_daemon 02-23-2005 07:20 AM

Quote:

Originally Posted by greenhybrid
I can't seem to get mine to work. Perhaps it is because the code in my file is different than the two possibilities you provided. Mine is:

PHP Code:

 if ($vboptions['newuseremail'] != '')
{
if (
$havefields)
{
$DB_site->data_seek(0$profilefields);
while (
$profilefield $DB_site->fetch_array($profilefields))
{
$cfield '';
$varname "field$profilefield[profilefieldid]";

if (
$profilefield['type'] == 'checkbox' OR $profilefield['type'] == 'select_multiple')
{
$data unserialize($profilefield['data']);

foreach (
$data AS $key => $value)
{
$pow pow(2$key);
if (
pow(2$key) & $$varname)
{
$cfield .= (!empty($cfield) ? ', ' '') . $data["$key"];
}
}
}
else
{
$cfield = $$varname;
}
$customfields .= "$profilefield[title] : $cfield\n";
}
}

$username $_POST['username'];
$email $_POST['email'];
eval(
fetch_email_phrases('newuser'0));

$newemails explode(' '$vboptions['newuseremail']);
foreach (
$newemails AS $toemail)
{
if (
trim($toemail))
{
vbmail($toemail$subject$message);
}
}


I added your code after this, but it doesn't work!

What version of vBulletin are you running?

rrr 02-23-2005 11:45 PM

This might be a bit much to ask, but would it be possible to add an if/then to the PM depending on which usergroup the person chooses at signup.

I've added this hack to my forum:
https://vborg.vbsupport.ru/showthread.php?t=75130

Which allows the user to choose between "buyer" and "seller" when they register.

Is there a way I could a different PM for buyers and a different PM for sellers (so they each can have a specific welcome)?

hollyboy 03-01-2005 03:53 PM

we should have a version working with vb 3.07

Delphiprogrammi 03-01-2005 04:34 PM

Quote:

Originally Posted by hollyboy
we should have a version working with vb 3.07

the one downloadble right now works fine with 3.0.7 i'm using it

greenhybrid 03-01-2005 07:39 PM

Quote:

Originally Posted by rob_daemon
What version of vBulletin are you running?

3.0.6 with a patch for a security hole. To be hoenst I'm not sure how the whole upgrade thing works. But, the board says 3.0.6

Delphiprogrammi 03-01-2005 08:10 PM

Quote:

Originally Posted by greenhybrid
3.0.6 with a patch for a security hole. To be hoenst I'm not sure how the whole upgrade thing works. But, the board says 3.0.6

simple,

1) download the new vbulletin package from the membersarea
2) unzip it
3) upload all files except install.php (keep the same directory structore)
4)point your browser to http://www.yoursite.com/forum/install/upgrade.php

vbulletin will automatically redirect you to the upgrade script you need enter your customer number (username on vbulletin.com/members/) and follow the onscreen steps

all hacks neds to be reinstalled but only the sourcefile edits the database modifications are already there.

greenhybrid 03-01-2005 08:12 PM

Yeah the part about reinstalling the mods is the part I don't like ;) I don't think I'll be upgrading at every single minor version. They come out so often!

computer1 03-03-2005 07:25 AM

Dus this work to vb 3.0.7 board ??

Delphiprogrammi 03-03-2005 09:42 AM

Quote:

Originally Posted by computer1
Dus this work to vb 3.0.7 board ??

yes it does

computer1 03-03-2005 10:56 AM

I have install this nowe and I have create new account but
I cant se eny pm when I have login whit that account what hace I do wrong ??

try here
http://forum.tanakawebb.com

Delphiprogrammi 03-03-2005 11:17 AM

Quote:

Originally Posted by computer1
I have install this nowe and I have create new account but
I cant se eny pm when I have login whit that account what hace I do wrong ??

try here
http://forum.tanakawebb.com


your hack works fine i just regged an account named "pmtester" and i received a pm from a moderator named "peter" people can disable pm's ...

computer1 03-03-2005 12:05 PM

Howe can I changes so that messages com from administratorn ??

and howe can I change this disable pm's

Delphiprogrammi 03-03-2005 12:56 PM

Quote:

Originally Posted by computer1
Howe can I changes so that messages com from administratorn ??

and howe can I change this disable pm's

in the admincp you can edit this under "users" remember users can turn it off themself

hollyboy 03-03-2005 03:36 PM

Quote:

Originally Posted by computer1
Dus this work to vb 3.0.7 board ??


following instruction of the 1st post?

rob_daemon 03-04-2005 12:08 AM

The instructions file attached to the first post does indeed work.

Challenge 03-14-2005 02:14 PM

Hello.
I use 3.0.7, and when the hack is installed, every time i get a new PM, i get a the PM-popup. (even though it is unchecked in the porfile page) How can i do so it dosn't show up always, only when "New PM popup" is checked?

Regards,

Challenge

rob_daemon 03-14-2005 11:39 PM

This only affects registration PM's. I'm not sure why this would be happening.

angelicGrace 05-13-2005 02:58 PM

Can I make a simple request.

I would realy love to install this hack, but the formatting of the text instruction file is so jumbled I can't for the life of me make heads or tails of it. Anyone care to clean the formatting of it? I would be very thankful.

rob_daemon 05-13-2005 08:15 PM

Quote:

Originally Posted by angelicGrace
Can I make a simple request.

I would realy love to install this hack, but the formatting of the text instruction file is so jumbled I can't for the life of me make heads or tails of it. Anyone care to clean the formatting of it? I would be very thankful.

See the first post:

Quote:

If the file appears corrupt, please see this post.

SRuvbnhad 05-16-2005 07:33 PM

For some reason NotePad will not display the file correctly. Right click on it and open with WordPad. Works fine.

Also getting an error when trying to run the queries:
Code:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALU' at line 1


dsboyce8624 05-16-2005 08:56 PM

Quote:

Originally Posted by SRuvbnhad
For some reason NotePad will not display the file correctly. Right click on it and open with WordPad. Works fine.

Also getting an error when trying to run the queries:
Code:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
INSERT INTO phrase (phraseid, languageid, varname, `text`, phrasetypeid) VALU' at line 1


Try pasting one query at a time, usually the CR/LF at the end will mess them up if you do 'em all at once.

gonecountry 06-01-2005 01:05 PM

I just installed and it worked great, but I have one small question and I may have missed the answer in this thread, where do I change the user id of who is sending the pm. ie defaults to user id #1 want to be user id # 5.

rob_daemon 06-01-2005 11:29 PM

Quote:

Originally Posted by gonecountry
I just installed and it worked great, but I have one small question and I may have missed the answer in this thread, where do I change the user id of who is sending the pm. ie defaults to user id #1 want to be user id # 5.

Go to:

Admin CP --> Options --> vBulletin Options --> User Registration Options

And you'll find the setting for this there.

gonecountry 06-01-2005 11:44 PM

Thank you

cmiller1014 06-03-2005 06:39 AM

Will it work on 3.0.7?

Mijae 06-03-2005 01:52 PM

Quote:

Originally Posted by cmiller1014
Will it work on 3.0.7?

It does.

mcyates 06-05-2005 07:22 AM

I've got a problem, the new pms are getting sent out 8 times instead of just 1. Is there anything i can do about this?

rob_daemon 06-05-2005 02:11 PM

Quote:

Originally Posted by mcyates
I've got a problem, the new pms are getting sent out 8 times instead of just 1. Is there anything i can do about this?

I have no idea why this would be happening. Does the happen every time? Try uploading the original register.php and then rehacking it.

Megareus Rex 06-05-2005 07:09 PM

Whenever I try to open the .txt instructions, it erases all of the line breaks, so its all one big jumble of unintellgible text. I managed to seperate the queries out of it, but I can't do the php like that.

Is there something wrong with the instruction file?

EDIT: Nevermind, my comp was just being stupid.

ManagerJosh 06-25-2005 08:31 PM

Sigh

Rob, here got that error for you

Quote:

Invalid SQL: INSERT INTO pmtext ( fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie ) VALUES ( 1, 'ManagerJosh', 'Welcome to WorldSims Forums!', 'Hello it\'s_like_that, and Welcome to WorldSims Forums!We appreciate you taking the time to register on our site. We hope you will enjoy your stay here and become an active part of this outgrowing community.If you have any questions please feel free to contact any person of our http://forums.worldsims.org/showgroups.php]team[/URL].We hope to see you around.Have Fun!The WorldSims.org Team', 'a:1:{i:15876;s:14:"it's_like_that";}', 0, 1119734548, 0, 0 )mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's_like_that";}', 0, 1119734548, 0, 0 )' at lmysql error number: 1064

rob_daemon 06-26-2005 02:02 AM

Quote:

Originally Posted by ManagerJosh
Sigh

Rob, here got that error for you

Very odd; what are your magic quote settings for GPC? Hopefully this will be fixed in the next version which will have some other major improvements. I've been away for two weeks and I'm busy next week but the new version (which uses hooks) should be ready in about a week.

mustang_lex 07-05-2005 02:44 AM

This is a great hack. Couple things I like to change

1) Can I have the new member receive the PM after he/she has activated their account via email?

2) Get rid of the pop up message saying theres a new message. I have it disbaled in AdminCP but still pops up :ermm:

Thank you

rob_daemon 07-05-2005 02:48 AM

Quote:

Originally Posted by mustang_lex
This is a great hack. Couple things I like to change

1) Can I have the new member receive the PM after he/she has activated their account via email?

2) Get rid of the pop up message saying theres a new message. I have it disbaled in AdminCP but still pops up :ermm:

Thank you

Both of those will be available in the new version of the hack in vB 3.5. Development of it is currently nearing completion.

mustang_lex 07-05-2005 10:39 AM

Will the new version be 3.0.7 friendly?

cmiller1014 07-05-2005 05:51 PM

This is already built into 3.5

rob_daemon 07-05-2005 11:44 PM

No, the new version will not be 3.0.7 friendly; it's too much work because the new version uses data-managers and plugins, not code hacks.

And cmiller, it is? Where?

mustang_lex 07-06-2005 12:04 PM

Ok is there a way just to stop the popups?

cmiller1014 07-06-2005 03:19 PM

Quote:

Originally Posted by rob_daemon

And cmiller, it is? Where?


You know what... I upgraded so maybe this hack just came over with the upgrade. It's a database thing right, no code mods? I can't remember what I did to install it, but when I upgraded I didn't make any of my code mods again and this is in there.

Andreas 07-06-2005 03:23 PM

The vBulletin Options will stay, as they are set to volatile=0, eg. vBulletin Update-Scripts will not delete them.
But they have no effect as the Code isn't there :)

paul41598 07-07-2005 06:18 PM

Quote:

Originally Posted by mustang_lex
Ok is there a way just to stop the popups?



In register.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET pmtotal = pmtotal + 1, pmunread = pmunread + 1, pmpopup = 2 WHERE userid = $userid");

replace with:
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET pmtotal = pmtotal + 1, pmunread = pmunread + 1, pmpopup = 1 WHERE userid = $userid");


All times are GMT. The time now is 10:51 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.01535 seconds
  • Memory Usage 1,846KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (19)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
  • (40)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