vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Automatically Start a Welcome Thread in the Forum of Your Choice (https://vborg.vbsupport.ru/showthread.php?t=91887)

fly 02-21-2006 12:52 PM

Quote:

Originally Posted by amykhar
He shouldn't have to. He should be able to set that with the datamanager.

Well, I'll be a monkey's uncle. You're right. A wealth of info, as usual.

jilly 02-21-2006 02:28 PM

Quote:

Originally Posted by jilly
I searched but couldn't find this info - is there a way to make it so that in the new thread that is automatically started, the new member's name is a link to their profile?

maybe I didnt phrase this right - what I am wanting to know, is in the message posted to the specified forum by the welcome bot, is there a way to make the new member's name a link to their profile?


So it will say:

"Let's welcome (membername) to our community!"

And (membername) will be a link that goes to the member's profile. So if someone wants to PM the new member, or whatever, they can click right on their name in the post, and go to their info.

amykhar 02-21-2006 02:33 PM

Jilly, I don't remember what the new user's userid variable is in that section of the code and don't have time to look for it. All you need is the userid and you should be able to format your link, which should be clickable.

Given that you're a coder, I'll leave that little exercise to you.

jilly 02-21-2006 02:48 PM

Quote:

Originally Posted by amykhar
Jilly, I don't remember what the new user's userid variable is in that section of the code and don't have time to look for it. All you need is the userid and you should be able to format your link, which should be clickable.

Thanks! I will try it out..

Quote:

Originally Posted by amykhar
Given that you're a coder, I'll leave that little exercise to you

LOL - I am only a 'coder' because that's the default vb.org usertitle for the amount of posts I've made. Large amout of posts doesn't necessarily equal coding brains :)
I do know enough to be dangerous, though. So off into dangerous waters I go!
If I can figure it out, I'll add it here to the thread..

Tralala 02-21-2006 02:59 PM

Quote:

Originally Posted by Tralala
That works a treat, great, thanks.

The new user registration now prompts our "WelcomeBot" account to make a post in our WelcomeThread.

However... $username doesn't work in the post body (or I can't seem to get it to work.)

The actual post reads "This is an automated message announcing the arrival of $username to our forums. Say hi!"

Anyway to get that $username variable to actually work, and insert the name of the new registrant?

I'm so close, I can taste it! :nervous:


I'm using flypaper's edit to have a "WelcomeBot" user create a post inside a pre-established Welcoming thread. Alas, I still can't get the final piece of the puzzle in place: to insert the name of the new member in the post's text.

Code:

$postpagetext = 'This is an automated message announcing the arrival of $username!';
Obviously, it leaves $username as $username. I know I am missing something basic. Any assistance on how to edit the text properly would be appreciated.

And if all of these edits have morphed this hack into a totally seperate and annoying concoction, that's cool. Just let me know and I'll scurry along. :nervous:

fly 02-21-2006 03:12 PM

Quote:

Originally Posted by Tralala
Code:

$postpagetext = 'This is an automated message announcing the arrival of $username!';


PHP Code:

$postpagetext 'This is an automated message announcing the arrival of '$username '!'

Try that.

PHP Code:

$postpagetext 'This is an automated message announcing the arrival of '$bbuserinfo['username'] . '!'

Or that.

One of them should work. I think... LOL

Tralala 02-22-2006 04:34 AM

Quote:

Originally Posted by flypaper
PHP Code:

$postpagetext 'This is an automated message announcing the arrival of '$username '!'

Try that.

That one worked! Thanks so much, flypaper.

As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.

Rickie3 02-22-2006 05:49 AM

Quote:

Originally Posted by amykhar
He shouldn't have to. He should be able to set that with the datamanager.

ok where do i find this datamanager please?

sinaluna 02-22-2006 03:58 PM

Quote:

Originally Posted by Tralala
As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.

Is this in the works? This is a great hack, but I need to wait for moderation also.

Thanks!

fly 02-22-2006 04:12 PM

Quote:

Originally Posted by Tralala
That one worked! Thanks so much, flypaper.

As soon as there's a way to delay the posting of this until after the new user has been moderated in (as opposed to "as soon as they register") I'll be enjoying the heck out of this hack.

Can you try this for me? I can't say that I totally understand the conditional used, but its what Andreas uses for his Welcome PM hack. This should create the post AFTER admin approval. I think. :D


All times are GMT. The time now is 03:55 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.01356 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)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