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 12-06-2004 05:06 AM

Okay. New version is done. It now has an on/off switch. Sorry for such a delay! I was trying to replicate Manager Josh's problem (page 15) but I was not able to with any form of magic quotes or any quote character as it is all escaped. Manager Josh: if you still have this problem please let me know :).

ManagerJosh 12-06-2004 05:29 AM

still having it...I think :-/

Haven't officially rechecked recently. I'll do a test in a couple of hrs...meanwhile will upgrade to the latest changes to see if that bug still exists.

trackpads 12-07-2004 12:14 AM

Great work and thanks for the update!!

Viks 12-10-2004 11:07 PM

the hack text file is all so .. mish..mashed!!
cud you kindly upload a formated text file, it just easy to follow......especially for forum admins who are not techies.

:)

thanks

rob_daemon 12-11-2004 12:13 AM

Quote:

Originally Posted by Viks
the hack text file is all so .. mish..mashed!!
cud you kindly upload a formated text file, it just easy to follow......especially for forum admins who are not techies.

:)

thanks

This could be caused by your editor, did you read this post?

Viks 12-11-2004 12:56 AM

thanks!!!!!!!!!

Delphiprogrammi 12-14-2004 06:20 AM

i get SQL errors

Code:

MySQL retourneerde:


#1062 - Duplicate entry 'regpmon' for key 1

while running this query

Code:

INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmon', 'register', '1', '1', 'yesno', 135, 0, 0);
the uninstallation instructions do not help ....

now how can i get rid of it :nervous:

Delphiprogrammi 12-14-2004 07:04 AM

hi,

never mind that SQL error all installed and working fine thanks for another great one ;) *clicking install*

4number8 12-19-2004 01:16 PM

Thanks alot, works like a charm....clicks Install ;)

tormodg 12-28-2004 07:43 PM

This worked fine for me! Thanks. Installed!

Dio 01-01-2005 02:33 PM

Clicked install!

nkodengar 01-05-2005 08:31 PM

Installed

Appears to be ok with 3.0.4

joeychgo 01-09-2005 10:49 PM

Installed - Again - On my second forum - Thanks for a great hack!!!!!!

Delphiprogrammi 01-13-2005 11:54 AM

this seems to work fine with vb 3.0.5

lcryan 01-13-2005 12:32 PM

Quote:

Originally Posted by Delphiprogrammi
i get SQL errors

Code:

MySQL retourneerde:


#1062 - Duplicate entry 'regpmon' for key 1

while running this query

Code:

INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmon', 'register', '1', '1', 'yesno', 135, 0, 0);
the uninstallation instructions do not help ....

now how can i get rid of it :nervous:

how did you fix this error I am getting this also

rob_daemon 01-13-2005 11:10 PM

Quote:

Originally Posted by lcryan
how did you fix this error I am getting this also

Use this query:

Code:

REPLACE INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmon', 'register', '1', '1', 'yesno', 135, 0, 0);

Wilt 01-14-2005 09:06 PM

For some reason, it didn't send the pm when I tested it, I have checked it over and over again, everything seems good, but it's just not sending...any ideas? I'm using vb 3.0.5

lanc3lot 01-15-2005 01:23 AM

Rob can u remind me, where the pm "text" we send to new user, is stored?

It been ages since i have installed the v1 of this hack, and want to just make a copy of this text, before uninstall it and install it again for v2
:)

Thnx

pramodha 01-15-2005 06:15 AM

Quote:

Originally Posted by lanc3lot
Rob can u remind me, where the pm "text" we send to new user, is stored?

It been ages since i have installed the v1 of this hack, and want to just make a copy of this text, before uninstall it and install it again for v2
:)

Thnx

he told you to check them under the >Admin CP > User Registration


read all the threads and u will know whts happening !
:devious:

rob_daemon 01-15-2005 05:33 PM

Quote:

Originally Posted by Wilt
For some reason, it didn't send the pm when I tested it, I have checked it over and over again, everything seems good, but it's just not sending...any ideas? I'm using vb 3.0.5

Did you upgrade? What version of the hack are you using?

Quote:

Rob can u remind me, where the pm "text" we send to new user, is stored?

It been ages since i have installed the v1 of this hack, and want to just make a copy of this text, before uninstall it and install it again for v2


Thnx
Like pramodha said, check:

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

lanc3lot 01-15-2005 06:40 PM

Thanks Rob, going to uninstall and install now...:)

Onkel_Tom 01-15-2005 07:16 PM

