vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - New Thread on Registration (https://vborg.vbsupport.ru/showthread.php?t=73093)

tnguy3n 12-18-2004 10:00 PM

New Thread on Registration
 
Modded by tnguy3n
Requested here
Live demo: http://www.all4actions.net (also screenshots attached)

Description: This hack automatically creates a "Welcome Thread" in an assigned forum when an user register a new account on your board.
Log into Admin CP, go to vBulletin Options -> User Registration Options, then to change your settings
Administrator of the board can:
- turn on or off this mod in the Admin CP.
- turn on or off an option which allow user to create an introduction thread on registration
- create/modify title + welcome message content easily
- assign a specific forum where Welcome Thread to be created in.
- etc

Version 1
New Queries: 6 (added to vb setting table)
File Mod: 1
Template mod: none
Installation time: 30-45 seconds
This version is to automatically create welcome thread on new registration.

Version 2
Queries: 7 add to setting table
Phrase: 2
File mod: 1
Template mod: 1
New template: 1
Installation time: 2-3 mins
version 2 is either to automatically create welcome message or let users creating their own introduction thread on registration.

Installer included.

Changees In version 2
- 1 query added to setting table
- 2 phrases added
- 1 new template
- 1 template mod (register)
- 1 extra code mod in register.php file.

Note: if you run WelcomeThread Installer. You must log into Admin CP, go to vBulletin Options -> User Registration Options and change those Welcome Thread settings to yours, then Save.

More instruction + trouble shooting, read this thread http://www.all4a-designs.com/forums/...21.msg22#msg22

lasto 12-19-2004 08:46 PM

neat little hack u done there m8 and admin controlled well done

/me clicks install

Lionel 12-19-2004 08:59 PM

Your instructions are wrong. Install is less than one minute, not 5-6 :-)

lasto 12-19-2004 09:03 PM

Quote:

Originally Posted by Lionel
Your instructions are wrong. Install is less than one minute, not 5-6 :-)

Installed and working fine - well easy :)
Can you do an addon for this if not to much trouble ?
post to mod room - posts saying new user has regged and in the post have the users email and ip (saves checking em in admincp)

Used to have this sort of hack on vb2 and liked it then.

cheers m8

tnguy3n 12-19-2004 09:16 PM

Quote:

Originally Posted by lasto
Installed and working fine - well easy :)
Can you do an addon for this if not to much trouble ?
post to mod room - posts saying new user has regged and in the post have the users email and ip (saves checking em in admincp)

Used to have this sort of hack on vb2 and liked it then.

cheers m8

:rolleyes: lol... make it 5-6 mins for those turtles like me.

yup, to post in mod forum, just add an extra query. I'll look into it for ya. :)

kaotic 12-20-2004 03:56 AM

So what this does is, everytime someone registers, it makes a post with the exact same content, changing only the variable of the user's name in the title?

If so, might I suggest the feature of allowing the user to edit the post's content while registering?

yinyang 12-20-2004 06:59 AM

great hack. i've always thought about how something like this would be totally useful. it'll actually help people get used to posting also!!! but i agree with kaotic in that is there a way for them to post their own unique message instead of it being a boiler plate message created by admins?

fatalsex 12-20-2004 08:21 AM

just perfect hack.
Its a first hack that i see , so you have 1 click install :)
GREAT JOB!
Have any others ? :)

Zelda-King 12-20-2004 01:08 PM

I have a couple of queries (which I think will also benefit others here);

- What happens if we have 'moderate new users' enabled? Can it be made to only make threads for approved members?

- Can we designate a userid as the thread author? In my case we have a 'bot-admin' member for things like welcome PMs and such.

tnguy3n 12-20-2004 01:44 PM

Quote:

Originally Posted by Zelda-King
I have a couple of queries (which I think will also benefit others here);

- What happens if we have 'moderate new users' enabled? Can it be made to only make threads for approved members?

- Can we designate a userid as the thread author? In my case we have a 'bot-admin' member for things like welcome PMs and such.

okie. i got a new version with options allow users to post introduction thread on registration.

it seems that I gotta look into the mod again for approved members only.

check 1st post for update & upgrade instructions also available if ya wish to upgrade from 1st version. ;)

Delphiprogrammi 12-20-2004 02:02 PM

this thing works but i don't see an option to turn it off ?

tnguy3n 12-20-2004 02:08 PM

Quote:

Originally Posted by Delphiprogrammi
this thing works but i don't see an option to turn it off ?

Please check screenshots. You turn it on or off in AdminCP, under User Registration Options, and just check NO.

tnguy3n 12-20-2004 02:25 PM

Screenshots for WelcomeThread v2.

TTG 12-20-2004 03:20 PM

Useful and easy to install .. thanks for the hack.

Clicked Install :)

Socomjunky.com 12-20-2004 07:23 PM

Is there a Way when they have to fill in the welcome thread part to complete registration?

tnguy3n 12-20-2004 08:45 PM

Quote:

Originally Posted by Socomjunky.com
Is there a Way when they have to fill in the welcome thread part to complete registration?

yup, totally. That was what i was thinking when i coded version 2. if users do not fill out title + message field, it would return error; however, but I didn't have time to check all input and stuffs, besides, it may annoy the ppl.

Socomjunky.com 12-20-2004 10:03 PM

okay another question. I just finished Installing Version 2.the whole zip hack everything went smoothly. But i went to test the haack out it was successful but its not sending the Post to the Forum. I did the installer i wasnt sure if i had to do anything with the update.txt

tnguy3n 12-20-2004 11:35 PM

You gotta enter forumid where Welcome Thread to be created in. default forumid I used was 2, but you can change to whatever forumid that fits your board.

TheVirus 12-21-2004 12:03 AM

You don't know how much of a blessing this hack is to my team. We welcome each new user, and this is gonna save us precious time.

*Clicks Install*

Socomjunky.com 12-21-2004 12:10 AM

i put the forum Id and everything is set up and its not working. Below i posted some screen shots of my Admin panel.

tnguy3n 12-21-2004 01:21 AM

Quote:

Originally Posted by Socomjunky.com
i put the forum Id and everything is set up and its not working. Below i posted some screen shots of my Admin panel.

I visited your site, and based on your setting for welcome thread, it won't show in forum 3 because the forum of that id doesn't even exist. Click on the link and check it out yoursel http://www.socomjunky.com/forum/forumdisplay.php?f=3 . How about creating in some existing forums, say 159 . ;)

Socomjunky.com 12-21-2004 01:35 AM

i put the correct Forum ID Number But its still not working. I want the New Thread to go to my " Lobby " Forum which ID is #79. Still doesnt work and i dont know what to do.

tnguy3n 12-21-2004 02:16 AM

Quote:

Originally Posted by Socomjunky.com
i put the correct Forum ID Number But its still not working. I want the New Thread to go to my " Lobby " Forum which ID is #79. Still doesnt work and i dont know what to do.

I don't know if this is a bug in Welcome Thread v2 or whether your forum access masks cause dis problem. I'll look into it when I got time. :)

TStaut 12-21-2004 05:30 AM

Worked great, just what I needed! Thanks a ton.

The Realist 12-21-2004 09:56 AM

Installed ok but its posting to the correct section but the actual content of the post is blank?

Ideas anyone?

tnguy3n 12-21-2004 01:31 PM

Quote:

Originally Posted by The Realist
Installed ok but its posting to the correct section but the actual content of the post is blank?

Ideas anyone?

Did you modify the template?
check and make sure in your template, name of message or textarea in your template must be welcomethread_message
HTML Code:

<textarea name="welcomethread_message" cols="50" rows="10"></textarea>
or it assumes your message is null and you got blank content.

The Realist 12-21-2004 02:45 PM

Where does it say this in the instructions to version 2?

Quote:

Originally Posted by tnguy3n
Did you modify the template?
check and make sure in your template, name of message or textarea in your template must be welcomethread_message
HTML Code:

<textarea name="welcomethread_message" cols="50" rows="10"></textarea>
or it assumes your message is null and you got blank content.


tnguy3n 12-21-2004 02:54 PM

Quote:

Originally Posted by The Realist
Where does it say this in the instructions to version 2?

I'm confused. you upgraded from version 1 or that was fresh installation of version 2?

If you upgrade to version 2, log into your admincp and create a new phrase as following:

Phrase Type: Register
Varname: welcome_message_default
Text: Hello, I'm new here, hope to be y'all's friend!

I made little mistake on dat in the upgrade instruction (which is already fixed now).

Lionel 12-21-2004 04:52 PM

got a database problem in showthread after update
Invalid SQL: SELECT
COUNT(*) AS count FROM user WHERE referrerid =
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

mysql error number: 1064

Socomjunky.com 12-21-2004 05:10 PM

dam i tried everything nothing yet.

The Realist 12-21-2004 05:21 PM

No not upgraded but new install using version 2.

Quote:

Originally Posted by tnguy3n
I'm confused. you upgraded from version 1 or that was fresh installation of version 2?

If you upgrade to version 2, log into your admincp and create a new phrase as following:

Phrase Type: Register
Varname: welcome_message_default
Text: Hello, I'm new here, hope to be y'all's friend!

I made little mistake on dat in the upgrade instruction (which is already fixed now).


Lionel 12-21-2004 05:21 PM

and after registering user gets this when trying to go back on forumhome

Invalid SQL: SELECT userid FROM usersonline WHERE userid=
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

mysql error number: 1064

Lionel 12-21-2004 05:30 PM

everything is fine when I go back to my old register.php with previous version. I am using 3.01

tnguy3n 12-21-2004 05:48 PM

@Lionel: update function only inserts 2 new phrases + 1 new setting, it doesn't tough user table.

I tested it on 3.0.3 . I'll get back to ya after I fully test this version 2 on earlier version of vb3 (luckily, i still have 3.0.1 on my laptop). :)

Socomjunky.com 12-21-2004 06:54 PM

okay i fixed it. Thanks awesome hack and i just clicked install :)

tnguy3n 12-21-2004 07:39 PM

Quote:

Originally Posted by Lionel
everything is fine when I go back to my old register.php with previous version. I am using 3.01

I got vb 3.0.0 + 3.0.3 on my localhost, they all seemed to work fine, both fresh installation and upgrade. Try to upgrade again (don't forget to run welcomethread_installer.php , then upgrade option) and follow instructions closely.
If you still have problem with it, drop me a PM and i'll help you out when i'm available. ;)

msimonds 12-22-2004 12:03 AM

oustanding and easy hack to install!

I would like to make it a manditory option and if they dont fill out the form, dont make a post!

joeychgo 12-22-2004 01:38 PM

I like the idea of this hack alot - is there a way to make it so it also displays the results of selected provile fields such as 'Location' ?

TTG 12-22-2004 02:00 PM

Had 1st new member since installing this hack .. new member didn't fill in any 1st post so the default message was posted in the correct forum .. when he went to reply to the post :-

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP

mysql error number: 1054

-------------------------------------------------------------------------

Removed hack and all now works well !?

Re-installed and all works well now .. must have made an error on installation https://vborg.vbsupport.ru/external/2004/12/1.gif

Socomjunky.com 12-22-2004 08:59 PM

okay i have the hack installed but its producing blank topics was it because they didnt fill out anything?


All times are GMT. The time now is 04:46 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.01377 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_html_printable
  • (12)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
  • (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