Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2009, 08:46 AM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-06-2009, 09:44 AM
KatieG's Avatar
KatieG KatieG is offline
 
Join Date: Apr 2008
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-06-2009, 10:21 AM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...?
Reply With Quote
  #4  
Old 01-06-2009, 12:07 PM
KatieG's Avatar
KatieG KatieG is offline
 
Join Date: Apr 2008
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by David LeBow View Post
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 ............
Reply With Quote
  #5  
Old 01-06-2009, 01:18 PM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...?



--------------- 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...
Reply With Quote
  #6  
Old 01-06-2009, 02:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-06-2009, 02:24 PM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 01-06-2009, 02:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 01-06-2009, 03:04 PM
David LeBow David LeBow is offline
 
Join Date: Aug 2008
Location: Switzerland
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #10  
Old 01-06-2009, 03:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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" )

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:49 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.04463 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete