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)

Delphiprogrammi 01-15-2005 04:51 PM

first run welcomethread_installer.php after that edit register.php by the way "print_cp_header();" you can get rid of that by

PHP Code:

require_once('./includes/adminfunctions.php'); 


DanCan 01-15-2005 05:11 PM

Sorry, I don't understand? When I run the welcomethread_installer.php, I get the line 13 error, so what do I do to get on? And where should the require_once code be added?

wirewolf 01-15-2005 06:20 PM

I installed the mod, and it works fine. Messages are posting in the correct forum and I don't get any errors.
However. I have the option for the user to create an intro on registration. If they choose to create thier own ("Yes"), but don't type in any thing the fields, then the default message ("Hi, I am new!" - "Hello everyone, I'm new here! Just thought to drop a line to say hi.") is printed in the correct forum. If they chooose "No", again with no input to the fields, then my default (Admin) Welcome Message Text is posted. I would like to get rid of the "Yes"/"No" option and make it them "required fields" (like password, name, email, etc). In other words, they HAVE to input to the fields, and if they don't, they will get an error message similar to if they have an incorrect email address, or forget to enter a password field, etc.
The default Welcome Message from "Staff" gets to look ridiculous after awhile. With the same message shown over and over, it lacks the personal touch.
I assume this would require recoding in register.php, but I'm not sure of the correct syntax.
John

DanCan 01-16-2005 04:35 PM

I think I know what I may have done wrong: I created the user registration options manually by following this guide: http://www.all4a-designs.com/forums/...21.msg22#msg22

Now, I would like to remove the fields I have created since I am not able to run the install scripts as long as they are there.

Anybody knows how to remove the fields? Help would greatly be appreciated.

tnguy3n 01-16-2005 06:09 PM

Quote:

Originally Posted by DanCan
I think I know what I may have done wrong: I created the user registration options manually by following this guide: http://www.all4a-designs.com/forums/...21.msg22#msg22

Now, I would like to remove the fields I have created since I am not able to run the install scripts as long as they are there.

Anybody knows how to remove the fields? Help would greatly be appreciated.

Since you are unable to run the installer, it'd insert nothing into your database, so you don't have to remove any field. I doubt there must be something wrong with your vb core instead of my installer because there'r several ppl install the script and it seemed to work fine for them. :)

tnguy3n 01-16-2005 06:12 PM

Quote:

Originally Posted by wirewolf
I installed the mod, and it works fine. Messages are posting in the correct forum and I don't get any errors.
However. I have the option for the user to create an intro on registration. If they choose to create thier own ("Yes"), but don't type in any thing the fields, then the default message ("Hi, I am new!" - "Hello everyone, I'm new here! Just thought to drop a line to say hi.") is printed in the correct forum. If they chooose "No", again with no input to the fields, then my default (Admin) Welcome Message Text is posted. I would like to get rid of the "Yes"/"No" option and make it them "required fields" (like password, name, email, etc). In other words, they HAVE to input to the fields, and if they don't, they will get an error message similar to if they have an incorrect email address, or forget to enter a password field, etc.
The default Welcome Message from "Staff" gets to look ridiculous after awhile. With the same message shown over and over, it lacks the personal touch.
I assume this would require recoding in register.php, but I'm not sure of the correct syntax.
John

in register.php,

FIND:
Hi, I am new!
and
Hello everyone, I'm new here! Just thought to drop a line to say hi.

REPLACE WITH YOUR OWN welcome title + message.

DanCan 01-16-2005 06:16 PM

I am able to run the installer ( I just forget to put the installer.php in the admincp folder). When I run the installer, I get the following error message:

Quote:

Database error in vBulletin 3.0.5:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'setting_welcome_thread_enable_title', 'Enable Welcome Thread on registration?', '5000')
mysql error: Duplicate entry 'setting_welcome_thread_enable_title-0-5000' for key 2

mysql error number: 1062
I think it is because I have already created the custom fields manually. Now I want to remove them, so I can run the installer properly. How do I do that?

tnguy3n 01-17-2005 02:01 PM

Quote:

Originally Posted by DanCan
I am able to run the installer ( I just forget to put the installer.php in the admincp folder). When I run the installer, I get the following error message:



I think it is because I have already created the custom fields manually. Now I want to remove them, so I can run the installer properly. How do I do that?

upload the attached file to your /forumroot/admincp/
run http://yoursite/forumroot/admincp/we...p?op=uninstall , and that will to remove all current phrases and settings of this mod.

and to re-install, just run http://yoursite/forumroot/admincp/we...php?op=install

DanCan 01-17-2005 04:17 PM

Thanks a lot. Exactly what I looked for.

ChrisBaktis 01-17-2005 08:28 PM

Any time frame when the next version will be out that will not post a new thread if the member doesnt do one himself?


All times are GMT. The time now is 09:23 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.01219 seconds
  • Memory Usage 1,747KB
  • 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
  • (1)bbcode_php_printable
  • (4)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
  • (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