Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Automatically Start a Welcome Thread in the Forum of Your Choice Details »»
Automatically Start a Welcome Thread in the Forum of Your Choice
Version: 1.5, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 07-08-2005 Last Update: 10-16-2005 Installs: 272
Uses Plugins Template Edits
 
No support by the author.

This little mod will start a new thread in the forum of your choice when somebody registers.

The thread message is contained in a template, and easily customizeable on your part.

This version posts the thread when the user registers - but before he activates his email address.

Thanks to flypaper for providing a bugfix.

Installation Instructions: Import the product. Change the welcome_thread template to suit your needs. Change the setup variables in the welcome thread plugin to suit your needs.

Amy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #252  
Old 04-13-2006, 06:14 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much flypaper; I've been busy traveling and didn't get a chance to see your mod till just now. I will give it a whirl and report back ASAP.
Reply With Quote
  #253  
Old 04-17-2006, 10:39 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper
Try this. I checked out how Andreas did his Welcome PM hack and changed this accordingly. All credit goes to Amy and Kirby (LOL). Lemme know if it works.
Unfortunately this didn't work.

I previously was using your edit that allowed for a new post in a preexisting thread (instead of an entirely new thread.) So I uninstalled that one first.

Then I changed the forum number, userID and name variables accordingly on this one, just to test, installed it, and started the registration for a new user.

When the admin finally goes to moderate in the new user, however, this error comes up:
Fatal error: Call to a member function on a non-object in /home/.odell/mydir/myforumname/forums/global.php on line 22

Thanks for the effort, flypaper. I'm still very interested to see if this can be made to work. Seems like it makes a lot of sense and is a nice way to give a welcome to every new member ... so long as they are verified and moderated inside properly! (As I'm sure you know, not every board has an open-door policy, some are decidely restricted or "invite only," and the vibe is enhanced when members are greeted properly when they finally are able to login. Of course this whole mechanism falls apart if they are welcomed publicly... before they are fully validated and approved by an admin.)

Thanks again for the attempt and the attention.
Reply With Quote
  #254  
Old 05-02-2006, 12:40 PM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Clicked install. Took some time from me to translate into my language ( only because I am poor at these codes ) Clicked install. Realy nice. Thanks
Reply With Quote
  #255  
Old 05-07-2006, 06:25 AM
rolliet rolliet is offline
 
Join Date: Jan 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to find if this has been asked before. Everything works fine and the body of the message is perfect, but the title doesn't give the new user name it gives me this: "This just in: joins our Forums..." So how do I get the title to reflect the new user name?

Thanks for the hack I really like it.

Edit: Got it fixed had to change title to :$userinfo[username]
Reply With Quote
  #256  
Old 05-08-2006, 03:35 AM
5wayshosting 5wayshosting is offline
 
Join Date: May 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone confirm this hack is right to install.

cheers:banana:
Reply With Quote
  #257  
Old 05-08-2006, 07:16 PM
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you amykhar.
Reply With Quote
  #258  
Old 05-14-2006, 09:42 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone managed to get this to work on approval of the account rather than email verification? Flypaper's edit doesn't work, I've tried troubleshooting this but it's beyond me.

It seems to be something to do with the different hook location not working with a particular function, that's about the best I can come up with. I can't fix it.
Reply With Quote
  #259  
Old 05-14-2006, 09:46 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE: I can make it work by manually adding the code to admincp/user.php. I was rather hoping to do it with a plugin, but it seems not.
Reply With Quote
  #260  
Old 05-14-2006, 09:57 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B
UPDATE: I can make it work by manually adding the code to admincp/user.php. I was rather hoping to do it with a plugin, but it seems not.
As you've read in this thread, I've been testing flypaper's code modifications all along, to no avail. Really eager to get it working as you have, as it's the only thing keeping me from using this excellent idea/hack on my forum.

Would you be able to share the code additions? I'd appreciate it.
Reply With Quote
  #261  
Old 05-14-2006, 10:10 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I did this.

In admincp/user.php find:
Code:
}
			else if ($status == -1)
Add above (changing the variables of course)
Code:
// Backend Files
				    require_once('./global.php');
				    require_once('./includes/class_dm.php');
				    require_once('./includes/class_dm_threadpost.php');

				// Setup Variables
				    $forumid = 174; // The forum id that you want the thread posted in
				    $postuserid = 101; // The Userid of the poster
				    $postusername = "Mark.B"; // The username of the poster
				    $title = "Welcome, " . $username; // The thread title

				// Don't change below this line

				// Start thread create
				    $threaddm = new vB_DataManager_Thread_FirstPost($vbulletin, ERRTYPE_STANDARD);

				    $username = htmlspecialchars_uni($username);
				    $allowsmilie = '1';
				    $visible = '1';
				    eval('$pagetext .= "' . fetch_template('welcome_thread') . '";');

				// Insert thread
				    $threaddm->do_set('forumid', $forumid);
				    $threaddm->do_set('postuserid', $postuserid);
				    $threaddm->do_set('userid', $postuserid);
				    $threaddm->do_set('username', $postusername);
				    $threaddm->do_set('pagetext', $pagetext);
				    $threaddm->do_set('title', $title);
				    $threaddm->do_set('allowsmilie', $allowsmilie);
				    $threaddm->do_set('visible', $visible);
				    $tid = $threaddm->save();

				// Update last post stuff on forumdisplay
    require_once('./includes/functions_databuild.php');
    build_forum_counters($forumid);
The only slight issue I have found is this. When you approve an account, the message that says 'User accounts validated and users notified" is missing the sort of "silver header bar" it normally has. If you comment out:
require_once('./global.php');
then the header bar reappears, but then the post that is created is blank, it does not contain any text.

I am guessing that using global.php twice is causing the header bar to vanish. This itself is not a problem, however I worry about what other side effects this is having.

Perhaps an expert coder could point us in the right direction as we are NEARLY there!
Reply With Quote
Reply

Thread Tools

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 06:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05001 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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