Guild Recruitment and Application Block 2.0

phpNuke integration forum

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Tue Jun 12, 2007 2:35 am

BTW, another correction I missed in the updated file is in admin/modules/application.php on line 306
Code: Select all
$array = array(array('id' => "email"'name' => "E-mail"), 'selected' => true); 

should be
Code: Select all
$array = array(array('id' => "email"'name' => "E-mail"'selected' => true)); 
Last edited by natbur on Tue Jun 12, 2007 2:35 am, edited 1 time in total.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Guild Recruitment and Application Block 2.0

Postby Ymryl » Tue Jun 12, 2007 2:37 am

Are you setting a poster id? Perhaps a selectable account in the admin area? I created a new member called "Application" (original, I know) but I'm not seeing the post count increment when running this (strange).
User avatar
Ymryl
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Mon Jul 17, 2006 11:45 pm
Location: RI, USA

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Tue Jun 12, 2007 2:40 am

Ymryl wrote:Are you setting a poster id? Perhaps a selectable account in the admin area? I created a new member called "Application" (original, I know) but I'm not seeing the post count increment when running this (strange).

Poster ID is currently hardcoded as 1(Anonymous). It wouldn't be difficult to add it as an option. For the moment, if you want to change it, it's on line 505 col 153 right after '$post_subject'

The post count incriment is indeed strange, I'll see what I can do about that.
Last edited by natbur on Tue Jun 12, 2007 2:41 am, edited 1 time in total.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Guild Recruitment and Application Block 2.0

Postby natbur » Tue Jun 12, 2007 2:42 am

So...my poll doesn't work yet, /sigh
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Guild Recruitment and Application Block 2.0

Postby Ymryl » Tue Jun 12, 2007 2:44 am

I should clarify that I am not seeing it increment with the code I added to my confirm.php file, not with your stuff. Did you get your stuff running on PHP4 already? If so, I'll modify my existing stuff to run as a different module and block so I can add yours and test.
User avatar
Ymryl
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Mon Jul 17, 2006 11:45 pm
Location: RI, USA

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Tue Jun 12, 2007 2:46 am

Ymryl wrote:I should clarify that I am not seeing it increment with the code I added to my confirm.php file, not with your stuff. Did you get your stuff running on PHP4 already? If so, I'll modify my existing stuff to run as a different module and block so I can add yours and test.


The majority of the php4 compatibility problems come from the checking of missing values. Currently I use a foreach that passes a reference, eg:
Code: Select all
//User info
foreach($UserData as &$user)
    if(
$user['required'] == && $user['text'] == "")
    {
        
$user['missing'] = 1;
        
$missing++;
    } 

Unfortunately, php4 doesn't allow that. I'll need to redo all of my missing value checks to get php4 compatibility.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Tue Jun 12, 2007 4:20 am

I've updated the module with the new options you suggested, and uploaded the new version in the downloads. Also fixed the problem of the forums numbers not getting updated when a new app is submitted.
Last edited by natbur on Tue Jun 12, 2007 1:32 pm, edited 1 time in total.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Guild Recruitment and Application Block 2.0

Postby lotard » Tue Jun 12, 2007 7:38 pm

hy
it's graet module
but i'have z problem when i want submit an application http://www.ledg.org/modules.php?name=Ap ... le=confirm
lotard
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Mon Mar 05, 2007 4:42 pm

Guild Recruitment and Application Block 2.0

Postby mash25 » Tue Jun 12, 2007 9:47 pm

hi, great mod. I had some issues early on with the Application admin page not even showing up. I got around that and everything seems good. Until you hit submit! The sumbit button seems to do nothing. Ive tried email and forum settings. Is there any code i can add to fix this. thank you
mash25
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Tue Jun 12, 2007 9:45 pm

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Wed Jun 13, 2007 9:12 am

lotard wrote:hy
it's graet module
but i'have z problem when i want submit an application http://www.ledg.org/modules.php?name=Ap ... le=confirm

When I click on that, i get a module is not active error, is that the problem you're talking about?
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Wed Jun 13, 2007 9:12 am

mash25 wrote:hi, great mod. I had some issues early on with the Application admin page not even showing up. I got around that and everything seems good. Until you hit submit! The sumbit button seems to do nothing. Ive tried email and forum settings. Is there any code i can add to fix this. thank you

What was it that you had to do to get the admin page to show up? Do you get any errors when you hit submit, or does it just go back to the same page?
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Re: Guild Recruitment and Application Block 2.0

Postby Orthon » Wed Jun 13, 2007 2:41 pm

after submitting application i get this error

Fatal error: Cannot redeclare validate_mail() (previously declared in /home/****/*****/****/mainfile.php:1440) in /home/****/*****/*****/modules/Application/validateEmailFormat.php on line 69

thanks for any help
Orthon
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Sun May 27, 2007 7:15 am

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Wed Jun 13, 2007 2:47 pm

Orthon wrote:after submitting application i get this error

Fatal error: Cannot redeclare validate_mail() (previously declared in /home/****/*****/****/mainfile.php:1440) in /home/****/*****/*****/modules/Application/validateEmailFormat.php on line 69

thanks for any help

When I get to work tomorrow, i'll add a check to orevent it from redeclaring validate_mail(), if you check back in seven hours or so, i should have that done.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

Re: Guild Recruitment and Application Block 2.0

Postby lotard » Wed Jun 13, 2007 4:58 pm

natbur wrote:
lotard wrote:hy
it's graet module
but i'have z problem when i want submit an application http://www.ledg.org/modules.php?name=Ap ... le=confirm

When I click on that, i get a module is not active error, is that the problem you're talking about?


No i've just desactivate it for test, but wehn i click on submit i've juste a blank page
lotard
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Mon Mar 05, 2007 4:42 pm

Re: Guild Recruitment and Application Block 2.0

Postby natbur » Wed Jun 13, 2007 7:55 pm

lotard wrote:
natbur wrote:
lotard wrote:hy
it's graet module
but i'have z problem when i want submit an application http://www.ledg.org/modules.php?name=Ap ... le=confirm

When I click on that, i get a module is not active error, is that the problem you're talking about?


No i've just desactivate it for test, but wehn i click on submit i've juste a blank page

Can you turn on display_errors (in PHPnuke's config file) and try it again. Blank pages generally mean that a required file failed to load, and that should tell you which one. Be sure to turn it back off as soon as you get the filename.
User avatar
natbur
WR.net Apprentice
WR.net Apprentice
 
Posts: 72
Joined: Fri Apr 13, 2007 12:52 pm
Location: Texas

PreviousNext

Return to phpNuke

Who is online

Users browsing this forum: No registered users and 1 guest

cron