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-18-2006 08:37 PM

Quote:

Originally Posted by Tralala
I did, and it posted to a thread just fine. Thanks for that customization.

My variables are set thusly:

Code:

        // Use $postusername if posting as a guest, use $postuserid if posting as a user
        //$postusername = 'admin';
        $postuserid = $vbulletin->userinfo['userid'];

And so the post was made by the new member him/herself.


When I tried using $postusername instead, upon registration, new members would get a screen that said: " No Users Matched Your Query" (instead of "Thank you for registering, blank. An email has been dispatched to blank@blank.com with details...") This happened even if I changed "admin" to the username of a real admin on the forum, like "tralala."


Ideally I'd like for these new posts to be made by one of our admins, or maybe a "welcome bot" account, or perhaps even the member who referred their friend to our forum in the first place. Flexibility here would be ideal. Given the nature of our invite system, it seems awkward for the new member to "announce" their arrival in this way. I'd prefer it to be an existing member (or bot) making the welcome announcement.

And of course, I'd very much appreciate the posting of these to be made AFTER the new accounts are approved by moderators. Looking forward to more details on that.

If you want to post it as a specific user in your forum, change

PHP Code:

$postuserid $vbulletin->userinfo['userid']; 

to
PHP Code:

$postuserid '1'

(Or whatever userid of the person you want the post to be made as...)

If you want the post to be made by an unregistered guest, make sure to comment out the $postuserid section like this:
PHP Code:

// Use $postusername if posting as a guest, use $postuserid if posting as a user
    
$postusername 'Hey Im teh welcome bot!';
    
//$postuserid = $vbulletin->userinfo['userid']; 

EDIT: ^^ Be sure the $postusername is NOT the name of a person already on the forum...

fly 02-18-2006 08:52 PM

Quote:

Originally Posted by Tralala
A side question, I see in the code the welcome_thread template that says:

I realize that this doesn't apply in my case (as new members are being announced in single posts, all in one thread,) but this default text seems inappropriate as new threads for every single member in any case. (And I'm thinking I can safely ignore it anyway.)

But I'm just curious about those that use this hack in it's original form though:

Is that for a PM to the new user? Or do forums ("EA" in this case) actually start new threads for every new member with the same "introductory/tour" text? Seems a bit... much.

Just curious, as I am new to forum moderation and I like to hear how other mods do things.

I changed the way this hack works so that a new thread is created after a new member verifies their email address. This new thread is the only thread they can post in until approved by an administrator. It seems rather draconian, but we are an offshoot of another crazy forum, so its kinda a defense mechanism.

btw, as the hack stands now, when is the thread/post made? It isn't after admin approval? (sorry, its been a while since I played with this hack.)

southernlady 02-18-2006 09:17 PM

Quote:

what do you mean by "block"? perhaps if you post a copy of your template here and someone could figure out why it doesn't work after an edit.
That IS a copy of my welcome_thread template that I posted in post #188. If I edit ANY of the verbage in that, it stops working.

What I want it to say is this:
Code:

<p>Welcome $username!</p>
<p>Southerngazebo is a place where you can hang your hat and chat with friends.

I'm glad you joined us. If this is your first visit, be sure to check out the <a href="http://www.southerngazebo.com/forum/faq.php">FAQ</a> on the forum. Please post an introduction <a href="http://www.southerngazebo.com/forum/forumdisplay.php?f=21">Welcome to SouthernGazebo</a> so others can get to know you.

We're glad you joined. Liz aka Southernlady

When I did change it to that, it stopped working. Once I edited it back to the original message, it worked again. Liz

Tralala 02-19-2006 12:48 AM

Quote:

Originally Posted by flypaper
btw, as the hack stands now, when is the thread/post made? It isn't after admin approval? (sorry, its been a while since I played with this hack.)

Nope, I tested your edited version of the hack earlier this week and the post was made right after they registered... before they had even verified their email address, and before a mod authorized their account.

(And that's why I'm unable to use it on my forum for now.)

Tralala 02-19-2006 01:02 AM

Quote:

Originally Posted by flypaper
If you want to post it as a specific user in your forum, change

PHP Code:

$postuserid $vbulletin->userinfo['userid']; 

to
PHP Code:

$postuserid '1'



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:

Rickie3 02-21-2006 11:08 AM

Quote:

Originally Posted by GearTripper
since the install of this hack, if i search the IP address of any new registrant... my Admin username appears as an additional user with the same IP address. i searced this thread for the following terms and did not pull any definitive results; address, ip, duplicate, and user. anyone have any idea what might be happening?

did anyone find a fix for this problem?

amykhar 02-21-2006 11:19 AM

That's not a bug. If you have it set up to make the post under your user name, that is going to happen because the post is being made while the new user is logged in. It's going to record their IP address under your username. I guess, in theory, you could zero out the ip address for these particular posts if you really cared to do so.

Rickie3 02-21-2006 11:28 AM

thanx for your reply amykhar,yes i do have it set to post under my username,so how would i go about zeroing the IP for these posts

fly 02-21-2006 11:55 AM

Quote:

Originally Posted by Rickie3
thanx for your reply amykhar,yes i do have it set to post under my username,so how would i go about zeroing the IP for these posts

Add some DB query to the hack.

amykhar 02-21-2006 12:46 PM

He shouldn't have to. He should be able to set that with the datamanager.

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

Tralala 02-22-2006 10:54 PM

Quote:

Originally Posted by flypaper
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


Close, but no cigar. When I went to approve in a new member, I got this error:

Fatal error: Call to a member function on a non-object in /home/.odell/mydirname/myforumname.com/forums/global.php on line 22

Uninstalled the hack... and moderation went through fine.

Thanks for trying, I appreciate it!

fly 02-23-2006 11:13 AM

bah, i'll try to look at it more this weekend, unless anyone has any better ideas.

username12 02-26-2006 10:10 PM

How do I remove this? Just uninstalling it doesn't seem to make it go away.

Calisse 02-28-2006 06:28 PM

Another amazing hack Amykhar

jilly 03-02-2006 12:44 AM

Quote:

Originally Posted by jilly
Thanks! I will try it out..
If I can figure it out, I'll add it here to the thread..

I couldn't figure it out - tried my best. If anyone else figures this out, please add it to the thread so I can use it.
thanks
jilly

kanechart 03-05-2006 11:20 PM

not sure if this does or an idea to atract the person who got welcomed into the forums..

Make it email the new registered person and send a email to there mail saying the people at the forums are welcoming you blah blah or somthing.. Maybe sound silly lol

SCRIPT3R 03-11-2006 10:35 PM

Code:

There is a new user, $username at $vboptions[bbtitle].

To view their profile, go here: $vboptions[bburl]/member.php?u=$userid

User Name: $bbuserinfo???
User ID: $username

Email Address: $email
IP Address: $ip

Birthday: $birthday
Age: $userinfo[age]


Custom: $customfields

although the new registered users provide the information requested, nothing shows in the welcome post. fields bolded never appear... am i using the wrong codes?

capebretoner 03-14-2006 05:47 PM

This is something that I have been looking for, not the exact use of the plugin that I was wanting but a HUGE starting point for my new hack.....I will make sure you credit you when I am done

Funkie 03-19-2006 05:34 PM

do you have to have html enabled in the forum this gets posted in cuz i just get the contents of the template poted exacly as it is in the template

$username etc

Tyegurl 03-27-2006 11:56 AM

Quote:

Originally Posted by flypaper
bah, i'll try to look at it more this weekend, unless anyone has any better ideas.

i don't know how to code but i have an idea maybe? i haven't found it on the forums anywhere yet.

once they meet verified member status create a thread welcoming them to "blah blah blah" like if there are hidden downloads or hidden areas. like adding a time frame to it of somesorts or admin promotes user to new status...

Funkie 03-28-2006 06:36 PM

I'll ask again

do you have to have html enabled in the forum this gets posted too cuz i just get the contents of the template posted exactly as it is in the template

hi $username etc

instead of

hi Bert welcome etc

SCRIPT3R 03-28-2006 08:18 PM

Quote:

Originally Posted by Funkie
I'll ask again...

rather then ask again, why not just try it and see? i'm just askin' because sometimes i like to try things out.

fly 03-29-2006 12:10 PM

Quote:

Originally Posted by Funkie
I'll ask again

do you have to have html enabled in the forum this gets posted too cuz i just get the contents of the template posted exactly as it is in the template

hi $username etc

instead of

hi Bert welcome etc

no, you do not.

Tyegurl 03-30-2006 02:10 AM

okay i think i missed something...

i would like to force the new member to post b4 he can use the rest of the forum...i have read and reread and reread again....maybe that's why i am confused. i thought i saw a mod to this hack to allow it. can someone point it out to my blond eyes?? maybe it wasn't here that i saw it....i dunno but i think it was here. am i mistaken?

amykhar 03-30-2006 11:37 AM

That is not this mod. This mod welcomes your new members with an automated post.

DementedMindz 03-30-2006 01:18 PM

lol i removed this cause it just post way to many messages was testing it out... i removed the product but it is still sending messages to the forum when new members register... how do i stop it?

amykhar 03-30-2006 01:26 PM

Go look and make sure all the plugins are gone. You may have installed the plugin version before it became a product or there may be some vbulletin glitch that double installed stuff.

DementedMindz 03-30-2006 01:34 PM

hmmm the template stayed i just removed that ill wait for a new user to see... strange though cause the product was removed.. thanks for replying so fast amy :)

DementedMindz 03-30-2006 01:46 PM

wow amy i removed it reuploaded it removed it again and it still stays :( i removed the product... i made sure the plugin welcome thread upon registration in hook location register_addmember_complete was gone and the template was gone... but its still posting threads how can this be??? all it says now when posting is This just in: test joins our Forums...

DementedMindz 03-30-2006 01:58 PM

wow finally its gone i hope :)


All times are GMT. The time now is 03:17 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.03023 seconds
  • Memory Usage 1,863KB
  • 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
  • (8)bbcode_php_printable
  • (22)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