Log in

View Full Version : Welcome to our newest member --> Notification to Thread?


David LeBow
01-06-2009, 08:46 AM
vBulletin has a "Welcome to the newest member: xyz" as part of the main forum template. Works like a charm.

But if have ten new members today, only the very newest is listed there.

Is there any way to have this information persisted a bit longer? Is it possible, for example, to have notifications added as a thread post, for example? More than one new user listed in the template? Any other ideas on the subject?

Thanks.

KatieG
01-06-2009, 09:44 AM
This is a welcome new user and post in thread by amykhar (https://vborg.vbsupport.ru/member.php?u=87)

I changed it so it work on 3.8

<snip - code removed>

Note: it is a plugin not product

David LeBow
01-06-2009, 10:21 AM
Truly fantastic!

Thanks a million and wintery greetings from the Swiss Alps!

D.

--------------- Added 1231249844 at 1231249844 ---------------

Well, the template has been created and the thread is posted correctly when a user registers. So far, so good. Thanks again for your help.

The hook for the add-in is:

<hookname>register_addmember_complete</hookname>


That fires when the user registers him-/herself. What about when an administrator enters a new user...? Is there a hook that fires there so that we can also have a posting made when the user is added manually...?

KatieG
01-06-2009, 12:07 PM
Truly fantastic!

Thanks a million and wintery greetings from the Swiss Alps!

D.

--------------- Added 06 Jan 2009 at 13:50 ---------------

Well, the template has been created and the thread is posted correctly when a user registers. So far, so good. Thanks again for your help.

The hook for the add-in is:

<hookname>register_addmember_complete</hookname>


That fires when the user registers him-/herself. What about when an administrator enters a new user...? Is there a hook that fires there so that we can also have a posting made when the user is added manually...?


Yes it's called manual posting by admin ............:rolleyes:

David LeBow
01-06-2009, 01:18 PM
Grrr... I'm hunting through user.php and really don't find the hook of my dreams.

I've tried adding a *similar* plugin at useradmin_update_save. The modified plugin code looks like this:


<snip - code removed - amykhar did not give permission for users to redistribute her code>

The only real *excitment* here is the extra if:

if ($_REQUEST['do'] == 'add')

The other change is in the "admin" version of the template:

We at ZIBF are pleased to welcome {$vbulletin->GPC['username']} to the Zug International Business Forum!

You can find out more in the <a href="member.php?u={$vbulletin->GPC['userid']}">Member Profile for {$vbulletin->GPC['username']}</a>"

I get no parsing error on the script, but: I also get no new thread. I'm convinced the code is being called (due to the parsing errors I had been having), but now I'm not getting anything... I tried with a simple text (without eval), but still no thread...

Any ideas? What's different about the environment in the admincp as compared to the part of the code which registers users...?

:confused:

--------------- Added 06 Jan 2009 at 07:27 ---------------

...this was wrong: $title = "ZIBF Welcomes $userinfo[username] !"; // The thread title

...but changing it to a simple text didn't help either... :mad:

Lynne
01-06-2009, 02:17 PM
Amyk did *not* give permission in the modification thread for her code to be redistributed, so you may NOT repost her modification. If you wish to discuss changes to her code, you may do so in the modification thread.

David LeBow
01-06-2009, 02:24 PM
Mea culpa. I didn't look to see where the code came from.

I wasn't so much looking for answers on how to modify her code, though, so much as an answer to the question of how to add a thread when the admin creates a new user manually...

Lynne
01-06-2009, 02:59 PM
You may want to start your own thread for that since it sounds like what you want to do is different than what the thread title suggests.

David LeBow
01-06-2009, 03:04 PM
Will do, thanks. Though - I thought I've been pretty good with thread titles. I've been wading through more than a couple of "Help with this!" and "Why doesn't this work?" thread titles here of late...

Lynne
01-06-2009, 03:18 PM
Now I'm confused.... I thought you were a different poster since you seemed to have a different question, but I guess it's just an extension of your original question.

(And yeah, some of the titles people pick are.... um.... as Mom says "if you can't say anything nice, don't say anything at all" :D )

OK, so now you are wondering if there is anyway to create a new welcome thread when an admin creates a new member through the admin cp?

David LeBow
01-06-2009, 03:24 PM
...yes, the question still seemed ok to me, but, far be it from me to risk the wrath of a moderator! ;) ...at least not when I'm still looking for help...

I've already re-posted the question a little more concretely here: https://vborg.vbsupport.ru/showthread.php?t=200869.

Executive Summary: AdminCP, Add New User, Save --> create a thread in forum 97, say, with the user name and a link to the freshly minted user profile.

Lynne
01-06-2009, 03:27 PM
...yes, the question still seemed ok to me, but, far be it from me to risk the wrath of a moderator! ;) ...at least not when I'm still looking for help...
I don't carry my whip around when I moderate on here; I only use it on my own site. :D

I'll go take a look at your thread.

MrNase
01-13-2009, 05:31 PM
I might be a little blind today but where do I find the add-on that creates a new thread for each new user? :)

I only found one for vB 3.5 :(

David LeBow
01-13-2009, 05:52 PM
...the code I started with originated in the second post in this thread, but Lynne ("says she doesn't carry a whip") snipped it. Maybe check back in the "amykhar" posts...?

Lynne
01-13-2009, 08:20 PM
I might be a little blind today but where do I find the add-on that creates a new thread for each new user? :)

I only found one for vB 3.5 :(
Try it out on your test site - it may work just fine.

...the code I started with originated in the second post in this thread, but Lynne ("says she doesn't carry a whip") snipped it. Maybe check back in the "amykhar" posts...?
Well, I don't carry it around with me, but it's always somewhere close by..... :D

Dismounted
01-14-2009, 03:54 AM
Well, I don't carry it around with me, but it's always somewhere close by..... :D
It's always close by because Lynne (and the other Moderators) need a whipping every little while... :D