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)

Datenpapst 07-26-2004 12:57 PM

Quote:

Originally Posted by rob_daemon
In the hack file, there's a line that says "Last Updated" and there's a date next to it. What is that date?

If I dont have 3.0.3 it also works or not?

rob_daemon 07-27-2004 06:24 AM

It should work on any version from 3.0.0 to 3.0.3.

Datenpapst 07-27-2004 07:41 AM

Quote:

Originally Posted by rob_daemon
It should work on any version from 3.0.0 to 3.0.3.

Thats great :) Makes the board more personal :)

nogerorob 08-01-2004 07:17 AM

First:

This is a great Mod. I've installed this with no problems, and clicked install. Thank you.


Quote:

Originally Posted by contramontanum
Thanks Rob, that did the trick. Very useful hack indeed! Is there a way to format the text in the welcome mail to put in links (to other pages on the forum)? I noticed HTML doesn't work.

I'm trying to create a link in the private message that takes the user to our Introductions and Greetings area. I had a shot at doing this in register.php as follows:
PHP Code:

        $username $_POST['username'];
        
$intro_forum '<a href="http://www.weeklydavespeak.com/forums/forumdisplay.php?f=13">Greetings and Introductions</a>';
        
// Process each one of the replacement vars
        
$vars = array(
            
'$bbtitle' => $vboptions['bbtitle'], 
            
'$username' => $username
            
'$email' => $email
            
'$userid' => $userid,
            
'$intro_forum' =>  $intro_forum
        
); 

But it ends up displaying the html code in the private message, rather than interpret it as a URL. Any ideas on how to create a link in the private message?

nogerorob 08-01-2004 07:28 AM

aha!

I just figured out the answer to my question. No further modification of register.php is needed.

Simply use the vBcodes to create the link in adminCP -> vb options -> user registration -> welcome pm text . In my case:


Please take a moment to introduce yourself on the Greetings and Introductions Forum

rob

NietzscheKid 08-02-2004 12:15 AM

Hi.

This is really a beautiful hack. But I cannot get it to work. I have tried several times. Deleted the mysql queries, re-installed them and this process I have repeated over and over. :(

The thing is that the welcome message appears in my admin cp. But, when I test it and register a test account, I get an error message (after hitting the complete registration button). I get a database error message. Please hit refresh etc.

Then it tells me that I am already registered when hitting refresh.

There is no automatic welcome message sent either.

And there is something very strange happening.

When I upload the new register.php file (with your code it is around 45 KB). The original register.php is around 38 KB). However, when I upload and replace the old php file with the new one, I get a 41 KB page on my ftp. So, it seems like for whatever reason, regardless of how many times I try to upload it, the register.php file reduces the 45 KB to 41 automatically.

Any help would be greatly appeciated. I really love this hack and would like to use it.

Thanks :)

NietzscheKid 08-02-2004 01:22 AM

Quote:

Originally Posted by NietzscheKid
Hi.

This is really a beautiful hack. But I cannot get it to work. I have tried several times. Deleted the mysql queries, re-installed them and this process I have repeated over and over. :(

The thing is that the welcome message appears in my admin cp. But, when I test it and register a test account, I get an error message (after hitting the complete registration button). I get a database error message. Please hit refresh etc.

Then it tells me that I am already registered when hitting refresh.

There is no automatic welcome message sent either.

And there is something very strange happening.

When I upload the new register.php file (with your code it is around 45 KB). The original register.php is around 38 KB). However, when I upload and replace the old php file with the new one, I get a 41 KB page on my ftp. So, it seems like for whatever reason, regardless of how many times I try to upload it, the register.php file reduces the 45 KB to 41 automatically.

Any help would be greatly appeciated. I really love this hack and would like to use it.

Thanks :)

Actually, you've already answered my question a few pages back. I should read a whole thread before asking questions.

Thanks again.

"clicks install"

rob_daemon 08-02-2004 04:39 AM

Quote:

aha!

I just figured out the answer to my question. No further modification of register.php is needed.

Simply use the vBcodes to create the link in adminCP -> vb options -> user registration -> welcome pm text .
Glad you were able to solve your issue :)

Quote:

Originally Posted by NietzscheKid
Actually, you've already answered my question a few pages back. I should read a whole thread before asking questions.

Thanks again.

"clicks install"

Haha... glad you got it fixed yourself :)

nogerorob 08-02-2004 07:16 AM

Quote:

Originally Posted by rob_daemon
Glad you were able to solve your issue :)



Haha... glad you got it fixed yourself :)

Looks like this hack's on autopilot now. :)

I installed this hack thanks to the scubaboard's admin article here.

Nice work on this hack, I'm watching to see how it affects threads and posts.

Thanks again.

rob

fiber1 08-07-2004 03:53 AM

Rob,

The text file you have is stretches horizontal in a few lines and very hard to follow.
Would it be to much to ask to align it left with the proper page breaks so it is easier to folllow?

Fiber


All times are GMT. The time now is 04: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.01413 seconds
  • Memory Usage 1,755KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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