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.


All times are GMT. The time now is 06:46 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.01243 seconds
  • Memory Usage 1,740KB
  • 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
  • (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