View Full Version : Miscellaneous Hacks - World of Warcraft Class Recruitment Status module (db backend)
turnipofdoom
01-26-2007, 10:00 PM
This mod is no longer supported it has been rewritten.
The new mod is available here:
https://vborg.vbsupport.ru/showthread.php?t=150449
turnipofdoom
01-27-2007, 07:04 PM
***reserved***
Ntfu2
01-28-2007, 02:55 AM
awesome, would love to see more WoW hacks released for sure!
jim6763nva
01-29-2007, 03:12 PM
I second that.. I'll have to install this later when I get home. Nice job!
Jim
turnipofdoom
01-30-2007, 01:05 PM
Thanks! I also created one for Everquest 2 as well. Glad you like it!
kuromeru
01-30-2007, 05:18 PM
Have a link to the EQ2 version?
turnipofdoom
01-30-2007, 06:31 PM
I'll clean up the code and remove some of the site-specific things after work, I will try to get it posted here sometime this evening if I can. :)
Haven't been able to get this to work.
Fatal error: Call to a member function query_read() on a non-object in /forums/modules/class_recruit.php on line 31
Anyone else able to get it to work?
turnipofdoom
02-01-2007, 10:02 PM
Haven't been able to get this to work.
Fatal error: Call to a member function query_read() on a non-object in /forums/modules/class_recruit.php on line 31
Anyone else able to get it to work?
What version of VB are you using ?
Did you use the included example files or write your own forms ?
What version of php ?
Did you populate the database with base data before running it ?
What version of VB are you using ?
Did you use the included example files or write your own forms ?
What version of php ?
Did you populate the database with base data before running it ?
vBulletin Version 3.6.4
PHP 4.4.4
The database was pre-populated using the provided script (well cut and past the create and insert lines thus the recruitment table is in the forums database).
I dropped class_recruit.php and recruitStatus.php into the modules directory. Added a php module in CMPS, file to include: recruitStatus.php, no parent, no clean file output.
If I call the module directly I still get
Recruitment
Druid:
Fatal error: Call to a member function fetch_array() on a non-object in /<snippath>/forums/modules/class_recruit.php on line 31
Though maybe the sql was dying (and thus not returning an array). Tried it by hand
mysql> select status from recruitment where class = 'Druid';
+--------+
| status |
+--------+
| Closed |
+--------+
1 row in set (0.00 sec)
mysql> select status from recruitment;
+--------+
| status |
+--------+
| Closed |
| Closed |
| Closed |
| Closed |
| Closed |
| Closed |
| Closed |
| Closed |
| Closed |
+--------+
9 rows in set (0.01 sec)
Seems to work fine. Not sure what's going on. Perhaps I'm setting up the module wrong in CMPS?
turnipofdoom
02-02-2007, 11:18 AM
Ahh right on, I will update the package tonight but to fix it change
private $vbObj;
to
var $vbObj;
private is not supported until php5..
Ahh right on, I will update the package tonight but to fix it change
private $vbObj;
to
var $vbObj;
private is not supported until php5..
Upgraded to PHP 5.1.2. Tried it both ways and still get the same error.
Some follow up troubleshooting:
Broke down the query line into two parts to find out which was failing:
31: $temp = $this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" );
32: $result = $this->vbObj->db->fetch_array( $temp );
Failed at line 31 still (Fatal error: Call to a member function query_read() on a non-object)
So thinking vbObj is borked I put in
if ($this->vbObj == null) print ( "vbObj = null");
.. and got:
Recruitment
Druid: vbObj = null
Fatal error: Call to a member function query_read() on a non-object
So yeah I'm guessing the constructor didn't get called (?) or didn't return a valid object. So checking that I put in:
if ($this->vbObj == null) print ( "vbObj = null");
global $vbulletin;
$vbObj = $vbulletin;
if ($vbObj == null) print ( "vbObj2 = null");
if ($vbulletin == null) print ( "vbulletin = null");
.. which gives me
vbObj = null
vbObj2 = null
vbulletin = null
So the problem is with the constructor not returning a valid object. Trying to figure that one out now.
turnipofdoom
02-02-2007, 05:57 PM
right, ima dumbass __construct is only valid in php5...
change
function __construct()......
to
function recruit()
and that "should" solve the lack of compatability i coded into it ;p
turnipofdoom
02-02-2007, 06:18 PM
Please click installed. <3
right, ima dumbass __construct is only valid in php5...
change
function __construct()......
to
function recruit()
and that "should" solve the lack of compatability i coded into it ;p
BTW, see above. I upgraded to PHP 5.1.2. I confirmed the constructor is being called now by doing the following:
class recruit {
private $vbObj;
private $init=0;
public function __construct()
{
global $vbulletin;
$this->vbObj = $vbulletin;
$this->init = 1;
return $this->vbObj;
}
function getStatus( $query )
{
print ( "Init = $this->init" );
$result = $this->vbObj->db->fetch_array( $this->vbObj->db->quer$
return strip_tags( $result['status'] );
}
After recruitStatus.php does $class = new recruit() and then calls $class->getStatus(), Init prints out that it is indeed a 1. Changed the code again to
class recruit {
private $vbObj;
private $init=0;
private $vbOnullcheck=0;
public function __construct()
{
global $vbulletin;
$this->vbObj = $vbulletin;
$this->init = 1;
if ($this->vbObj == null) $this->vbOnullcheck=1;
return $this->vbObj;
}
function getStatus( $query )
{
print ( "<br>Init = $this->init<br>vbOnull = $this->vbOnullchec$
$result = $this->vbObj->db->fetch_array( $this->vbObj->db->quer$
return strip_tags( $result['status'] );
}
which confirms that vbObj is still null, even though the constructor is called.
So why does this
global $vbulletin;
$this->vbObj = $vbulletin;
give a null object? I'm not a vbcode expert so I'm really not sure.
turnipofdoom
02-02-2007, 10:54 PM
Ok... I missed that you updated to php5. There are a couple options ill leave you with.
I can rewrite a portion of it, and discard the built in vbulletin queries (the global object).
I cannot reproduce the error, I would need some form of shell access to your site (i dont expect this, but i admit im curious on the error, would need vi class_recruit.php edit access lol). and a test page to work with.
In order to get a $vbulletin object to instance, you need to include EXAMPLE.recruitStatus.php in the CMPS as a module.
On the page (VBCMPS page) you are displaying this on you can set Portal Output Global Variables : vbulletin (with out the $).
oh now that i think about you could try.
$this->vbObj = clone $vbulletin;
or
$this->vbObj =& $vbulletin;
in __construct()
but I have a feeling its not a constructor issue but just global $vbulletin is not instantiating the object. And that, sadly I don't think I can troubleshoot with out being able to reproduce it. (I am by no means a vb expert)
Be happy to fix it and just use the mysql_xxx stuff if you like..
I'd be interested to know if the 3 ppl that clicked install had this issue and never bothered to come back or if it worked.
NightPhoenix
02-11-2007, 06:19 AM
I'm having similar issues.
I have PHP5
Line 19 of class_recruit.php (didn't save the error)
Line 19 of EXAMPLE.edit_recruit.php (Fatal error: Call to a member function on a non-object modules/EXAMPLE.edit_recruit.php
turnipofdoom
02-12-2007, 02:21 PM
typo on line 19 of EXAMPLE.edit_recruit.php
the offending line is
$class->getStatus('Druid');
change it to
$data->getStatus( 'Druid' );
line 19 of class_recruit.php is
private $vbObj;
private is a php5 keyword, try changing it to
var $vbObj;
and see if that fixes it.
NightPhoenix
02-13-2007, 04:10 AM
Also, this part of the SQL is giving me errors (the red part):
CREATE TABLE `recruitment` (
`Class` varchar(15) NOT NULL default '',
`Status` varchar(15) NOT NULL default '',
PRIMARY KEY (`Class`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
I removed it and it went in fine.
I am reinstalling the rest right now to see how it works.
NightPhoenix
02-13-2007, 04:27 AM
Fatal error: Call to a member function on a non-object
Line 31 of class_recruit.php
turnipofdoom
02-13-2007, 02:55 PM
Well Line 31 is blank in my file so here.
for php5 and only 5.
<?php
/*================================================= =====================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 1/27/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*================================================ =======================*/
class recruit {
private $vbObj;
function __construct()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function getStatus( $query )
{
$result = $this->vbObj->db->fetch_array(
$this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" ) );
return strip_tags( $result['status'] );
}
function setStatus( $druid,
$hunter,
$mage,
$paladin,
$priest,
$rogue,
$shaman,
$warlock,
$warrior )
{
$classes = array(
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Hunter' => $this->vbObj->db->escape_string( strip_tags( $hunter, '<b>' ) ),
'Mage' => $this->vbObj->db->escape_string( strip_tags( $mage, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'Priest' => $this->vbObj->db->escape_string( strip_tags( $priest, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>') ),
'Shaman' => $this->vbObj->db->escape_string( strip_tags( $shaman, '<b>' ) ),
'Warlock' => $this->vbObj->db->escape_string( strip_tags( $warlock, '<b>' ) ),
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
}
?>
and php4
<?php
/*================================================= =====================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 1/27/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*================================================ =======================*/
class recruit {
var $vbObj;
function recruit()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function getStatus( $query )
{
$result = $this->vbObj->db->fetch_array(
$this->vbObj->db->query_read( "SELECT status FROM recruitment WHERE class='$query'" ) );
return strip_tags( $result['status'] );
}
function setStatus( $druid,
$hunter,
$mage,
$paladin,
$priest,
$rogue,
$shaman,
$warlock,
$warrior )
{
$classes = array(
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Hunter' => $this->vbObj->db->escape_string( strip_tags( $hunter, '<b>' ) ),
'Mage' => $this->vbObj->db->escape_string( strip_tags( $mage, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'Priest' => $this->vbObj->db->escape_string( strip_tags( $priest, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>') ),
'Shaman' => $this->vbObj->db->escape_string( strip_tags( $shaman, '<b>' ) ),
'Warlock' => $this->vbObj->db->escape_string( strip_tags( $warlock, '<b>' ) ),
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
}
?>
hannie
02-20-2007, 01:17 PM
i can get this to come up but it doesn't appear in a module - it appears on the top of the page - any idea whats going on?
aitonk
02-20-2007, 02:40 PM
I get this error when trying to add the SQL Database
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1;
--
-- Dumping data for table `recr
turnipofdoom
02-20-2007, 06:54 PM
i can get this to come up but it doesn't appear in a module - it appears on the top of the page - any idea whats going on?
Yeah enable clean file output in the module you created in vbadvanced.
turnipofdoom
02-20-2007, 06:56 PM
I get this error when trying to add the SQL Database
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1;
--
-- Dumping data for table `recr
CREATE TABLE `recruitment` (
`Class` varchar(15) NOT NULL default '',
`Status` varchar(15) NOT NULL default '',
PRIMARY KEY (`Class`)
) ENGINE=MyISAM;
just remove 'DEFAULT CHARSET=latin1
SReid
03-10-2007, 04:51 PM
Thanks for making this! Installed at www.malevolenceguild.org
Feanor
03-11-2007, 07:33 PM
I can't get it to work - I've tried all the ideas in this thread, and the best I can come up with is a homepage consisting of just this:
turnipofdoom
03-12-2007, 05:24 PM
I can't get it to work - I've tried all the ideas in this thread, and the best I can come up with is a homepage consisting of just this:
Are you trying to display the recruitment status page and the update page on the same VB page? Even that should not kick that kind of error... You trying to include class_recruit more than once?
darkie79
03-13-2007, 05:28 PM
I would love to install this, but it would be more beneficial to our community as a recruitment tool for specific roles within the community (ie, tournament admin/cs:s team, etc)..how hard would it be to change this to accomodate our needs?
Thanks ;)
turnipofdoom
03-13-2007, 08:11 PM
I would love to install this, but it would be more beneficial to our community as a recruitment tool for specific roles within the community (ie, tournament admin/cs:s team, etc)..how hard would it be to change this to accomodate our needs?
Thanks ;)
Pretty easy, can you give me an specific outline of what you need ?
darkie79
03-14-2007, 11:16 AM
Sure, I can give you a general idea of what we need..
Right now we are looking for:
3 Radio dj's
2 journalists
4 game server admins
2 graphic artists
2 counterstrike source (CS:S) team members
1 xbox 360 division admin
These will change as time goes on, of course
Thanks for looking into it :D
Synth
03-15-2007, 02:29 PM
I've got everything going fine. The only problem is the module doesn't show when I include class_recruit.php. I don't get any errors and the module is set to active. If i switch it to include EXAMPLE.recruitStatus.php it shows at the top of the page even when i set clean file output to yes.
Could someone please tell me what I'm doing wrong :)
Thanks!
turnipofdoom
03-16-2007, 05:31 PM
I've got everything going fine. The only problem is the module doesn't show when I include class_recruit.php. I don't get any errors and the module is set to active. If i switch it to include EXAMPLE.recruitStatus.php it shows at the top of the page even when i set clean file output to yes.
Could someone please tell me what I'm doing wrong :)
Thanks!
Just include EXAMPLE.recruitStatus.php as a php module in VBCMPS and see where that gets you.
mdroschak
03-17-2007, 05:42 PM
You are my hero, i was the guy who orginally created that static one..
This is great, thanks.. I finally decided to come back and check to see if someone had created this and sure enough, there it was :)
I'm confused about a couple of things. Do i need to create 3 seperate PHP modules for each of the includes?
When reading your instructions you say to include class.recruit and example.recruit into a new PHP Module. How do i add both when you can only select one?
Does one need to be a parent of the other? I've tried that and recieve some strange error.
EDIT: I was able to get the modules to show up, but like the guy above they stay at the top of the page. WHen i turn clean file output on they throw off the rest of my forums.
turnipofdoom
03-17-2007, 09:44 PM
That is my mistake in the instructions, I need to fix them. You should only have to include one of the example files in a module, they each include the class on their own. They are really just examples on how to display some of the data. By throw off what do you mean ? You can probably check off use module shell template so it does not display in a template block.
I have a slightly updated version that uses vb templates to display in a block that ill update this thread with by tomorrow.
turnipofdoom
03-17-2007, 09:48 PM
Sure, I can give you a general idea of what we need..
Right now we are looking for:
3 Radio dj's
2 journalists
4 game server admins
2 graphic artists
2 counterstrike source (CS:S) team members
1 xbox 360 division admin
These will change as time goes on, of course
Thanks for looking into it :D
I will try to get to this soon for you, this is just a few text changes in a few spots.
mdroschak
03-18-2007, 02:33 AM
That is my mistake in the instructions, I need to fix them. You should only have to include one of the example files in a module, they each include the class on their own. They are really just examples on how to display some of the data. By throw off what do you mean ? You can probably check off use module shell template so it does not display in a template block.
I have a slightly updated version that uses vb templates to display in a block that ill update this thread with by tomorrow.
By throw off I mean it will take my news module that is displayed in the center of the forums along with the right side modules and move them down to the bottom and cause them to span accross the entire screen as if they were removed from the tables, it's pretty bizare.
I will wait for your updated one along with some better instructions and give this a go again. My database and everything is setup perfect, it's just a matter of getting the modules to work correctly.
By turning off the use module shell it seems to fit perfectly but looks really ugly =(
Here is a screenshot
Also, one more thing. When i try to create a new "page" "template" for the edit_status.php file I get some php errors. From your example it appears that is what you did for your edit.php file. Is there anything special i need to do to open that up in an iframe/new template? Right now i have it on the same page and it seems to work fine but just adds an uneccssary window..
turnipofdoom
03-18-2007, 02:36 PM
By throw off I mean it will take my news module that is displayed in the center of the forums along with the right side modules and move them down to the bottom and cause them to span accross the entire screen as if they were removed from the tables, it's pretty bizare.
I will wait for your updated one along with some better instructions and give this a go again. My database and everything is setup perfect, it's just a matter of getting the modules to work correctly.
By turning off the use module shell it seems to fit perfectly but looks really ugly =(
Here is a screenshot
Also, one more thing. When i try to create a new "page" "template" for the edit_status.php file I get some php errors. From your example it appears that is what you did for your edit.php file. Is there anything special i need to do to open that up in an iframe/new template? Right now i have it on the same page and it seems to work fine but just adds an uneccssary window..
Yeah at the very least the new version uses the board style to display in, so it will look much better for you. Let me know how it works out.
mdroschak
03-18-2007, 04:11 PM
Thanks my friend, I see you have updated it. I will give it a try in a few minutes.
mdroschak
03-18-2007, 04:30 PM
THe first part works great and it shows up perfect now.
When i go to add the recruit.php to edit the first module this is what i get.
Fatal error: Cannot redeclare class recruit in C:\Inetpub\wwwroot\bbz\forums\modules\class_recrui t.php on line 17
Im assuming this has to do with your php4 edit, making changes now to see what happens. I think you should make it a little bit more clear that you need to edit the Class_recruit.php file if you use php4. I wasn't sure which one you meant so i looked through them all to find the code you posted.
EDIT: I've made the changes to the class_recruit.php file and still have the same error message. So as of right now i just have the issue getting the edit module to display. The other one looks perfect and is using my style.
turnipofdoom
03-18-2007, 05:33 PM
Lets see if that fixes it for you, grab the files and replace functions_recruit.php and recruit.php in your modules dir with the ones in the zip.
mdroschak
03-18-2007, 06:00 PM
PERFECT!
Thanks a ton for your quick responses, nice to have a supported mod...
One other quick question, not a big deal but just curious. Is there a way to make the recruit_edit.php file use your forum template? I notice the colors and everything else is right on but it doesn't fit itself into the frame size, outlines, etc.. I dont know how difficult it is to do that.. and really its not a big deal because it matches perfect. The size is just a bit off because it's kind of on it's own.
Thanks again!
turnipofdoom
03-18-2007, 06:14 PM
Not at the moment, I have to do that still. I wasnt planning on releasing this until I had but such is life. For us, its private, so 99% of visitors never see the small visual errors with the forum =)
mdroschak
03-18-2007, 06:18 PM
Sounds good, I will keep an eye out for an update when you get around to it. Otherwise things are working great, thanks for the nice module =)
Synth
03-21-2007, 07:06 PM
Well, I have everything installed with the updated files and it all shows fine now, and can update the status.
The only thing is, I have set the status editing module to only show for admins. When I am logged in all the linked text on my front page is a light grey color. This only happens for me as I am the only one who can see the edit module. Anyone else i.e members, visitors etc. do not have the problem because that module does not show up for them.
Also, you mentioned to update the image paths in the recruit.php but for the life of me cannot see where the paths need updated.
Thanks alot for this by the way!
turnipofdoom
03-22-2007, 10:01 PM
My mistake on the link update instructions, first mod and all ;p It was removed, and that was part of the previous version..
You can try removing the style class definitions in recruit.php
<body class='module'> just remove class='module',
same with:
<table class="module">
<td valign="top" class="thead">
otherwise, I am not sure why it would change the link colors, but ill look at it.
Xaices
03-25-2007, 07:38 PM
ok what am I doing wrong?
recrutment.sql
-- phpMyAdmin SQL Dump
-- version 2.8.0.4
-- http://www.phpmyadmin.net
--
-- Host: 192.168.42.200
-- Generation Time: Mar 18, 2007 at 11:26 AM
-- Server version: 5.0.26
-- PHP Version: 5.1.6-pl6-gentoo
-- --------------------------------------------------------
--
-- Table structure for table `recruitment`
--
CREATE TABLE `recruitment` (
`Class` varchar(15) NOT NULL default '',
`Status` varchar(15) NOT NULL default '',
PRIMARY KEY (`Class`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `recruitment`
--
INSERT INTO `recruitment` (`Class`, `Status`) VALUES ('Warrior', '1'),
('Paladin', '2'),
('DreadKnight', '2'),
('Ranger', '1'),
('Rogue', '1'),
('Monk', '2'),
('Bard', '2'),
('Cleric', '2'),
('Shaman', '1'),
('Desciple', '1'),
('Bloodmage', '1'),
('Sorcerer', '1'),
('Druid', '1'),
('Psionicist', '1'),
('Necromancer', '1');
I go to forums/admincp/
maintenance/Execute SGL Query
I copy and paste the above into the manual query.
I get this error.
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
--
-- Dumping data for table `recruitment`
--
INSERT INTO `recruitme' at line 20
INFO:
vB 3.6.4
PHP Version 4.4.4
Client API version 4.1.21
I am doing something wrong, I just do not know what, obviously. Yes I changed the classes from WoW to Vanguard.
Xaices
03-25-2007, 10:26 PM
ok I went into myPHPadmin and created the table from there. Seems to all work except I get this error now.
Warning: Missing argument 16 for setstatus() in /modules/class_recruit.php on line 45
That error message appears right above the edit display on the frontpage of cmps.
Here is the code for class_recruit.php that I am using.
<?php
/*================================================= =====================*\
class_recruit.php
------------------------------------------------------------------
* Dark Portal Syndicate http://www.darkportals.com
* Copyright 2002-2007
* ------------------
* class_recruit.php
* Began: 6/27/05
* Last Modified 3/18/2007
* Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
------------------------------------------------------------------
\*================================================ =======================*/
class recruit {
var $result_rows = array();
var $vbObj;
function recruit()
{
global $vbulletin;
$this->vbObj =& $vbulletin;
}
function setStatus( $druid,
$warrior,
$paladin,
$dreadknight,
$ranger,
$rogue,
$monk,
$bard,
$cleric,
$shaman,
$desciple,
$bloodmage,
$sorcerer,
$druid,
$psionicist,
$necromancer )
{
$classes = array(
'Warrior' => $this->vbObj->db->escape_string( strip_tags( $warrior, '<b>' ) ),
'Paladin' => $this->vbObj->db->escape_string( strip_tags( $paladin, '<b>' ) ),
'DreadKnight' => $this->vbObj->db->escape_string( strip_tags( $dreadknight, '<b>' ) ),
'Ranger' => $this->vbObj->db->escape_string( strip_tags( $ranger, '<b>' ) ),
'Rogue' => $this->vbObj->db->escape_string( strip_tags( $rogue, '<b>' ) ),
'Monk' => $this->vbObj->db->escape_string( strip_tags( $monk, '<b>') ),
'Bard' => $this->vbObj->db->escape_string( strip_tags( $bard, '<b>' ) ),
'Cleric' => $this->vbObj->db->escape_string( strip_tags( $cleric, '<b>' ) ),
'Desciple' => $this->vbObj->db->escape_string( strip_tags( $desciple, '<b>' ) ),
'Bloodmage' => $this->vbObj->db->escape_string( strip_tags( $bloodmage, '<b>' ) ),
'Sorcerer' => $this->vbObj->db->escape_string( strip_tags( $sorcerer, '<b>' ) ),
'Druid' => $this->vbObj->db->escape_string( strip_tags( $druid, '<b>' ) ),
'Psionicist' => $this->vbObj->db->escape_string( strip_tags( $psionicist, '<b>' ) ),
'Necromancer' => $this->vbObj->db->escape_string( strip_tags( $necromancer, '<b>' ) )
);
foreach( $classes AS $key => $value )
{
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
$this->vbObj->db->query( $query );
}
}
Line 45 of that is
$necromancer )
So what happens now is that when I fill out the edit fields and hit save I get that error and Dread Knight and Necromancer show no values. If I hit the refresh button on the page then certain class values get changed.
Any ideas?
turnipofdoom
03-26-2007, 01:21 AM
did you adjust teh methos call at the top of recruit.php to account for the extra fields in setStatus ?
Xaices
03-26-2007, 01:53 AM
I think so?
<?php
include_once( "class_recruit.php" );
$data = new recruit();
if( isset( $_POST['Edit'] ))
{
$data->setStatus( $_POST['warrior'], $_POST['paladin'], $_POST['dreadknight'], $_POST['ranger'], $_POST['rogue'], $_POST['monk'], $_POST['bard'], $_POST['cleric'], $_POST['shaman'], $_POST['desciple'], $_POST['bloodmage'], $_POST['sorcerer'], $_POST['druid'], $_POST['psionicist'], $_POST['necromancer'] );
}
?>
<body class='module'>
<form action="" method="post">
<table class="module">
<tr>
<td width="171" align="right" valign="top" class="thead">
<div>
Warrior:
<input name="warrior" type="text" id="warrior" value="<?php echo $data->gStatus('Warrior'); ?>" size="12">
</div>
<div>
Paladin:
<input name="paladin" type="text" id="paladin" value="<?php echo $data->gStatus('Paladin'); ?>" size="12">
</div>
<div>
DreadKnight:
<input name="dreadknight" type="text" id="dreadknight" value="<?php echo $data->gStatus('DreadKnight'); ?>" size="12">
</div>
<div>
Ranger:
<input name="Ranger" type="text" id="ranger" value="<?php echo $data->gStatus('Ranger'); ?>" size="12">
</div>
<div>
Rogue:
<input name="rogue" type="text" id="rogue" value="<?php echo $data->gStatus('Rogue'); ?>" size="12">
</div>
<div>
Bard:
<input name="bard" type="text" id="bard" value="<?php echo $data->gStatus('Bard'); ?>" size="12">
</div>
<div>
Cleric:
<input name="cleric" type="text" id="cleric" value="<?php echo $data->gStatus('Cleric'); ?>" size="12">
</div>
<div>
Shaman:
<input name="shaman" type="text" id="shaman" value="<?php echo $data->gStatus('Shaman'); ?>" size="12">
</div>
<div>
Desciple:
<input name="desciple" type="text" id="desciple" value="<?php echo $data->gStatus('Desciple'); ?>" size="12">
</div>
<div>
Bloodmage:
<input name="bloodmage" type="text" id="bloodmage" value="<?php echo $data->gStatus('Bloodmage'); ?>" size="12">
</div>
<div>
Sorcerer:
<input name="sorcerer" type="text" id="sorcerer" value="<?php echo $data->gStatus('Sorcerer'); ?>" size="12">
</div>
<div>
Druid:
<input name="druid" type="text" id="druid" value="<?php echo $data->gStatus('Druid'); ?>" size="12">
</div>
<div>
Psionicist:
<input name="psionicist" type="text" id="psionicist" value="<?php echo $data->gStatus('Psionicist'); ?>" size="12">
</div>
<div>
Necromancer:
<input name="necromancer" type="text" id="necromancer" value="<?php echo $data->gStatus('Necromancer'); ?>" size="12">
</div></td>
</tr>
<tr>
<td valign="top" class="thead"><div align="center">
<div align="center">
<input name="Edit" type="submit" id="Edit" value="Save">
</div></td>
</tr>
</table></form></body>
turnipofdoom
03-26-2007, 02:43 AM
looks like you just need to remove the $druid, line, since its not in the form.
Xaices
03-26-2007, 01:48 PM
What Druid line where?
Druid is a Vanguard Class and I do not see it missing from any of the coding, I may be blind, It is the third class from the last. Sorcerer, Druid, Psionicist, Necromancer. Should be in there.
Where am I missing it I can not see.
Thanks for the assistance btw.
turnipofdoom
03-26-2007, 02:11 PM
Ok you have
$data->setStatus( $_POST['warrior'], $_POST['paladin'], $_POST['dreadknight'], $_POST['ranger'], $_POST['rogue'], $_POST['monk'], $_POST['bard'], $_POST['cleric'], $_POST['shaman'], $_POST['desciple'], $_POST['bloodmage'], $_POST['sorcerer'], $_POST['druid'], $_POST['psionicist'], $_POST['necromancer'] );
so our post order to setStatus is:
Warrior
Paladin
Dreadknight
Ranger
Rogue
Monk
Bard
Cleric
Shaman
Desciple
Bloodmage
Sorcerer
Druid
Psionicist
Necromancer
Now...
In class_recruit.php
function setStatus( $druid,
$warrior,
$paladin,
$dreadknight,
$ranger,
$rogue,
$monk,
$bard,
$cleric,
$shaman,
$desciple,
$bloodmage,
$sorcerer,
$druid,
$psionicist,
$necromancer )
There is our order we post into the db. See how druid is listed twice ? =) remove the first entry.
Xaices
03-26-2007, 02:21 PM
ah thank you so much.
I just could not see what your were pointing out to me. Thanks for the showing me the way.
Can't fix that atm, but when I get a chance will post back to let you know the outcome.
V/r
Xai
turnipofdoom
03-26-2007, 02:36 PM
haha no worries, it was my pleasure, sometimes the answer is starring you right in the face and you just cant see it. ive been there its great!
Xaices
03-26-2007, 10:47 PM
Ok that fixed the error message displaying on the front page. How ever, instead of the Dread Knight and Necromancer not displaying numbers it is now Ranger and Monk that do not save input. Attaching Picture.
btw guild site is www.ire-guild.org
Any ideas on what could be causing only two fields not to save?
turnipofdoom
03-27-2007, 12:32 PM
It looks like you're missing Monk completely from the gStatus code, and for Ranger the input name should be ranger, lower case. Fix those and you should be fine. =)
(Please click install for me, btw! Thanks!)
Xaices
03-27-2007, 01:33 PM
i'm an idiot, rofl.
Not like it hasn't been prevelent, but I have no idea how to code, recode etc. I just open up the file read it and try to replicate to achieve what I want. Tho I am learning from building this site.
Thanks again.
When I am done and all complete and it works, do you want the files and images to add a complete Vanguard Saga of Heroes Recruitment to your hack?
Clicked Installed!
turnipofdoom
03-27-2007, 03:07 PM
yeah actually that would be great, could you email them off to jzakhar at gmail dot com and ill put them in one zip and toss up instructions for people.. also make sure you add your name to the files you modified ;p
ichwarsvb
03-27-2007, 08:40 PM
Need Help...
I used the normal VBulletin V3.65 not the advanced one. Where do i have to put the files in? Here? ../forum/vbcms_global_modules ?
I do so and thats the result :)
http://www.die-lieders.de/websites/vbaevum/
turnipofdoom
03-28-2007, 01:07 PM
Need Help...
I used the normal VBulletin V3.65 not the advanced one. Where do i have to put the files in? Here? ../forum/vbcms_global_modules ?
I do so and thats the result :)
http://www.die-lieders.de/websites/vbaevum/
Well until today, id never heard of VBCMS before, and all the information I can find on google is in German, which I dont speak. I am sure it could be made to work, but with out having access to the application I really cannot help you.
Xaices
03-28-2007, 01:35 PM
Vangaurd Saga of Heroes Recruitment is done and sent to turnipofdoom.
Thanks again for this mudule and your help during the modification to Vangaurd.
Oz_Berserk
04-14-2007, 12:42 AM
This is the problem that I'm having. I'm going into the admincp, changing the .php file to recruit.php, clean file on, shell template on, going to the portal (vBadvanced) and editing the info for it, coming back to the admin cp and setting class_recruit.php, and when I go back to the portal the recruitment box is gone. Any idea what's going on? I tried switching the files around to find the right combination, but nothing worked.
turnipofdoom
04-15-2007, 02:47 PM
This is the problem that I'm having. I'm going into the admincp, changing the .php file to recruit.php, clean file on, shell template on, going to the portal (vBadvanced) and editing the info for it, coming back to the admin cp and setting class_recruit.php, and when I go back to the portal the recruitment box is gone. Any idea what's going on? I tried switching the files around to find the right combination, but nothing worked.
Having some trouble following your process there. did you create the new template to hold all the html for recruit.php ?
took quite a bit of template modification to get working...and havn't tested it all as of yet...but i've clicked install :)
elricstorm
05-02-2007, 03:02 PM
The admin php template works fine. However, the first template you said to create does not. When I create it, and reload my page I get:
Content Encoding Error (content_encoding_error)
The content header contains different encoding than what was expected....
Any reason why this might be occurring?
The step that this is creating the issue at is:
Add a php module to vbCMPS, add the file functions_recruit.php, under templates used put 'adv_portal_functions_recruit', clean file output to off, use module shell template to no.
If I set the clean file output to on, I get no errors and nothing shows up period. If I change the php file to a template file, I get no errors, I see all of the classes but get no class counts.
elricstorm
05-02-2007, 03:26 PM
I fixed my issue. If anyone encounters this issue, go to your cpadmin, vboptions, and find the http headers options. Turn off "gzip".
Fixed and everything working properly.
turnipofdoom
05-02-2007, 05:48 PM
I fixed my issue. If anyone encounters this issue, go to your cpadmin, vboptions, and find the http headers options. Turn off "gzip".
Fixed and everything working properly.
Interesting so compressing the output errors it, I will take a look, since that is a pretty common option to have enabled. Thanks for the feedback on that one.
elricstorm
05-02-2007, 06:37 PM
yer welcome - it's a nice addition you made. I was getting asked by numerous people to change my old recruitment status module and wanted something simple enough that even a monkey could edit it. This was simple, effective, and nicely polished.
turnipofdoom
05-02-2007, 07:00 PM
yer welcome - it's a nice addition you made. I was getting asked by numerous people to change my old recruitment status module and wanted something simple enough that even a monkey could edit it. This was simple, effective, and nicely polished.
Hey look at that Stamford, I am up in Old Saybrook, near New London, a fellow CT person!
Also can I get your apache and php version info?
NightPhoenix
06-03-2007, 03:52 AM
Came back to try this again... and it worked.... Installed
I have php5, but still needed to make the changes you have listed for php4 to prevent the errors from popping up.
Do you know what might be causing the issue in the attached screenshot? My website is www.shuhalo.com
It would be nice if I could figure how to get the blue section to blend in better.
turnipofdoom
06-05-2007, 12:01 AM
Do you recall what the errors were ? Was it a keyword error ? Can you change it back and post the fatal error ? That would really help. Can you also post the HTML source for the blue background page.
SuprSurfr
06-15-2007, 09:01 PM
Hey would it be possible to modify the code so that it only shows what classes that are open for recruitment on the page?
Example:
If I had 0 or closed in the field dont show the Class at all on the page.
If I had 1 or greater or Open in the field it would show the class on the fron page.
Is this doable and if so how difficult?
Thanks.
turnipofdoom
06-15-2007, 09:35 PM
Hey would it be possible to modify the code so that it only shows what classes that are open for recruitment on the page?
Example:
If I had 0 or closed in the field dont show the Class at all on the page.
If I had 1 or greater or Open in the field it would show the class on the fron page.
Is this doable and if so how difficult?
Thanks.
You can do something like
<if condition="$druid > 0">
<div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"> Druid: $druid</div>
</if>
Inside your display template. You would need to do one if condition for each class
SuprSurfr
06-16-2007, 01:19 PM
You can do something like
<if condition="$druid > 0">
<div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"> Druid: $druid</div>
</if>
Inside your display template. You would need to do one if condition for each class
Awsome!
Thats what i needed!
I used this code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit"
src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
<tr>
<td class="$getbgrow">
<if condition="$assassin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
</if>
<if condition="$berserker <> "Closed"">
<div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
</if>
<if condition="$brigand <> "Closed"">
<div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
</if>
<if condition="$bruiser <> "Closed"">
<div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
</if>
<if condition="$coercer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
</if>
<if condition="$conjuror<> "Closed"">
<div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
</if>
<if condition="$defiler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
</if>
<if condition="$dirge <> "Closed"">
<div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
</if>
<if condition="$fury <> "Closed"">
<div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
</if>
<if condition="$guardian <> "Closed"">
<div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
</if>
<if condition="$illusionist <> "Closed"">
<div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
</if>
<if condition="$inquisitor <> "Closed"">
<div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
</if>
<if condition="$monk <> "Closed"">
<div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
</if>
<if condition="$mystic <> "Closed"">
<div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
</if>
<if condition="$necromancer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
</if>
<if condition="$paladin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
</if>
<if condition="$ranger <> "Closed"">
<div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
</if>
<if condition="$swashbuckler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
</if>
<if condition="$shadowknight <> "Closed"">
<div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
</if>
<if condition="$templar <> "Closed"">
<div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
</if>
<if condition="$troubador <> "Closed"">
<div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
</if>
<if condition="$warden <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
</if>
<if condition="$warlock <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
</if>
<if condition="$wizard <> "Closed"">
<div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
</if>
</td>
</tr>
</td>
</tr>
</tbody>
</table>
<br />
All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.
check it out here (http://www.knightsofthecataclysm.com) :D
turnipofdoom
06-16-2007, 01:24 PM
Awsome!
Thats what i needed!
I used this code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit"
src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
<tr>
<td class="$getbgrow">
<if condition="$assassin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
</if>
<if condition="$berserker <> "Closed"">
<div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
</if>
<if condition="$brigand <> "Closed"">
<div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
</if>
<if condition="$bruiser <> "Closed"">
<div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
</if>
<if condition="$coercer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
</if>
<if condition="$conjuror<> "Closed"">
<div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
</if>
<if condition="$defiler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
</if>
<if condition="$dirge <> "Closed"">
<div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
</if>
<if condition="$fury <> "Closed"">
<div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
</if>
<if condition="$guardian <> "Closed"">
<div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
</if>
<if condition="$illusionist <> "Closed"">
<div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
</if>
<if condition="$inquisitor <> "Closed"">
<div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
</if>
<if condition="$monk <> "Closed"">
<div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
</if>
<if condition="$mystic <> "Closed"">
<div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
</if>
<if condition="$necromancer <> "Closed"">
<div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
</if>
<if condition="$paladin <> "Closed"">
<div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
</if>
<if condition="$ranger <> "Closed"">
<div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
</if>
<if condition="$swashbuckler <> "Closed"">
<div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
</if>
<if condition="$shadowknight <> "Closed"">
<div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
</if>
<if condition="$templar <> "Closed"">
<div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
</if>
<if condition="$troubador <> "Closed"">
<div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
</if>
<if condition="$warden <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
</if>
<if condition="$warlock <> "Closed"">
<div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
</if>
<if condition="$wizard <> "Closed"">
<div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
</if>
</td>
</tr>
</td>
</tr>
</tbody>
</table>
<br />
All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.
check it out here (http://www.knightsofthecataclys.com) :D
That's pretty funny, I use this for eq2 as well. I just modified it a little. What server you on ?
SuprSurfr
06-16-2007, 01:29 PM
One other thing... Is it possible to have the configuration portion collapsable like the other templates?
here is a pic.
https://vborg.vbsupport.ru/
It kind of sticks out and I would like to be able to make it collapsed by default with Vbadvanced options.
Thanks
SuprSurfr
06-16-2007, 01:31 PM
That's pretty funny, I use this for eq2 as well. I just modified it a little. What server you on ?
Crushbone! :D
turnipofdoom
06-16-2007, 01:36 PM
One other thing... Is it possible to have the configuration portion collapsable like the other templates?
here is a pic.
http://www.knightsofthecataclysm.com/images/example.jpg
It kind of sticks out and I would like to be able to make it collapsed by default with Vbadvanced options.
Thanks
Nah it's not, it is not inside a cmps "container"; I just hide mine on a alternate cmps page index.php?page=recruit_update or something and go there when we need to update it. You can use the page permission system as well.
I got nothing to do this morning, I think I am going to update this a bit, ill get the form into a template and maybe use a plugin/hook for the output so you can check for more then one value (closed, Closed or 0) w/o using a ton of template conditionals nested together.
edit... closed on defilers? what the shit is that =)
SuprSurfr
06-16-2007, 01:40 PM
Nah it's not, it is not inside a cmps "container"; I just hide mine on a alternate cmps page index.php?page=recruit_update or something and go there when we need to update it. You can use the page permission system as well.
I got nothing to do this morning, I think I am going to update this a bit, ill get the form into a template and maybe use a plugin/hook for the output so you can check for more then one value (closed, Closed or 0) w/o using a ton of template conditionals nested together.
edit... closed on defilers? what the shit is that =)
hehhe! That has to be a coding problem, everyone needs Defilers!
LOL, we are heavy on defilers atm.
Thanks you rock!
turnipofdoom
07-07-2007, 01:39 AM
This mod is no longer supported as it has been rewritten and the updated mod can be found here:
https://vborg.vbsupport.ru/showthread.php?p=1274653#post1274653
Thanks for all the installs!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.