Application form

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

Will this MOD work for guest users (?) It be nice if new users could apply to join the forum using your form system, can this be done if not what can be added for this to work?

My thanks in advance :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
hamlat
Registered User
Posts: 18
Joined: Fri Dec 26, 2008 12:18 pm

Re: Application form

Post by hamlat »

Thanks for the Mod .. it's exactly what i was looking for.... I'm just havesimg some problems when someone tries to submit his/her application, i get that error message :

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1622: Missing argument 7 for submit_post()

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/r/i/friedis/html/...../forums/includes/functions.php:3288) in /home/content/f/r/i/friedis/html/...../forums/includes/functions.php on line 3955

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/r/i/friedis/html/...../forums/includes/functions.php:3288) in /home/content/f/r/i/friedis/html/...../forums/includes/functions.php on line 3957

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/r/i/friedis/html/...../forums/includes/functions.php:3288) in /home/content/f/r/i/friedis/html/...../forums/includes/functions.php on line 3958

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/r/i/friedis/html/...../forums/includes/functions.php:3288) in /home/content/f/r/i/friedis/html/...../forums/includes/functions.php on line 3959
When i checked functions_posting.php and functions.php, here are the lines that have been mentioned above.

For the functions_posting.php file :

Code: Select all

function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $survey_data, $update_message = true)
For the functions.php file :

Code: Select all

	header('Content-type: text/html; charset=UTF-8');

	header('Cache-Control: private, no-cache="set-cookie"');
	header('Expires: 0');
	header('Pragma: no-cache');
COuld you tell me what i've to do to fix that small glitch ??? Thanks in advance for you help and again great Mod !!!! *thumbsup*
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

I went aheadand installed your mod but sadly I get this error message when I click submit on the form

Code: Select all

phpBB Debug] PHP Notice: in file /includes/functions_posting.php on line 1585: Missing argument 7 for submit_post(), called in /application.php on line 69 and defined

Return to the index page 
General Error
SQL ERROR [ mysql4 ]

Column 'forum_id' cannot be null [1048]

SQL

INSERT INTO phpbb_topics (topic_poster, topic_time, forum_id, icon_id, topic_approved, topic_title, topic_first_poster_name, topic_first_poster_colour, topic_type, topic_time_limit, topic_attachment) VALUES (2, 1250443254, NULL, NULL, 1, 'Application from Forum Master', 'Forum Master', 'AA0000', '', 0, 0)

BACKTRACE


FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1865
CALL: dbal_mysql->sql_query()

FILE: application.php
LINE: 69
CALL: submit_post()

Any ideas? Thanks in advance
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
Metzle
Registered User
Posts: 113
Joined: Sat Mar 15, 2008 2:55 am
Location: Waiblingen-Neustadt (Germany)
Name: Daniel
Contact:

Re: Application form

Post by Metzle »

Hi Valace,

did you change the forum_id in the file application.php which is mentioned in the DIY-instructions?
Metzle
phpBB.de-Support-Team
No Support via PN/E-Mail/ICQ etc.
Allround-phpBB.de
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

Metzle wrote:Hi Valace,

did you change the forum_id in the file application.php which is mentioned in the DIY-instructions?
Yes if have. I'v even double checked it because this is what the error message appears to be saying to me also.

root/application.php

Code: Select all

// Let's set the configuration, this is the ID of the forum where the post goes to
$forumid_send = 2;
and replaced it to

root/application.php

Code: Select all

// Let's set the configuration, this is the ID of the forum where the post goes to
$forumid_send = 222;
I take it there is no where else?
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7817
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

For everyone having the "missing argument 7 for submit_post" error.

Open: application.php
Find:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data); 
Replace with:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data, ''); 
Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

JimA wrote:For everyone having the "missing argument 7 for submit_post" error.

Open: application.php
Find:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data); 
Replace with:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data, ''); 
I now get this error message now I'v added that

Code: Select all

Fatal error: Cannot pass parameter 7 by reference in /home/valace/public_html/forum/application.php on line 69
thanks for your help and fast responce :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
hamlat
Registered User
Posts: 18
Joined: Fri Dec 26, 2008 12:18 pm

Re: Application form

Post by hamlat »

JimA wrote:For everyone having the "missing argument 7 for submit_post" error.

Open: application.php
Find:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data); 
Replace with:

Code: Select all

submit_post('post', $apply_subject, '', POST_NORMAL, $poll, $data, ''); 
Thanks, it worked like a charm; now i can finally use it ... thanks again JimA :D
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7817
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

Valace, you've got a different issue. Apparently, your submit_post function has been edited by some other MOD adding the variable $survey_data. That one is not there in a default phpBB installation.

This MOD is using submit_post and it doesn't work because the function has been modified.
Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

Well I have got one or two other MODs but not many and they only basic features. I never editted the files you have said to edit. I would be most greatfull if you have any other suggestions please :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7817
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

Oops, I was looking at the post from hamlat.

It might be an issue with the code still, do you mind sending me a PM with the link of your board and a FTP account so I can have a look myself?
Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

Special thanks for your help once again and I'v sent you request details :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7817
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Application form

Post by JimA »

Okay, my previous post was half right. The variable added at your board was $mood.

Code: Select all

function submit_post($mode, $subject, $mood, $username, $topic_type, &$poll, &$data, $update_message = true)
That's why the MOD is not working correctly. The order of the variables is not right anymore, and one of them is missing now. I'll have a look at this, and try to solve the conflict. :)

EDIT -- Made some changes to your application.php file, problem solved.
Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: Application form

Post by Valace »

Thank you SO MUCH!!! :)

Sorry to be a bother, but is there a way so a none register member could log in and use the forum please? My main idea for this MOD is to allow new users to apply to join the forum?

thank you once again :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
antagonia
Registered User
Posts: 12
Joined: Thu Dec 25, 2008 8:43 am

Re: Application form

Post by antagonia »

I am looking for the same functionality as Valace-- I would like guest users to be able to send in an application.

Someone in the other threat from before this mod was officlally approved recommended commenting out these lines:

Code: Select all

if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN_APPLICATION_FORM']);
}
Which gets rid of the warning but does not actually post the posts to the correct forum.
Locked

Return to “[3.0.x] MOD Database Releases”