vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Welcome to our newest member --> Notification to Thread? (https://vborg.vbsupport.ru/showthread.php?t=200851)

David LeBow 01-06-2009 08:46 AM

Welcome to our newest member --> Notification to Thread?
 
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

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 [DATE]1231249844[/DATE] at [TIME]1231249844[/TIME] ---------------

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

Quote:

Originally Posted by David LeBow (Post 1703129)
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

Quote:

Originally Posted by David LeBow (Post 1703346)
...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

Quote:

Originally Posted by MrNase (Post 1711190)
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.

Quote:

Originally Posted by David LeBow (Post 1711213)
...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

Quote:

Originally Posted by Lynne (Post 1711378)
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


All times are GMT. The time now is 05:35 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.01296 seconds
  • Memory Usage 1,753KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete