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


All times are GMT. The time now is 01:11 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.01666 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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