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)

xjuliox 10-12-2005 03:28 AM

I have been checking this plugin for a few days already. I have been wondering were could I download it from too.

Neutral Singh 10-12-2005 04:27 AM

Could it be possible to add a new post in an existing thread of our choice, as in my case all the welcomes are being posted in a single thread? Thanks.

Mr Chad 10-12-2005 09:44 PM

Quote:

Originally Posted by Neutral Singh
Could it be possible to add a new post in an existing thread of our choice, as in my case all the welcomes are being posted in a single thread? Thanks.

Anyone have the Zip file laying around?

amykhar 10-13-2005 12:31 AM

IT HAS A BUG. It will be back when I have time to FIX the bug. ;)

RetroDreams 10-14-2005 12:38 AM

Quote:

Originally Posted by amykhar
IT HAS A BUG. It will be back when I have time to FIX the bug. ;)

I'll just reinstall the buggy one... this has been a HUGE plugin for the site as it really seems to drive new members and get them to dip their feet into the pool, so to speak.

Mr Chad 10-14-2005 03:58 AM

yea i really need this!

Basit 10-15-2005 01:46 AM

Quote:

Originally Posted by amykhar
IT HAS A BUG. It will be back when I have time to FIX the bug. ;)

Waiting for re-release of this Hack :ermm:

SpanishHarlem 10-16-2005 12:42 AM

yeah me too :(

WildSharky 10-17-2005 12:42 PM

ok im lost as i dont see no way to set in thing and it didnt make a plugin no where in the plugin list way?? how do i set the forum i want to use?

southernlady 10-17-2005 12:45 PM

Why wait...see this thread: https://vborg.vbsupport.ru/showthread.php?t=98553 Liz

amykhar 10-17-2005 12:50 PM

That's a different mod. That one has the user create their own thread through an automated process. This one welcomes the user from the user of your choice on your forum.

WildSharky 10-17-2005 12:51 PM

right so know how do i use yours? or iam i that dumb?? I dont see no plugins being use here.. its only making a temp is all..

PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="amykhar_10172005" active="1">
    <title>Welcome Thread</title>
    <description>Thanks to flypaper for bug fix</description>
    <version>1.5</version>
    <codes>
    </codes>
    <templates>
        <template name="welcome_thread" templatetype="template" date="1129555516" username="amykhar" version="3.5.0"><![CDATA[Welcome to our forums!  We hope you enjoy your time here.]]></template>
    </templates>
    <plugins>
    </plugins>
    <phrases>
    </phrases>
    <options>
    </options>
</product>


fly 10-17-2005 12:52 PM

Quote:

Originally Posted by WildSharky
ok im lost as i dont see no way to set in thing and it didnt make a plugin no where in the plugin list way?? how do i set the forum i want to use?

Looks like she forgot to include some code...

amykhar 10-17-2005 12:54 PM

No, I didn't. The code is in the plugin. He doesn't know how to access the plugin. I'm looking for the tutorial thread that was posted for new users about plugins and such.

WildSharky 10-17-2005 12:55 PM

this doesnt make a plugin that i can see did i really miss something??

amykhar 10-17-2005 01:00 PM

Grab the xml file again. The export failed the first time.

WildSharky 10-17-2005 01:01 PM

ok thanks alot you Amy and Flypaper now i see the plugin :) this is a great hack even if it is a small one :)

WildSharky 10-17-2005 01:25 PM

Ok one more thing i have set this code in the plugin to this
PHP Code:

// Setup Variables
    
$forumid 3// The forum id that you want the thread posted in
    
$postuserid 1// The Userid of the poster
    
$postusername "WildSharky"// The username of the poster
    
$title "Welcome $username"// The thread title 

But when i went and registered it used the registers name "test" and not mine? why is that?? Shouldnt it show me as the thread starter??

And its not show as a new post would on the forums home page..
It just show the image like its an old post..

fly 10-17-2005 01:41 PM

Quote:

Originally Posted by WildSharky
Ok one more thing i have set this code in the plugin to this
PHP Code:

// Setup Variables
    
$forumid 3// The forum id that you want the thread posted in
    
$postuserid 1// The Userid of the poster
    
$postusername "WildSharky"// The username of the poster
    
$title "Welcome $username"// The thread title 

But when i went and register it used the registers name "test" and not mine? why is that?? Shouldnt it show me as the thread starter??

And its not show as a new post would on the forums home page..
It just show the image like its an old post..

edit. dont listen to me. im dumb. :D

WildSharky 10-17-2005 01:50 PM

That worked great man thanks but are they a way to make it show the thread as new to the one who registered?? as it show as new on my other new but not the one i use to registered

But the rest worked great thanks again...

fly 10-17-2005 01:54 PM

Quote:

Originally Posted by WildSharky
That worked great man thanks but are they a way to make it show the thread as new to the one who registered?? as it show as new on my other new but not the one i use to registered

But the rest worked great thanks again...

Wait. That fixed it? I thought I was wrong, cause I implemented it a little differently on my forum. Oops.

The thread doesn't show as new? Is that what's wrong now?

WildSharky 10-17-2005 01:57 PM

yes it shows my name as the poster now so that part is fixed and it show as a new post after i log back in on WildSharky but not the "test" name i registered im guess this is because its like the registered name is making the post maybe??

Mr Chad 10-17-2005 02:07 PM

hey is it possible to make it post the users profile field info? If so please explain how, Because i want to use this as an introduction system where it posts all the required profile fields.

WildSharky 10-17-2005 02:23 PM

and it dont have my sig on the welcome post anyway to make it turn the sig on??

fly 10-17-2005 04:27 PM

Quote:

Originally Posted by WildSharky
and it dont have my sig on the welcome post anyway to make it turn the sig on??

Try adding this code to the plugin:

PHP Code:

$threaddm->do_set('showsignature'1); 

Before the save line:
PHP Code:

$tid $threaddm->save(); 

(untested :p)

WildSharky 10-17-2005 04:40 PM

nope dont work i get this error

Fatal error: Cannot pass parameter 2 by reference in /usr/home/sharky/public_html/forums/register.php(419) : eval()'d code on line 31

PHP Code:

 // 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(); 

thats where i put it

fly 10-17-2005 05:01 PM

Quote:

Originally Posted by WildSharky
nope dont work i get this error

Fatal error: Cannot pass parameter 2 by reference in /usr/home/sharky/public_html/forums/register.php(419) : eval()'d code on line 31



thats where i put it

In keeping with the same format for the rest of the plugin, use the following instead. (It didn't work previously cause I forgot the single quotes around the one)

PHP Code:

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


WildSharky 10-17-2005 05:25 PM

here is the right code as your made the name wrong like befor.. and thanks the sig works now to..
this
PHP Code:

    $threaddm->do_set('userid'$userid); 

should be this
PHP Code:

    $threaddm->do_set('userid'$postuserid); 

PHP Code:

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


fly 10-17-2005 05:31 PM

Quote:

Originally Posted by WildSharky
here is the right code as your made the name wrong like befor.. and thanks the sig works now to..

Oh yeah, forgot about that $userid thing. :p

Mr Chad 10-17-2005 09:54 PM

Quote:

Originally Posted by chatbum
hey is it possible to make it post the users profile field info? If so please explain how, Because i want to use this as an introduction system where it posts all the required profile fields.

anyone?

fly 10-19-2005 12:27 AM

Quote:

Originally Posted by chatbum
anyone?

Can you explain a little better what you're looking for?

WildSharky 10-19-2005 09:51 AM

You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???

jluerken 10-19-2005 10:07 AM

Is this version not working with the welcome PM hack?

WildSharky 10-19-2005 10:09 AM

It might be as i havnt looked at all the addons on this forums so im not sure i will look for the welcome pm addon and try it thanks..

amykhar 10-19-2005 11:33 AM

Quote:

Originally Posted by WildSharky
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???

In my version on my board, I had it hacked so that it redirected new users directly to their welcome thread after registration. But that took a file mod.

WildSharky 10-19-2005 11:36 AM

can you give us that mod?

fly 10-19-2005 11:55 AM

Quote:

Originally Posted by WildSharky
You know what would make this hack nicer would be to send a pm to the user when theey sign up telling them they have a welcome post and a link in the pm to the post..


Think you can do that???

This is how I did that.

PHP Code:

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

// Now let's send a PM notifying the user of their thread
    
$userdata->save(); 
    
$fromuser '1'
    
$username unhtmlspecialchars($userinfo['username']); 
    
$registry =& $vbulletin;

// create the DM to do error checking and insert the new PM 
    
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_SILENT); 
    
$pmdm->set('fromuserid'$fromuser['userid']); 
    
$pmdm->set('fromusername'$fromuser['username']); 
    
$pmdm->set_info('receipt'false); 
    
$pmdm->set_info('savecopy'false); 
    
$pmdm->set('title'"Important information regarding your registration!"); 
    
$pmdm->set('message'"[center][b]AUTOGENERATED PM[/b][/center] \n Pending your full approval to xxxx Forums, we have created a thread for you.  The thread is located [url=http://xxxxxforums.com/showthread.php?t=" $tid "]here[/url].  This will be the only thread you can post in until an administrator approves your membership.  If you have any questions that you'd rather not post, feel free to reply to this private message. \n \n [url]http://xxxxxxforums.com/showthread.php?t=" $tid "[/url] \n [b]Note: You may have to log in again when clicking on the thread link above[/b]"); 
    
$pmdm->set_recipients($userinfo['username'], $fromuser['permissions']); 
    
$pmdm->set('dateline'TIMENOW); 
    
$pmdm->save();

// Fin 

There is some rough code in there. If that doesn't work, I'll check back later and help ya out. Right now busy w/ work...

amykhar 10-19-2005 12:22 PM

It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.

fly 10-19-2005 01:48 PM

Quote:

Originally Posted by amykhar
It's better to use the mod that was released for private messages already - do a search WildSharky. It's a plugin. That code has been thoroughly tested and used by hundreds of people.

But if you want to link to the thread created, it needs to be in the same plugin, afaik...

Xplorer4x4 10-19-2005 06:15 PM

This is working for me BUT it starts the thread by the person who registered....not me! I have filled out the proper variables in the XML file.


All times are GMT. The time now is 10:46 AM.

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.01694 seconds
  • Memory Usage 1,896KB
  • 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
  • (11)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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