![]() |
Clan Hack
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 http://www.blindedstorms.com/vb/cpscreen.jpg EDIT/ADD CLAN SCREEN http://www.blindedstorms.com/vb/addclanscreen.jpg Admin CP clan list screen http://www.blindedstorms.com/vb/showclanscreen.jpg Entering clan password in user cp (ignore the image thing, that's a different hack) http://www.blindedstorms.com/usercpscreen.jpg List of clans https://vborg.vbsupport.ru/ List of users in that clan http://www.blindedstorms.com/allusersscreen.jpg Postbit Stuff http://www.blindedstorms.com/inorout.jpg Enjoy the hack! If you get any errors, please tell me |
Nice one :)
i might be able to use this in the future |
Perfect! This will help organize some of the groups in my message board. I'll try this out as soon as my site is no longer suspended.
|
thanks I'll go install it now
/me clicks install |
This is trying to be installed on my testboard btw....
I get an error in the install script First before I sign into it Warning: Cannot add header information - headers already sent by (output started at /home/eternalgamer/www/eg/forums/admin/clan_install.php:2) in /home/eternalgamer/www/eg/forums/admin/functions.php on line 1683 and after when its running the querys Database error in vBulletin Control Panel 2.3.0: Invalid SQL: CREATE TABLE clan ( clanid smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, title varchar(50) NOT NULL, pass varchar(50) NOT NULL, leader varchar(50) NOT NULL, ) mysql error: You have an error in your SQL syntax near ')' at line 6 mysql error number: 1064 Date: Sunday 13th of April 2003 09:27:18 AM Script: http://www.eternalgamers.com/eg/foru...p?where=clandb Referer: http://www.eternalgamers.com/eg/foru...?where=install |
Don't worry about the header information, that shouldn't be a problem. It just does that becuase i don't have the sessionhash. That is very very strange. I don't know why it would do that. I don't have that problem, and there is no error there. If you'd like, you can just go and run this query on ur db:
Code:
CREATE TABLE `clan` ( And i'll ask someone on the irc, too. Are you running these queries in your database or through the installer, by clicking "next." IT installs it automatically. And i have the full code there being: $DB_site->query("CREATE TABLE clan ( blah, blahh blah blah ) "); |
Okay, i know the error, and i know why only you are getting it. I think you have a earlier version of mysql. mine ignores ending commas. Urs doesnt. So... open up clan_install.php.
FIND: Code:
pass varchar(50) NOT NULL, Code:
pass varchar(50) NOT NULL, |
Im gonna modify this for 3.0.0 when it is released :)
|
yay :banana:
|
there works perfectly thanks!
|
yay
|
After we get a few more installs or go for a while without getting errors, i'll upgrade this to a "full release". It'll get more attention
|
Great Hack The_Cyberdemon. :) Is there a way to make a user be in more than one clan at a time?
ex. I have two clans, A Unreal Tournament Clan and a JKII Clan is there a way for the user to be in both at the same time? |
Thanks! I dont really need this for clans... but its very usuful for teams to! many thanks :)
|
Quote:
|
cool, that would be great if you could make that! Thanks. :)
|
Not sure how long it will take, i have to edit a lot of stuff. Should be done with it in a few days, basically have to redo the whole database area, buuuut.
|
Quote:
thats okay, i can wait :) if thats not a problem. Thanks making this addon for me. :) |
Ok I Installed this btw I love this idea. But sadly I get 2 problems.
1. Warning: Cannot add header information - headers already sent by***** in my admin cp making it in possible for me to access the cp 2. All of my users data from the store hack disappears. IE colour title, glow options, points etc This hack would be a great addition to the store ( hint hint ) :) if any of you guys can help me out I would be very grateful. Also my forums are hacked to death and I think I maybe better off waiting for VB3 and starting a fresh. NICE HACK and IDEA |
Quote:
The reason you get that is because of no Session hash. It should not be an error in the admin CP, only in the install file. If this keeps happening, delete the clan_install.php file from your admin directory. Quote:
Thanks for all the good critizism (i don't think i spelled that right)! |
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 Code:
// SHOW CLAN START Open *FORUMROOT*/misc.php FIND: Code:
?> Code:
// ############################### start users ############################### ENTER YOUR ADMIN CP, GO INTO THE STYLE YOU WILL HAVE THIS IN, THEN GO TO THE "HEAD INSERT" TEXT FIELD. FIND: Code:
.sf { Code:
<script language="javascript" type="text/javascript"> THere's a demo HERE Click on the clan name (liver) |
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 http://www.blindedstorms.com/allclansscreen.jpg thxxx;) and greetz subu1 *clickinstall* |
I see you got it fixed ;) Good hack!
- miSt |
I installed it, good hack, but i get a problem:
I have a clan with 2 leaders... Any idea? Thanks! |
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??? |
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:
|
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;) |
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.
|
hi i am stupid its work easy, I came in disorder only by the user name.
greetz and thxx for your Hack;) |
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. |
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? |
thats all sounds good to me.
maybe for an addon: if u get out of a clan u lose money? also i tried the addon and it doesn;t work. i get this as a link http://www.rpgadvance.com/forum/java%20script:clanopen(1) l8er sonic |
OOps, stupid mistake on my end.
It's Code:
javascript:clanopen($post[clan]) Code:
java script:clanopen($post[clan]) Edit: I actually posted it correctly, but something about the "[code]" tag make javascript become java script.here's what it should read: Quote:
javascript:clanopen($post[clan]) Edit 3: OH MY GOD! it won't work. I'm reporting this. Just no that there is no space in "javascript" |
Quote:
PHP Code:
|
Quote:
greetz subu1 |
i'm going on vacation the day after tomorrow, so this may take some time, but they will be released
|
Quote:
l8er sonic |
Quote:
TEMPLATE 1: NAME: clanusers CONTENT: Code:
<html> NAME: clanusersbit CONTENT: Code:
<tr> Quote:
NOTE: remember to change all of the "java script" things to "javascript". That's pretty annoying, isn't it. |
Quote:
|
Quote:
|
All times are GMT. The time now is 02:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|