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)

tobaro 05-14-2008 08:18 AM

Quote:

but it does nothing on my 3.6.9 installation
see my post before - thats the point ;)

sweptwingnut 05-16-2008 11:45 AM

Well, this is going to be an embarrassingly simple question for you all. I have read through all the pages here but since I know so little of this stuff, I am left to ask,,,,, :o

Where do I access the place in this product to change our welcome message?

We are running 3.6.8 patch 2 and it is working perfectly for us. Just want to do some tweaking on the message. I don't see where I can make an edit in the admincp for VB. I have access to the ftp site for the file if it is there. But where would I go??

Thanks in advance for pointing me in the right direction.

habasabi 06-18-2008 06:04 PM

sweptwingnut...

I don't know if you've figured out your question or not yet, but I wanted to let you know... In the Admin CP you go down to Plugins & Products, Then Plug in Manager. You click on the Welcome Thread Modification, and it will open up the page to edit all the text, etc...

Good luck!

sweptwingnut 06-18-2008 08:33 PM

Thanks habasabi! Actually, I have figured it out but not where yours seems to be located. In your location on our setup is the php code request box.

Instead for us,,Styles and Templates / Style Manager / Edit Templates / Welcome Thread - Edit.

Took me a while to dig that deep. Thanks for the reply.

intricatic 06-19-2008 04:14 AM

It's fun to work with in 3.7.1.

RedeemedWarrior 06-21-2008 07:04 AM

ian! ^ *highfives*I'm installing too for CFF

slabuda 07-08-2008 04:50 PM

Lets say i have a few custom profile fields in my Registration and I want to repeat some of fields in the welcome message.

For instance.

If my welcome letter stated..

Welcome Joe User,

Its great to see you are a fithful rider of SUZUKI motorcycles and this is perfect forum for you.

lalalalalalala

Lets assume that i added in my registration a custom field called Motorcycle Type and it was field13.

How would i integrate that into this welcome letter?

Thanks

GraNdMaStEr-B 07-15-2008 10:18 PM

does anyone know when someone joins how to get the welcome thread into the section of the forum you want?

Mr. INTENSE 08-26-2008 06:57 PM

Reading through this thread, there seems to be a ton of confusion over whether or not this mod works, and how to set it up. I installed this Mod and everything about it works perfectly in vBulletin version 3.6.8 Patch Level 2. Thanks to Amy for writing it, and those who helped get it fully debugged. :)

Here is what my Plugin PHP code currently looks like:

PHP Code:

// Backend Files
    
require_once('./global.php');
    require_once(
'./includes/class_dm.php');
    require_once(
'./includes/class_dm_threadpost.php');

// Setup Variables
    
$forumid 3// The forum id that you want the thread posted in
    
$postuserid 62// The Userid of the poster
    
$postusername SNutizzle// The username of the poster
    
$title "BadBeatsPoker.net welcomes $username!"// The thread title

// Don't change below this line

// Start thread create
    
$threaddm = new vB_DataManager_Thread_FirstPost($vbulletinERRTYPE_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); 

Here is what my welcome_thread template currently looks like:

HTML Code:

Welcome to [url]www.BadBeatsPoker.net[/url], a new and fast growing online poker community. We proudly welcome anyone and everyone who wants to improve his or her game, loves poker talk and/or is willing to positively contribute to our discussions.

We?re still pretty small, but our community is growing rapidly. I?m sure you?ve already noticed that the forum is first class, so I?d like to take a minute and point out a few of our features that you may not yet be aware of?

We?re hosting weekly private online tournaments, and we?d love to have you join us. It won?t take long to see that we?re a very fun group:

[url]http://www.badbeatspoker.net/forum/online-tournaments/1134-wednesday-evening-private-online-tournaments.html[/url]

We have our own Chat Room, which is very active in the evenings:

[url=http://www.badbeatspoker.net/forum/chat/flashchat.php]FlashChat v4.8.3[/url]

We have our own area for personal/poker blogging:

[url=http://www.badbeatspoker.net/forum/blog.php]Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy - Blogs[/url]

We hold some very good hand play discussions:

[url=http://www.badbeatspoker.net/forum/hand-plays]Hand Plays - Bad Beats Poker Forum - Poker Discussion - Hand Plays - Poker Strategy[/url]

We?ve compiled lists of our members? biggest tournaments scores in the Bad Beats Live Hall of Fame:

[url]http://www.badbeatspoker.net/forum/brick-mortar-tournaments/917-badbeatspoker-live-tournament-hall-fame.html[/url]

And our Bad Beats Online Hall of Fame:

[url]http://www.badbeatspoker.net/forum/online-tournaments/983-badbeatspoker-online-tournament-hall-fame.html[/url]

Please be sure to tell all your poker friends about the website, and have them join if they're interested.

See you at the tables!

And here's what the automatically generated welcome thread looks like:

http://www.badbeatspoker.net/forum/n...-new-post.html

Of course it wouldn't be right to post in this thread without asking for some help, so here goes. :p

I'd like to tweak this just a little bit to do two additional things:

First, I'd like to check to see if the New Member listed a referrer. And if so, I'd like the automatic welcome thread to be posted by the referrer instead of the specific moderator we have in place currently.

And second, if the New Member did not list a referrer, I'd like to have the new thread posted by a random selection within one of three user groups (Administrators, Super Moderators and Moderators).

I'm thinking both of these things can be done with a few lines of code, but I don't really know anything about coding.

Thanks again for the great Mod, and thanks in advance if anyone is able to help with the tweaks I'm looking to do. :)

Mr. INTENSE 08-26-2008 06:58 PM

Quote:

does anyone know when someone joins how to get the welcome thread into the section of the forum you want?
This is the very first setup variable:

Code:

// Setup Variables
    $forumid = 3; // The forum id that you want the thread posted in


See post #409 above for an example.

Mr. INTENSE 08-28-2008 04:55 PM

Anyone? :confused:

RvG2 08-29-2008 02:28 AM

this mods works with 3.7.3

thanks :D

CtrlAltDel 09-12-2008 05:24 PM

thanks for this amy

im going to utilize some of the code of this plugin for something i was working that involved automatically creating threads on demand

marked installed for ya

TitanJeff 10-10-2008 06:57 PM

Very nice product.

Does anyone know if there is a way to set this to work only after a manual approval? Thanks.

Mr. INTENSE 10-24-2008 07:30 PM

One other tidbit I learned today. If you set this add-on to have the welcome thread originated by a user with a space in his name this add-on will no longer function.

So for example:

$postusername = Galactus X; will NOT work,

$postusername = "Galactus X"; works fine.

Hope this is hepful to someone. :)

KatieG 01-06-2009 09:47 AM

This is a welcome new user and post in thread by amykhar

I changed it so it work on 3.8

Change the The Red Parts to suit

// Setup Variables change to match your forum
$forumid = 30; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Username"; // Enter the username of the poster
$title = "We Welcome $userinfo[username] "; // The thread title

Make Template called " welcome_thread "

Code:

Welcome $username



First, introduce yourself. We're a friendly bunch and we welcome newcomers to the Forum.
If you have a problem figuring out how to use a forum feature, check out the FAQ. Your question may already be answered.
If you still need help ask any member
We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around the water cooler.
So just enjoy your stay

Note: it is a plugin not product

Gleedo 01-21-2009 10:45 AM

Quote:

Originally Posted by KatieG (Post 1703117)
This is a welcome new user and post in thread by amykhar

I changed it so it work on 3.8

Change the The Red Parts to suit

// Setup Variables change to match your forum
$forumid = 30; // The forum id that you want the thread posted in
$postuserid = 1; // The Userid of the poster
$postusername = "Username"; // Enter the username of the poster
$title = "We Welcome $userinfo[username] "; // The thread title

Make Template called " welcome_thread "

Code:

Welcome $username



First, introduce yourself. We're a friendly bunch and we welcome newcomers to the Forum.
If you have a problem figuring out how to use a forum feature, check out the FAQ. Your question may already be answered.
If you still need help ask any member
We talk about pop culture, hobbies, raising kids, getting ahead at work, and just about anything else friends talk about around the water cooler.
So just enjoy your stay

Note: it is a plugin not product

Hi Katie - ive never installed a plugin before (only products...). Im looking at the 'add new plugin' form and its asking for a 'hook location'. Any idea what I should select? Or am i in completely the wrong place :confused:

Thanks in advance :)

raugusto 01-23-2009 04:22 PM

You should go to upload/download plugins instead.

Gleedo 01-23-2009 05:56 PM

Quote:

Originally Posted by raugusto (Post 1722497)
You should go to upload/download plugins instead.

Thanks, now got it going :)

Vaupell 01-31-2009 09:02 AM

ty

installed on a 3.8.1 board. lovely.

ATVTorture 02-13-2009 12:24 AM

I'm trying to figure out which template or PHP page performs the query for "recent threads" and "new threads since your last visit". I would like to limit the query so it doesn't include posts from this particular forum in both of those areas.

I figured I would add something to the query like this so that the query doesn't look for new threads in the forum with an ID of 100:

Code:

and !forum_id='100'
Is this possible?

Thanks!

ATVTorture 02-17-2009 05:11 PM

Anybody have an idea to my last reply?

Thanks!

Peaches 03-01-2009 07:05 PM

Thanks amy! this works great and was just what I was looking for. My board is ver 3.8.0

mrtroybaker 03-24-2009 06:50 PM

Quote:

Originally Posted by raugusto (Post 1722497)
You should go to upload/download plugins instead.

I tried this and get this

This file appears to be a Plugin, not a Product. Please use the Plugin Manager to add this file.


Im using 3.8.1 anyone help me out?

mrtroybaker 03-24-2009 06:58 PM

NEVERMIND!! I figured it out

The Executioner 03-26-2009 09:12 PM

Where and how do I make a template called welcome_thread ??

wizardan 03-31-2009 02:44 PM

Flawless install on a 3.8.1 board.

Bergler 04-26-2009 05:58 PM

Does anyone know if this mod will work on 3.8.2 ??

ArnyVee 05-04-2009 02:14 AM

Quote:

Originally Posted by Cloudrunner (Post 733113)
Small annoyance--

If you have templates names added in the HTML through you AdminCP, you will get the following when using this unelss you have the template names in THML comments disabled

"<!-- BEGIN TEMPLATE: welcome_thread -->...<SNIP>...<!-- END TEMPLATE: welcome_thread -->"

Just an FYI, most people will not run with template names in HTML to cut down on bandwidth, but I turn them on sometimes when working on a new style.

I used Katie's plugin from post #416, added the signature lines into it by adding the instructions a few pages back and everything seems to be working perfectly. Except for the fact that when the new thread was created, I saw the same "Begin Template" 'stuff' on the post. How do we adjust this to not show?

Edited: Scratch that, found the option under "General Settings" listed under "Add Template Name in HTML Comments".

ArnyVee 05-06-2009 10:09 AM

Hmm....had worked with a testuser that I added through normal registration and worked. But, since then I've had a few new members and it hasn't worked. Strange.

Anyone have any tips to make sure that this works?

ArnyVee 05-09-2009 04:01 PM

Okay, it's officially not working for some reason. :(

Are there any other options to having a thread start automatically upon a new member's registration or activation?

ArnyVee 05-25-2009 12:20 AM

Am I doing something wrong here? I really want this to work for my forum and it isn't right now.

Code:

// Backend Files
    require_once('./global.php');
    require_once('./includes/class_dm.php');
    require_once('./includes/class_dm_threadpost.php');

// Setup Variables change to match your forum
    $forumid = 2; // The forum id that you want the thread posted in
    $postuserid = 1; // The Userid of the poster
    $postusername = "WDBArnyVee"; // Enter the username of the poster
    $title = "Give A Warm TheWDB.com Welcome To $userinfo[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';
    $sig = '1';  //show signature 1/on 0/off
    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);
    $threaddm->do_set('showsignature', 1);
    $tid = $threaddm->save();

// Update last post stuff on forumdisplay
    require_once('./includes/functions_databuild.php');
    build_forum_counters($forumid);


ArnyVee 05-25-2009 05:52 PM

Okay, I removed the "sig" lines which originally were there to automatically have the signature showing. Now, it worked! :)

Bro_Joey_Gowdy 06-09-2009 02:19 PM

Uninstalled and upgraded to the 3.8.x version with more features:

https://vborg.vbsupport.ru/showthrea...95#post1826395

:cool:


All times are GMT. The time now is 02:41 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.01804 seconds
  • Memory Usage 1,844KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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