DF Guild Application w/ Recruitment Block

Dragonfly integration forum

Re: DF Guild Application w/ Recruitment Block

Postby secretone » Wed Sep 19, 2007 8:41 pm

I am sorry too hear about the people that have been ill lately, I hope you
all get better soon.

I have just got this all working :)

I was having real problems with SQL errors to start with and tracked it
down to the fact that when I installed DF it had 2 fields for prefixes for the
database, I think if I remember correctly the defaults where "cms"
and "cmsu".
I have 3 files which are classed as "User" files with a prefix of "cmsu".
I did a quick and dirty fix as shown below.
Original
Code: Select all
" . $prefix . "_users u

Fixed
Code: Select all
" . $prefix . "u_users u


Sorry I can't remember all the files I changed or the line numbers.

If anyone could tell me the proper code to use I will apply that instead.

This is based on the recruitment_module_v2.3.1.2.zip, I am not sure if this
is the latest version or not.

I hope this helps anyone who has had a similar problem.
Image
User avatar
secretone
WR.net Apprentice
WR.net Apprentice
 
Posts: 62
Joined: Wed Feb 28, 2007 6:33 pm
Location: Kent, UK

DF Guild Application w/ Recruitment Block

Postby sdragongm » Fri Oct 05, 2007 2:59 am

Been fighting with this for a few days LOL. Has anyone here had a problem with the application finishing fine...but a post is nowhere to be found?

I really can't expand too much on that, that pretty much covers it, I am getting no error, and yet there is no post at all.

SDR
sdragongm
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Fri Oct 05, 2007 2:38 am

DF Guild Application w/ Recruitment Block

Postby sdragongm » Fri Oct 05, 2007 3:41 am

Due to an odd occurance in my DB and the way I installed (which I am oddly reluctant to change for fear of it breaking again, I have tracked the error to the following thing.

The functions push the post to the cms_fpro_ db entries.
what I need it to do is push to the cms_forums_ db entries.

This should be fairly easy to do, and yet i cannot seem to find that direct little function that changes that little bit. Can anyone be of assistance?

SDR
sdragongm
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Fri Oct 05, 2007 2:38 am

DF Guild Application w/ Recruitment Block

Postby sdragongm » Sat Oct 06, 2007 1:09 pm

Nevermind, was easy enough to rollback the forumspro install and redo, everything works fine now, am searching through the files now on how to edit some parts of the forms. Thanks, is one heck of a module.
sdragongm
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Fri Oct 05, 2007 2:38 am

DF Guild Application w/ Recruitment Block

Postby Pugro » Thu Oct 11, 2007 11:17 pm

Just a quick (but huge) thanks to all that have been working on this.

Very sorry to hear of the problems that some of the devs have had recently and that things pick for you in the near future.

My site has recently been PLAGUED with spam posts as we have to have an open recruitment forum for people to apply for membership of the guild. The Dragonfly people seem utterly unconvinced of a need to strip out the bots with a CAPATCHA on guests posts and the IP Flooding functionality just does not work with the current release.

Anyway, all my guild member are very greateful of this module as it seems we only get new post spam and not "reply spam" so we can use this to insert new apps and have the guests reply to any questions raised.

I had to sort a few things out...

I've updated it to post to normal forums and not the ForumsPro module as I had all kinds of issues with that, the upgrade screwed up permissions and I'm not convinced on the support on the ForumsPro site, posts go for ages without replies :(

There was an issue with the realms on the setup screen, the php that outputs the realm names needed an extra space in the HTML so that all options were output (and not only 4 or so realms)

There seems to be some missing escaping of user inputs so in the php file that accepts the data and escapes some of the data I've added all the input fields to it as the SQL call treats all the data as string when passing to the MySQL DB which means someone could make a fake page post dodgy data. I've got some data escaped twice, but I'm not worried about that.

Once again, thanks for a superb module that I'm sure will get lots of use in the near future!

Pugs_
--------------------------------
Pugro_
Ice and Trinity Guilds, Nordrassil, EU PvE
www.iceguild.org.uk, www.trinityguild.net
Image
Pugro
WR.net Journeyman
WR.net Journeyman
 
Posts: 79
Joined: Fri Jul 07, 2006 2:14 pm
Location: London, UK

Re: DF Guild Application w/ Recruitment Block

Postby sdragongm » Wed Oct 17, 2007 1:41 am

I had some minor issues with this. I think the most annoying was that when a person chose a class, their requirements would not adjust accordingly, this was due to the way the sections were adjusted. If all the requirements were default (none) then they all showed correctly. If the were filled out with a few requirements each the format was all but destroyed. If anyone else was having this problem...the code below replaced in the request_form.php file did wonders. search through the code in any php editor...heck even notepad. Below is a full code replacement for that section, though the modifications are easy to change without a full cut and paste.

Code: Select all

<script type="text/javascript"><!--

// function switchDiv()
//  this function takes the id of a div
//  and calls the other functions required
//  to show that div
//

function switchDiv()
{
   var div_id = document.getElementById('class').value;
   var style_sheet = getStyleObject(div_id);
  if (style_sheet)
  {
    hideAll();
    changeObjectVisibility(div_id,"visible","inline");
  }
  else
  {
    alert("sorry, this only works in browsers that do Dynamic HTML");
  }
}

// function hideAll()
//  hides a bunch of divs
//
function hideAll()
{
   changeObjectVisibility("1","hidden","none");
   changeObjectVisibility("2","hidden","none");
   changeObjectVisibility("3","hidden","none");
   changeObjectVisibility("4","hidden","none");
   changeObjectVisibility("5","hidden","none");
   changeObjectVisibility("6","hidden","none");
   changeObjectVisibility("7","hidden","none");
   changeObjectVisibility("8","hidden","none");
   changeObjectVisibility("9","hidden","none");
   changeObjectVisibility("10","hidden","none");}

// function getStyleObject(string) -> returns style object
//  given a string containing the id of an object
//  the function returns the stylesheet of that object
//  or false if it can't find a stylesheet.  Handles
//  cross-browser compatibility issues.
//
function getStyleObject(objectId) {
  // checkW3C DOM, then MSIE 4, then NN 4.
  //
  if(document.getElementById && document.getElementById(objectId)) {
   return document.getElementById(objectId).style;
   }
   else if (document.all && document.all(objectId)) { 
   return document.all(objectId).style;
   }
   else if (document.layers && document.layers[objectId]) {
   return document.layers[objectId];
   } else {
   return false;
   }
}

function changeObjectVisibility(objectId, newVisibility, newDisplay) {
    // first get a reference to the cross-browser style object
    // and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
   styleObject.visibility = newVisibility;
   styleObject.display = newDisplay;
   return true;
    } else {
   // we couldn't find the object, so we can't change its visibility
   return false;
    }
}
// -->
</script>


What that section does is not only change the display type to hidden or visible, but also inline or none. Thus formating issues become moot because the object is not only hidden, it simply is not inline.

the next code change requires a change in the line creating each section, this is very easy to do by searching for <!--Warrior Specif Questions Start --> and then adjusting each section. The lines you are looking for are the <span> lines...you want to change each to the following:

Code: Select all
<span id="1" style="position:relative;display:none;visibility:hidden;top:4px;left:4px;">


the two changes here are the addition of display:none; and changing left:#px to left:4px in all cases.

I'm not sure if thuis is a necessary bit of code for anyone but it really did clean up the format for my own implementation by a bit.

Thanks guys for all the effort you are putting into this.

SDR
Last edited by sdragongm on Wed Oct 17, 2007 1:44 am, edited 2 times in total.
sdragongm
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Fri Oct 05, 2007 2:38 am

Re: DF Guild Application w/ Recruitment Block

Postby Weeladdie » Thu Nov 08, 2007 1:23 am

Great mod...fanastic work!

Is there anyway to add the functionality to automatically create a forum Poll when the application is posted to allow Guild Officers to vote?
User avatar
Weeladdie
WR.net Apprentice
WR.net Apprentice
 
Posts: 12
Joined: Tue Jul 04, 2006 1:48 pm

Re: DF Guild Application w/ Recruitment Block

Postby Dreadan » Mon Feb 25, 2008 12:09 am

Is there anyone with plans to take this project over and fix the bugs that are in it? It's a great module but some of the bugs are annoying :roll:
My luck is so bad that I could fall into a barrell of boobs and come out sucking my thumb.
"Smith & Wesson the originators of the point and click interface"
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

DF Guild Application w/ Recruitment Block

Postby bbj911 » Mon Feb 25, 2008 3:26 pm

Where can i get the latest and greatest up-to-datetest version please ?
User avatar
bbj911
WR.net Apprentice
WR.net Apprentice
 
Posts: 61
Joined: Mon Oct 23, 2006 6:47 pm

Re: DF Guild Application w/ Recruitment Block

Postby Dreadan » Mon Feb 25, 2008 9:43 pm

I think razac's profile has the latest one

http://www.wowroster.net/Your_Account/profile=4618.html
My luck is so bad that I could fall into a barrell of boobs and come out sucking my thumb.
"Smith & Wesson the originators of the point and click interface"
Dreadan
WR.net Apprentice
WR.net Apprentice
 
Posts: 50
Joined: Tue Jul 04, 2006 7:42 pm

DF Guild Application w/ Recruitment Block

Postby quarum » Tue Feb 26, 2008 6:24 am

I am looking to switch from phpBB Plus to DF. I have been playing with DF 9.2.1 and have a few questions.

It appears that ForumsPro is not available at this time for the current DF 9.2.1.

Is there any chance of a version of this mod that will work with 9.2.1 that has the standard forums installed and not ForumsPro?
User avatar
quarum
WR.net Apprentice
WR.net Apprentice
 
Posts: 42
Joined: Tue Dec 19, 2006 5:36 am
Location: Midwest

DF Guild Application w/ Recruitment Block

Postby Anaxent » Tue Feb 26, 2008 8:48 am

Go ahead and install it I wanna say this version was made to allow the use of forums or even forums pro if not let me know I will look at the module and see what it would take to add the functionality as it shouldn't be hard. I would also maybe look into using ForumsPro as it does have alot of neat features like subwebs.
Last edited by Anaxent on Tue Feb 26, 2008 8:49 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 quarum » Tue Feb 26, 2008 10:29 am

I will install and let you know - as for ForumsPro there is not a version our yet for 9.2.1 :(
User avatar
quarum
WR.net Apprentice
WR.net Apprentice
 
Posts: 42
Joined: Tue Dec 19, 2006 5:36 am
Location: Midwest

DF Guild Application w/ Recruitment Block

Postby quarum » Tue Feb 26, 2008 11:55 am

It does not work without ForumsPro - anyone know if there is a ForumsPro out for 9.2.1?
User avatar
quarum
WR.net Apprentice
WR.net Apprentice
 
Posts: 42
Joined: Tue Dec 19, 2006 5:36 am
Location: Midwest

DF Guild Application w/ Recruitment Block

Postby Anaxent » Tue Feb 26, 2008 12:01 pm

We here have upgraded our site to 9.2 over the weekend and use forumspro and as you can see all is working pretty well. Granted I will still look into adding regular forums posting with this module as I just downloaded it today again since a very long time ago made a few minor changes, but noticed that the functions_post is all out of wack...
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az

PreviousNext

Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron