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-22-2004 09:08 PM

@TTG: I can't really find explanation why it causes those database error, maybe difference syntax used in mysql versions (i got mysql 4.x btw)... cuz like i said, this mod only add few queries to setting dbtable.

I got this mod tested on 3 vb boards, they all work fine without an error. i don't know if you guys follow the right instructions. :|

Quote:

Originally Posted by joeychgo
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' ?

This is public release, i try to make it as general as possible so that everyone can use it. If you need a custom mod, visit my dev board at http://www.all4a-designs.com/forums or drop an PM with your mod description, I'll help ya out on my sparetime.

tnguy3n 12-23-2004 12:14 AM

Quote:

Originally Posted by Socomjunky.com
okay i have the hack installed but its producing blank topics was it because they didnt fill out anything?

well, i think i found the bug you've mentioned on.

open register.php,
FIND:
Code:

{ $_POST['welcomethread_title'] = "$vbphrase[welcomethread_title_default]"; } // too lazy to check for empty title
REPLACE IT WITH:
Code:

{ $_POST['welcomethread_title'] = "Hi, I am new!"; } // too lazy to check for empty title
FIND:
Code:

{ $_POST['welcomethread_message'] = "$vbphrase[welcomethread_message_default]"; } // ehhh, use default if empty
REPLACE WITH:
Code:

{ $_POST['welcomethread_message'] = "Hello everyone, I am new here. Just thought to drop a line to say hi."; } // ehhh, use default if empty
Those will be default messages if user left title or message field blank. you can change it if you like.

I think i'll make those field as required ones after all. :squareeyed:

tteal 12-23-2004 11:11 AM

I'll have to install this soon.....

Takamine334 12-23-2004 11:58 AM

Quote:

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

Yeah, what gives? The instructions were all wrong. Took 2 mins (I'm not as fast as Lionel) :)

ChrisBaktis 12-24-2004 02:34 PM

Is there a way to prevent a new post if a user chooses not to do one? We award certain contest points to new users when they do an intro post - so if they choose not to do one we do not one posted.

qhoa 12-28-2004 12:02 PM

allright i have read all poster here but i thought no one got my error
everything about installer is smoothly include the part of setting in admincp ->.....option ...-> user reg....

I follow very tire the intruction of attachment and your dev board too

my error it
when my board has the new member reg this mod still created the thread in the forumid that i assigned but it's blank post and no title
there is only showed on the new welcome thread that is a name of new member
would you please take a look over this error for me
thanks
regards

TTG 12-28-2004 12:07 PM

Do the register.php edits shown on this thread

qhoa 12-28-2004 02:13 PM

yes i did but still problem as my post
no thread and no title

tnguy3n 12-28-2004 11:15 PM

Quote:

Originally Posted by qhoa
allright i have read all poster here but i thought no one got my error
everything about installer is smoothly include the part of setting in admincp ->.....option ...-> user reg....

I follow very tire the intruction of attachment and your dev board too

my error it
when my board has the new member reg this mod still created the thread in the forumid that i assigned but it's blank post and no title
there is only showed on the new welcome thread that is a name of new member
would you please take a look over this error for me
thanks
regards

an fix for that was posted here. https://vborg.vbsupport.ru/showpost....3&postcount=42

ChrisBaktis 12-29-2004 03:11 AM

I didnt see an answer to my question - is there a way to make this an option so if a new user doesnt want to fill out the fields then NO default message is posted? Maybe I overlooked something but it appears that default will show if user doesnt do one manually.

H2k 12-30-2004 11:04 AM

Quote:

Originally Posted by ChrisBaktis
I didnt see an answer to my question - is there a way to make this an option so if a new user doesnt want to fill out the fields then NO default message is posted? Maybe I overlooked something but it appears that default will show if user doesnt do one manually.

i get this error when i try to run the installer file any idea ?????

Fatal error: Call to undefined function: print_cp_header() in /home/dreamss/public_html/forums/welcomethread_installer.php on line 13

dcarr 12-30-2004 05:47 PM

I followed all instructions and made sure that any changes were in the right place. My new user's message appears fine, but the Staff Welcome post doesn't show. Is it a time limit issue? Or am I still missing something

tnguy3n 12-30-2004 08:08 PM

@ChrisBaktis: I'll include this option + welcome PM in new version of the mod

@H2k: open welcomethread_installer.php on line 13, comment out //print_cp_header() ... 1st report of error of installer btw.

@dcarr: if the user chooses to create introduction thread, welcome thread by staff won't be created.

dcarr 12-30-2004 09:50 PM

Ahhhh understood...thanks very much.

ChrisBaktis 12-30-2004 11:44 PM

great

folkish 01-05-2005 04:34 AM

/me clicks install.
Nice hack!

joeychgo 01-11-2005 02:23 AM

its a great hack

Rhoads 01-11-2005 07:33 AM

Thnx , Great Hack
Works on vB 3.0.5

Ruffneck 01-13-2005 09:42 PM

Nice it works fine...

DanCan 01-15-2005 04:08 PM

Quote:

Originally Posted by tnguy3n
@ChrisBaktis: I'll include this option + welcome PM in new version of the mod

@H2k: open welcomethread_installer.php on line 13, comment out //print_cp_header() ... 1st report of error of installer btw.

@dcarr: if the user chooses to create introduction thread, welcome thread by staff won't be created.

I still get the error on line 13 after having removed the comment. Line 13 now reads:
('Welcome Thread On Registration', ' ', ' ');

Do I need to fill the ' ' out with something? And I also need to run the welcomethread_installer.php? script, right?

The guide says nothing about this.

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?

DanCan 01-17-2005 08:29 PM

Ups, I was to quick. Sorry, it doesn't work.

Let me try to be more clear about this.

1. I didn't put the welcome_installer.php in the admincp folder. Therefore I couldn't install the hack.

2. Instead I tried to do the hack manually by following this guide:

Quote:

Okie, here's one other instruction on how to install this Welcome Thread on Registration hack. This take a little more longer or you can say "mod in a hard way".

To to this URL: http://yoursite/forum/admincp/option...group_register
located here: http://www.all4a-designs.com/forums/...21.msg22#msg22

3. So I created the 6 varnames in 'user registration options' manually.

4. Now that I have found out how to install the hack, I don't know how to delete the 6 varnames I have created manually.

5. Since I never installed the hack, it evidently doesn't work to uninstall it.

------
BUT something is going on. Tonight we got a new user at 21:56 CET, and I could see that the Forum Staff as I call the welcome_thread_rep had created a post the very same minute. Since the 'Forum Staff' isn't used anywhere else on the board than for the purpose of generating an automatic welcome greeting, the board must have created a welcome greeting.

I obtained the information about a post made by Forum Staff on my Bindex portal, but it is nowhere to be found on the board. Moreover it doesn't have a title and seemingly no content.

I guess the reason is that I have created the 6 varnames + content in the user registration options, but I haven't added them to the phrase manager. Could that be the reason? And if so, what is the phrase type for each of the 6 varnames? Is it global?

Delphiprogrammi 01-20-2005 09:00 AM

hi,

this hack works fine however i'm facing a problem.I'm looged into administrator account and in the forum i assigned to this hack (the forumid) i can't see the ip address of the posters.I can in *all* other forums .I'm not blaming your hack yet but.... if it is this is a serious bug look at the two images below the one where's no computer icon in the postbit template that is from your hack the second image is from another forum (on the same board)

edit

one more image showing my iplogging setting is correc :S why why why the hell ??

tnguy3n 01-21-2005 01:07 PM

@ DanCan: it will delete all phrases, setting regardless to installer or instruction posted on my dev board that you used.

@Delphiprogrammi: thanks for pointing it out. attached is patch for the mod that you can use.
*first post is now updated*

@ChrisBaktis: will be out this weekend. it got pm new user feature and uShop integrated, and admin can set amount of points for users who make new thread at registration.

ChrisBaktis 01-21-2005 02:02 PM

Great - looking forward to using this.

Delphiprogrammi 01-21-2005 02:35 PM

Quote:

Originally Posted by tnguy3n
@Delphiprogrammi: thanks for pointing it out. attached is patch for the mod that you can use.
*first post is now updated*

thanks for updating that working fine now

Bounce 01-21-2005 04:37 PM

I''ve followed the instruction in the V 2.0.0 version but whern I go into User Registration Options its not showing :disappointed:

Bounce 01-21-2005 04:41 PM

CaNCEL THAT I never ran the install script DOH lol

Very nice hack,thanks

tnguy3n 01-25-2005 05:11 AM

Quote:

Originally Posted by ChrisBaktis
Great - looking forward to using this.

:devious:
I got it working on my board now. v3 :tired:

sgtmaj 02-03-2005 02:32 PM

certainly saves me lots of time..............works great. thanx

ChrisBaktis 02-03-2005 09:22 PM

Any word on when you will add the feature so a thread is NOT created unless the new member does one?


All times are GMT. The time now is 04:18 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.01476 seconds
  • Memory Usage 1,841KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (13)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