Just updated to the newest version on 3 Boards and still work fine ;)
thanks Rob https://vborg.vbsupport.ru/external/2005/01/3.gif

lanc3lot 01-15-2005 07:42 PM

Yep it is working....thanks a lot rob:)

Wilt 01-16-2005 02:53 PM

Quote:

Originally Posted by rob_daemon
Did you upgrade? What version of the hack are you using?

Doesn't matter, it appears there was an extra } in register.php what didn't throw up an error.

Challenge 01-30-2005 02:11 PM

Can you remove your signature from the message?

rob_daemon 01-30-2005 07:11 PM

Quote:

Originally Posted by Challenge
Can you remove your signature from the message?

Yes. Open register.php and find:

PHP Code:

        // Send the new owner a PM
        
$DB_site->query(
            
"INSERT INTO " TABLE_PREFIX "pmtext
            (
                fromuserid,
                fromusername,
                title,
                message,
                touserarray,
                iconid,
                dateline,
                showsignature,
                allowsmilie
            )
            VALUES
            (
                
$get_pm_from[userid],
                '" 
addslashes($get_pm_from['username']) . "',
                '" 
addslashes($pmoptions['regpmtitle']) . "',
                '" 
addslashes($pmoptions['regpmtext']) . "',
                '" 
addslashes(serialize(array($userid => $username))) . "',
                0,
                " 
TIMENOW ",
                1,
                1
            )"
        
); 

Replace with:

PHP Code:

        // Send the new owner a PM
        
$DB_site->query(
            
"INSERT INTO " TABLE_PREFIX "pmtext
            (
                fromuserid,
                fromusername,
                title,
                message,
                touserarray,
                iconid,
                dateline,
                showsignature,
                allowsmilie
            )
            VALUES
            (
                
$get_pm_from[userid],
                '" 
addslashes($get_pm_from['username']) . "',
                '" 
addslashes($pmoptions['regpmtitle']) . "',
                '" 
addslashes($pmoptions['regpmtext']) . "',
                '" 
addslashes(serialize(array($userid => $username))) . "',
                0,
                " 
TIMENOW ",
                0,
                1
            )"
        
); 


Challenge 01-31-2005 01:35 PM

Thanks a lot :squareeyed:
Smarties ;)

pingme 02-02-2005 02:03 PM

Does it work with VB 3.0.6 ? I would love ti install if it works w/o issues :D

rob_daemon 02-02-2005 03:50 PM

It works on 3.0.x without any issues :).

OrangeFlea 02-06-2005 01:32 PM

Question:

I'm somewhat unfamiliar with installing hacks/mods that involve inputing queries. The instructions you've provided have me at a loss, because I don't know if I'm supposed to collectively paste all those words into the query dialogue box or enter them in individually. Basically -- and I've consulted with the vBulletin manual -- I don't know how to enter queries. It's a dilemma that I've been ignoring 'till I saw this hack, which would help any board tremendously.

Can you or anyone help?

rob_daemon 02-06-2005 03:18 PM

If you are going to use phpMyAdmin to run the queries, then you can just copy and paste the entire set of queries and run them without having to break them up.

If you are going to be running them through the Admin CP, you'll need to break up each non word-wrapped line of queries and run them individually.

OrangeFlea 02-06-2005 03:43 PM

Thank you, works wonderfully. My favorite hack thus far!

One more thing: How do I include links into the PM message? I tried HTML but it only shows code in the messages new users receive. I want to link them to specific areas of the board.

OrangeFlea 02-06-2005 03:46 PM

Nevermind, uses BB code. THANKS AGAIN!

Kalomax 02-20-2005 07:06 PM

Sorry, I cant read 17 pages, too long !
I just want to ask how do I do with 3.0.7 ? Any change ? I have'nt install yet, now how can i do ?

rob_daemon 02-20-2005 07:10 PM

Just the previous page: https://vborg.vbsupport.ru/showpost....&postcount=269

Quote:

Originally Posted by daemon
It works on 3.0.x without any issues :).


intrigue 02-21-2005 05:27 PM

doesnt seem to work for me :'(

Delphiprogrammi 02-21-2005 06:11 PM

this works fine with 3.0.7 (and lower) f it doesn't work for you something is wrong on your end

greenhybrid 02-23-2005 12:22 AM

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!

MauriceReed 02-23-2005 12:37 AM

got ours working fine!!

(3.0.6)

tormodg 02-23-2005 01:13 AM

Working fine here on 3.0.7, just like it was with 3.0.5 and 3.0.6.


All times are GMT. The time now is 05:50 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.02125 seconds
  • Memory Usage 1,854KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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