The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Clan Hack Details »» | |||||||||||||||||||||||||
This hack was requested HERE
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
|
Comments |
#22
|
|||
|
|||
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 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 Open *FORUMROOT*/misc.php FIND: Code:
?> 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="{firstaltcolor}"; $bgclass="alt1"; } else { $backcolor = "{secondaltcolor}"; $bgclass="alt2"; } eval("\$clanuserlist .= \"".gettemplate("clanusersbit")."\";"); } while ($totalusers = $DB_site->fetch_array($usertotal)) { $allusertotal += $totalusers[total]; $allusertotal = number_format($allusertotal); eval("dooutput(\"".gettemplate("clanusers")."\");"); } } ENTER YOUR ADMIN CP, GO INTO THE STYLE YOU WILL HAVE THIS IN, THEN GO TO THE "HEAD INSERT" TEXT FIELD. FIND: Code:
.sf { FONT-FAMILY: verdana, arial, helvetica, sans-serif; FONT-SIZE: 10px; } </style> Code:
<script language="javascript" type="text/javascript"> <!-- function clanopen(clanid) { window.open("misc.php?s=$session[sessionhash]&action=clanusers&clanid="+clanid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=yes,width=200,height=275,resizeable=no,status=no") } // --> </script> THere's a demo HERE Click on the clan name (liver) |
#23
|
|||
|
|||
hey its verry nice and ist good for my Counterstrike Clan, but how can i (in the Postbit) Link for my User to other/or all Clan Groups?
look in the Pic what i mean thxxx and greetz subu1 *clickinstall* |
#24
|
||||
|
||||
I see you got it fixed Good hack!
- miSt |
#25
|
|||
|
|||
I installed it, good hack, but i get a problem:
I have a clan with 2 leaders... Any idea? Thanks! |
#26
|
|||
|
|||
ok i have a bug too, if i have a leader with the Name Tobsta[LA] i don't see him, but i see anothen Leader with the Name Cronos[LA]
The one Leadername is ok, the other not, why??? |
#27
|
|||
|
|||
If the name is not entered correctly, it WILL NOT show up. Otherwise, it should not be a problem.
NOTE: THe leadername will not show up if it is not a registered user! If you'd like, i can tell you how to make it so it doesn't have to be a registered user to be a clan leader. Quote:
I.E. http://www.blindedstorms.com/forums/showclans.php Oh, and if you'd like all postbits to link to a certain clan, do this: --If you installed the optional thing-- Go into the *forumroot*/admin/functions.php file. Find: Code:
$showuserclan = "Clan:<br><a href=\"java script:clanopen($post[clan])\">$clan[title]</a>"; Code:
$showuserclan = "Clan:<br><a href=\"java script:clanopen(CLANID)\">CLAN NAME</a>"; Quote:
IF YOU DO NOT HAVE THE OPTIONAL HACK INSTALLED: FIND: Code:
$showuserclan = "Clan:<br><a href=\"showclans.php?s=$session[sessionhash]&what=users&clanid='$post[clan]'\">$clan[title]</a>"; Code:
$showuserclan = "Clan:<br><a href=\"showclans.php?s=$session[sessionhash]&what=users&clanid='CLANID'\">CLAN NAME</a>"; Quote:
|
#28
|
|||
|
|||
oh , i see it, sorry that was not the correckly Username, but now it works.
But my another Problem now is, if i have two clangroups and user one have clanid 1 and user two have clanid 2 . How must write the link for the postbit, each user has quasi his own left for his clan in the post office bits. This is for one clan $showuserclan = "Clan:<br><a href=\"showclans.php?s=$session[sessionhash]&what=users&clanid='1'\">War NAME</a>"; and the another clangroup?? sorry for my bad english subu1 |
#29
|
|||
|
|||
Umm, the way it is default (the way you installed it), the link in the postbit is to the users clan. If that's what you mean by your question, set it back to the default.
|
#30
|
|||
|
|||
hi i am stupid its work easy, I came in disorder only by the user name.
greetz and thxx for your Hack |
#31
|
|||
|
|||
I still do recommend the optional install, it makes it look better... muhahaha.
Oh, and when i finish up with what DigitalDesktops' addition, the final install file will have the option of installing either one, the basic or the multi rank. It'll be pretty cool. 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. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|