vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=51549

Clan Hack
by The_Cyberdemon
13 Apr 2003 06:24

1 Attachment(s)
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://www.vbulletin.org/forum/
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

DRR 13 Apr 2003 12:20

Nice one :)
i might be able to use this in the future

kaotic 13 Apr 2003 13:25

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.

Dan 13 Apr 2003 14:10

thanks I'll go install it now

/me clicks install

Dan 13 Apr 2003 14:36

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

The_Cyberdemon 13 Apr 2003 15:14

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That does basically the same thing.
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
) ");

The_Cyberdemon 13 Apr 2003 15:23

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE THAT WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It should work. =)

Brian Briscoe 13 Apr 2003 15:57

Im gonna modify this for 3.0.0 when it is released :)

The_Cyberdemon 13 Apr 2003 15:59

yay :banana:

Dan 13 Apr 2003 16:07

there works perfectly thanks!

The_Cyberdemon 13 Apr 2003 16:08

yay

The_Cyberdemon 13 Apr 2003 16:37

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

DigitalDesktops 13 Apr 2003 21:06

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?

Xelation 13 Apr 2003 21:11

Thanks! I dont really need this for clans... but its very usuful for teams to! many thanks :)

The_Cyberdemon 13 Apr 2003 21:33

Quote:

Today at 04:00 PM DigitalDesktops said this in Post #13
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?

Unfortunately, i do not think so. I might be able to create an addition to it where it makes a whole new table for a clan, it'll make your db bigger, but i think it can be done. If you really want me to do this, i'll do it. It shouldn't be that much of a problem


All times are GMT. The time now is 20:17.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.