vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Welcome Message in Any Forum (https://vborg.vbsupport.ru/showthread.php?t=35398)

Karri 03-27-2002 03:36 PM

bump...

diettalk 04-08-2002 01:37 PM

I cannot run a sql query.. can someone please make me an Install script for the query.. thanks.

Also is there a FAQ about how to read about queries? I'm interested. Thanks.

hypedave 04-10-2002 02:48 AM

in stead of it haveing the post created from autoposter
how do I get it to have my name as the thread creator ?

sub 05-02-2002 10:37 AM

This is my first contribute to help ppl so here is some of you all answers to your questions and something more. :laugh:


PHP Code:

(NULL,'".addslashes(htmlspecialchars("$username"))."','".time()."',
'$newregthreadforumid','1','0','".addslashes("YOURUSERNAME")."','USERID#','"
.addslashes("Auto Poster")."'
,'".time()."XXX','0','1','0')"); 

Edit the these feilds to your desire:
YOURUSERNAME: This is where you put your username at
USERID#: Your user ID # goes there too like mine is 1
XXX: SIGGIE Option Variable: 0 for OFF and 1 for ON
(I renamed the feilds to above for easy reading but you get the idea)

as for the welcome text in the subject:
PHP Code:

$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars("Welcome $username"))."','".time()."','$newregthreadforumid','1','0','".addslashes("YOURUSERNAME")."','USERID#','".addslashes("YOURUSERNAME")."','".time()."','0','1','0')"); 

Look above and see "Welcome $username" thats where you edit the subject feild. Take care and have fun!

I hope I helped you all and no pun to the creator of this hack, just helping out.

Oh and BTW. GREAT HACK! Congrats! :D

Dark Shogun 09-20-2002 09:42 PM

Can anyone tell me how to make it so that my account is the account that introduces the new people because I tried these instructions and it doesn't work for me.

Dark Shogun

MGSteve 01-05-2003 09:53 PM

Excellent stuff, cheers! :D

Bison 01-06-2003 03:17 AM

I'd like to know how to get this to work if you manually add(+) a user! I added this to my admin/user.php file but the thread came up blank!

Update:

I did get it to post the username into the thread title but the "welcome_newuser" template contents wouldn't print inside the thread ....

Any suggestions?

eyeman 07-30-2003 03:06 AM

I was looking for some help and some select have helped while I was searching for my membership info...I have it now and just wanted to say thank you for the help...

eyeman 08-05-2003 06:10 PM

I am learning php, mysql is limited, do I need to mess with the database to install this welcome script?

dontpanic 10-09-2003 07:39 PM

If you want to update the post count of the user you have configured the welcome to come from, just add this code:

PHP Code:

$DB_site->query("UPDATE user SET posts=posts+1+WHERE+userid=XX"); 

Change the XX to match the userid of the user you have configured. This code gets added just above the tail end of the hack:

PHP Code:

  }

//END Hack to Post userinfo to a forum 


Great hack! I have been personally welcoming new users manually...not it will be done automatically for me, invisibly to them. Sweet!

Milhouse 11-19-2003 04:15 AM

if one installed this hack but no longer wants it how does one go abouts of removing it??? like the sql queries oringaly ran.. how can you remove those?

webhost 12-21-2003 02:56 PM

Have you or do you know of anyone that has this hack working for vb3 gamma,
Would appreicate if you do.

Stasik 12-30-2003 07:39 PM

i have edited it a bit so u can use it on Gamma now


All times are GMT. The time now is 04:16 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.01131 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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