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)

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?


All times are GMT. The time now is 10:31 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.01513 seconds
  • Memory Usage 1,778KB
  • 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
  • (7)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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