DF Guild Application w/ Recruitment Block

Dragonfly integration forum

DF Guild Application w/ Recruitment Block

Postby robojerk » Sat May 05, 2007 6:05 am

Well, here is my fixed Application/admin/index.inc file. Solves the problem I was having. all the other files seem jacked up too for some reason.

http://wowroster.net/Forums/viewtopic/p ... html#20977
Last edited by robojerk on Sat May 05, 2007 6:05 am, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF Guild Application w/ Recruitment Block

Postby robojerk » Sat May 05, 2007 9:10 am

All right, I just got home and installed it on my production server and except for the installer Razac's version works fine. My alterered index.inc seems to work just as good as soooo.....

/shrug
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF Guild Application w/ Recruitment Block

Postby Equisetum » Sat May 05, 2007 10:09 am

After the $prefix install issue, I've had no problems. Seems to be working perfectly. I don't get a dropdown admin issue like the one you explained, Robo.

As for the mail issue, I did a test run by applying, but didn't get an email. I haven't isolated any problem with it yet, though... could just be me. I'll post later.
Image
User avatar
Equisetum
WR.net Apprentice
WR.net Apprentice
 
Posts: 65
Joined: Mon Jul 24, 2006 6:44 am

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sat May 05, 2007 12:59 pm

Ok I have installed the module and after the edits to the prefix so far all is going well. I would like to hide the real name and email address from the forum post and only make it avaliable via the email recipant and the database.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sat May 05, 2007 1:03 pm

I just found a sql error on the Recruitment Settings page when logged in as an admin
Code: Select all
there was a problem saving the data to the database. Please check the syntax of your sql commandSELECT u.username, u.user_id FROM cms_bbgroups g, nuke_bbuser_group ug, nuke_users u WHERE ug.group_id = '4' AND g.group_id = ug.group_id AND ug.user_pending = '0' AND u.user_id = ug.user_id ORDER BY u.username


From what I can tell it is looking for a nuke prefix after a quick check in the files im not seeing where it is getting this prefix. I will try to look at this again tomorrow though.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sat May 05, 2007 1:24 pm

ok I figured it out it is in the block-Recruitment.php

line 276
is
Code: Select all
$sql = "SELECT u.username, u.user_id
                FROM " . $prefix . "_bbgroups g, nuke_bbuser_group ug, nuke_users u
                WHERE ug.group_id = '$grpID'
                        AND g.group_id = ug.group_id
                        AND ug.user_pending = '0'
                        AND u.user_id = ug.user_id
                ORDER BY u.username";


needs to be
Code: Select all
$sql = "SELECT u.username, u.user_id
                FROM " . $prefix . "_bbgroups g, " . $prefix . "_bbuser_group ug, " . $prefix . "_users u
                WHERE ug.group_id = '$grpID'
                        AND g.group_id = ug.group_id
                        AND ug.user_pending = '0'
                        AND u.user_id = ug.user_id
                ORDER BY u.username";
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby robojerk » Sat May 05, 2007 5:13 pm

The block is still giving me nasty errors..

Here's some bit of code to put at in the top of the block code to make it less lethal when it decides to break the site..

Code: Select all
//    Prevents some errors.
    
if (!defined('CPG_NUKE')) { exit; }
    
$blk_basename 'block-Recruitment';
    
$blk_filename basename(__FILE__);
    
$mod_basename 'Recruitment_Settings';

    
$matches = array();
    if (
preg_match("/^{$blk_basename}(?:_(\d+))?\.php$/"$blk_filename$matches)) {
        
$suffix = (empty($matches[1])) ? '' "_{$matches[1]}";
        
$mod_dirname $mod_basename.$suffix;
    } else {
        
$content 'ERROR';
        return 
trigger_error("The block filename, <nobr>\"{$blk_filename}\"</nobr>, does not follow the expected instantation syntax of <nobr>\"{$blk_basename}[_<i><integer></i>].php\"</nobr>."E_USER_WARNING);
    }

    
// REQUIRED: $mod_dirname
    // REQUIRED: $suffix
    // *********************************************************************


    
if (empty($mod_dirname) || !file_exists(CORE_PATH."../modules/{$mod_dirname}")) {
        
$content 'ERROR';
        return 
trigger_error('The expected module directory'.((empty($mod_dirname)) ? '' ", \"{$mod_dirname}\",").' does not exist.'E_USER_WARNING);
    }

    if (!
is_active($mod_dirname)) {
        
$content 'ERROR';
        return 
trigger_error("The {$mod_dirname} module is inactive."E_USER_WARNING);
    }
//  ***  End of checking for Recruitment_Settings module. 
Last edited by robojerk on Sat May 05, 2007 5:27 pm, edited 2 times in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: DF Guild Application w/ Recruitment Block

Postby robojerk » Sat May 05, 2007 5:27 pm

Found my error.. It's cause I renamed my WoWRosterDF module to just Roster.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF Guild Application w/ Recruitment Block

Postby robojerk » Sat May 05, 2007 6:22 pm

Any way to hide the Application&file=admin from public view???
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sun May 06, 2007 12:33 am

I bet we could add the is_group() to the admin part of the application &file=admin.
Last edited by Anaxent on Sun May 06, 2007 1:41 am, edited 1 time in total.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sun May 06, 2007 1:04 am

I was also thinking I really like the idea here with the applications being added to a db table for viewing by the group. At this point we should implement the user registration and have a new button next to the the applicante to aprove them to the site. I was also thinking the Application&file=admin should also sort the applicants by there class to make it easier for the group to find and aprove there new user.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

Re: DF Guild Application w/ Recruitment Block

Postby Anaxent » Sun May 06, 2007 3:10 am

I have updated the current version of the application module for leo compatibility and added robojerk code to the blocks along with fixing the cpg_inst.php file for install.
Last edited by Anaxent on Sun May 06, 2007 9:23 am, edited 1 time in total.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby Equisetum » Sun May 06, 2007 9:14 am

I like the changes!

Seems to be working well so far, but when looking at the applications from "View Applications" link and clicking on an applicant's name, I get the following error at the top of the screen:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/httpd/vhosts/rage-and-mana.com/subdomains/wow/httpdocs/modules/Application/viewapp.php on line 151


I'll look around myself... I'm actually learning quite a bit about this php stuff! lol

Any suggestions? You guys getting the same error?

~Eq
Image
User avatar
Equisetum
WR.net Apprentice
WR.net Apprentice
 
Posts: 65
Joined: Mon Jul 24, 2006 6:44 am

DF Guild Application w/ Recruitment Block

Postby Anaxent » Sun May 06, 2007 9:18 am

Yes I just recieved that error my self I will post the fixed files in a few.

edit:
Here are the updated files to fix the above errors
Attachments
application.zip
Leo compatiable
Fixed the / in appview
fixed the link on index to index2
(51.62 KiB) Downloaded 315 times
Last edited by Anaxent on Sun May 06, 2007 9:25 am, edited 2 times in total.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

DF Guild Application w/ Recruitment Block

Postby Razac » Sun May 06, 2007 10:44 am

where is the full version you posted Anex.. I want to make sure I have the latest version to work on..

yeah the approve was gonna be in the next version. :) jsut wanted to get the bulk of it done so my guild can start using it again...
Razac
WR.net Journeyman
WR.net Journeyman
 
Posts: 145
Joined: Thu Jul 27, 2006 6:00 pm

PreviousNext

Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron