Basically, this hack adds a clan system to your vbulletin. Everything is controlled from the usercp. When a user goes to edit his/her profile, there is an additional "clan password" field. Clan leaders should give out the password to clan members. If the password matches one of an exsisting clan, they are added to that clan. There is more information in the request thread.
HACK STATS:
Templates to add: 5
Templates to edit: 2
Files to upload: 3
Files to edit: 3
This includes an easy to follow install guide and installer. Screenshots are below:
Addition to the administration CP
EDIT/ADD CLAN SCREEN
Admin CP clan list screen
Entering clan password in user cp (ignore the image thing, that's a different hack)
List of clans
List of users in that clan
Postbit Stuff
Enjoy the hack!
If you get any errors, please tell me
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Okay, here's what i plan to add in the final hack:[list=1][*]Multiple Clan Memberships[*]Pick Clan From List[*]Get admitted to a clan only on approval of leader (request with a special type of pm)[*]Clan Leader CP[*]Clan Level System (Clan Leader CP addon)[/list=1]
Anything else i should do?
Yesterday at 03:57 AM The_Cyberdemon said this in Post #21 NEW OPTIONAL ADDITION!
This changes the link in the postbit (it links to the clan page) to a javascript popup sorta like when you click the number of users that have installed a hack. Here's what to do:
STEP 1:
OPEN *FORUMROOT*/admin/functions.php
FIND:
Code:
// SHOW CLAN START
global $DB_site;
$clanfetch=$DB_site->query("SELECT * FROM clan WHERE clanid='$post[clan]'");
$clan=$DB_site->fetch_array($clanfetch);
if ($post[clan]==0 OR !$post[clan]) {
$showuserclan = "Not in Clan";
} else {
$showuserclan = "Clan:<br><a href=\"showclans.php?s=$session[sessionhash]&what=users&clanid='$post[clan]'\">$clan[title]</a>";
}
// END SHOW CLAN
REPLACE THE ENTIRE THING WITH:
Code:
// SHOW CLAN START
global $DB_site;
$clanfetch=$DB_site->query("SELECT * FROM clan WHERE clanid='$post[clan]'");
$clan=$DB_site->fetch_array($clanfetch);
if ($post[clan]==0 OR !$post[clan]) {
$showuserclan = "Not in Clan";
} else {
$showuserclan = "Clan:<br><a href=\"javascript:clanopen($post[clan])\">$clan[title]</a>";
}
// END SHOW CLAN
STEP 2:
Open *FORUMROOT*/misc.php
FIND:
Code:
?>
ADD RIGHT ABOVE THAT:
Code:
// ############################### start users ###############################
if ($action=="clanusers") {
$templatesused = "clanusers,clanusersbit";
include("./global.php");
$clanusers = '';
$users = $DB_site->query("SELECT * FROM user WHERE clan='$clanid'");
$usertotal=$DB_site->query("SELECT COUNT(*) AS total FROM user WHERE clan=$clanid");
while ($clanusers=$DB_site->fetch_array($users)) {
if (($counter++ % 2) != 0) {
$backcolor="#13486D";
$bgclass="alt1";
} else {
$backcolor = "#1C5780";
$bgclass="alt2";
}
eval("\$clanuserlist .= \"".gettemplate("clanusersbit")."\";");
}
while ($totalusers = $DB_site->fetch_array($usertotal)) {
$allusertotal += $totalusers[total];
$allusertotal = number_format($allusertotal);
eval("dooutput(\"".gettemplate("clanusers")."\");");
}
}
FINAL STEP:
ENTER YOUR ADMIN CP, GO INTO THE STYLE YOU WILL HAVE THIS IN, THEN GO TO THE "HEAD INSERT" TEXT FIELD.
Yesterday at 08:34 PM The_Cyberdemon said this in Post #31 Okay, here's what i plan to add in the final hack:
[list=1][*]Multiple Clan Memberships[*]Pick Clan From List[*]Get admitted to a clan only on approval of leader (request with a special type of pm)[*]Clan Leader CP[*]Clan Level System (Clan Leader CP addon)[/list=1]
Anything else i should do?
wowww, thats super addons, i waiting for :-)))))))
ok i changed it and the link is right but there isn;t ne pop ups or nething when i click on it. i have added the code in misc.php
HUGE mistake on my end. HUGE. I forgot to show you what templates to add... lol. That's pretty sad of me. Without the templates, nothing should show up, so here they are:
I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.
Okay, this shouldn't take long.
NOTE: remember to change all of the "java script" things to "javascript". That's pretty annoying, isn't it.
Yesterday at 06:43 PM The_Cyberdemon said this in Post #30
If there is anything you would like to request, let me know, i wan't to make this as cool as possible.
I'm also going to add a "pick from list" of clans instead of password thing as well.
I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.
Today at 10:24 PM Jagang said this in Post #38 I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.
I was thinking the same thing. This feature would make it even better. I can obviously do this myself, but I think it would be better if the clan leaders could decide to open it/close it and pick the name/description that they want on their own. Also, I already have a forum called "Hosted Organizations" in which I set up a subforum for each clan. I prefer subforums rather than base forums in order to keep the index smaller.