PDA

View Full Version : Clan Hack .:V2:.


The_Cyberdemon
02-04-2004, 10:00 PM
The original clan hack is posted HERE (https://vborg.vbsupport.ru/showthread.php?p=472821).
This is the new and improved version. Way more features, same basic "user joins clan, shows up in clanlist".

.:CLAN HACK v2:.
----------------------
FEATURES:
Clan List [UPGRADED]
Clan Info
Clan Ranks
Clan Request (submit request to join clan)
Clan Leader Control Panel
Adminstrator Control Panel Addition
User can be in multiple clans
Very easy install
AND MORE!

SCREENSHOTS:
CLICK HERE (https://vborg.vbsupport.ru/showthread.php?p=472821#post472821)

INSTRUCTIONS/ABOUT:
Users go to clan information page and select the clan they want to join by pressing the join button next to it. They fill out a form, and a request gets sent to the clan leader, these can be seen in the clan leader control panel (screenshot availible). Leaders accept or decline request. Either way, an email is sent to the member telling them what happened. Users is then added or not added to the clan. Clan leaders can change clan name, information, logo, and clan site information. They can also add clan ranking information, such as "leader", "co-leader", "captain", whatever, and list them in whatever order they wish.

OTHER:
This is v2.0. I tested this with hobbes and it worked fine on a clean install of 2.2.6. I tested my first install on a 2.3.3 and both worked fine. Clan is not shown in your postbit, but i gave link information for clan leader control panel in clan list. I will update this hack often, such as version 2.1 or 2.2, and eventually other features will be added and postbit stuff will be added to. I set this as a finally release because installs went flawlessely on both boards, but there still may be a few minutes issues. If you get any, please post them and i will do my best to help. Cheers and Enjoy,
~Cyber

Live Demos:
BLINDEDSTORMS (http://www.blindedstorms.com/clan)

CLAN HACK 2.1
UPDATES:
Minor Bug Fixes
Admin can now add/remove users
Clan Leaders Can remove users correctly
User must be logged in to register for clan.

Look in the readme at the top for updates and how to install them
(you have to reupload the new /cleader/clan.php /admin/clan.php and /request.php and make a small edit to /admin/user.php)

DarkJediKiller
02-05-2004, 12:04 AM
Wow, awesome man. *installs*

Koutaru
02-05-2004, 12:16 AM
Very nice :) I'm installing as soon as I can

Kalakov
02-05-2004, 08:29 AM
nice nice =)

FleaBag
02-05-2004, 01:35 PM
Excellent work mate, cheers!

ChrisSy
02-05-2004, 01:57 PM
this looks great, would love to see a vB 3 port of it though? great job nonetheless!

Logik
02-05-2004, 11:06 PM
I get an error:
Database error in vBulletin Mod Control Panel 2.3.2:

Invalid SQL: INSERT INTO clanrank (clanid,title,spot) VALUES (19,'Logik',)
mysql error: 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 ')' at line 1

mysql error number: 1064

Date: Thursday 05th of February 2004 08:06:38 PM
Script: http://www.flowsession.net/forum/forum/cleader/clan.php
Referer: http://www.flowsession.net/forum/cleader/clan.php?action=addrank&cid=19&

when i try to add a rank..

Logik
02-05-2004, 11:14 PM
nevermind i fixed it

The_Cyberdemon
02-05-2004, 11:15 PM
I get an error:
Database error in vBulletin Mod Control Panel 2.3.2:

Invalid SQL: INSERT INTO clanrank (clanid,title,spot) VALUES (19,'Logik',)
mysql error: 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 ')' at line 1

mysql error number: 1064

Date: Thursday 05th of February 2004 08:06:38 PM
Script: http://www.flowsession.net/forum/forum/cleader/clan.php
Referer: http://www.flowsession.net/forum/cleader/clan.php?action=addrank&cid=19&

when i try to add a rank..
Make sure you put in an order value. The order determines what order the peopel are displayed in on the showclans page. If you don't care, just put a one in. Users default to "member" which is automatically shown last. I'll put in an error page for that.

Logik
02-05-2004, 11:15 PM
how do u add people to the clan

The_Cyberdemon
02-05-2004, 11:18 PM
how do u add people to the clan
The users need to request to enter a clan. using the request form by pressing the join button in the showclans.php page. When i update, which i will tomorrow after i get back from school, v2.1 will have an admin option to add or remove users from clans. Until tomorrow, you'll have to send a request, or go into phpmyadmin and change the clan(clanid) column to 1

Logik
02-05-2004, 11:19 PM
hmm. dang.. tomarrow.. Errrrrrr :-x Ok. Nice hack anyways. Cant wait til' tomarrow!...

Logik
02-05-2004, 11:20 PM
Is there a way to make the "clan logo" show up in all the users Sig???

The_Cyberdemon
02-05-2004, 11:50 PM
Is there a way to make the "clan logo" show up in all the users Sig???
Just put in the img link is probably the easiest. I'll see what i can do about that though.

Scheduled for tomorrow:
Error Messages
2 Minor Bug Fixes (just thought of them, shouldn't cause a problem though)
User in/out of clan in admin cp + throw users out of clan from Cleader
(lol, email will be like, HAHA, U GOT THROWN OUT OF THE CLAN, :lick: !)
heh. As soon as i figure out how to run while functions in the postbit (admin/functions.php), there'll be a dropdown in the postbit that lists all the clans the user is in, and then i'll be able to do the sig thing, but i'll get the above fixed by tomorrow, 9:00 pm eastern. Instead of putting in every single option i could think of, i'll just constantly update this thing, listing fixes on the way. If you guys want anything to be added, just tell me. I'll list bug fixes at the top of the readme, and what you do to fix them, so you dont' miss fixes when you update. Thank you logik for pointing these out and i'll get them fixed asap.

Another Error:
User doesn't have to be logged in to join a clan, better fix that too, lol.

The_Cyberdemon
02-05-2004, 11:59 PM
By the way, i looked at your site, all of the users are listed as "member". To dchange that, go to the clan leader cp, and go to userlist, and click "rank". That'll change it to whatever you want. I gotta make an instruction manual.
Mind if i show your site as a demo?

mx3
02-06-2004, 01:04 AM
this looks great, would love to see a vB 3 port of it though? great job nonetheless!

that can actually be done using additional usergroups ;)

And I'll probably be using this eventually :)

Logik
02-06-2004, 02:10 AM
i will wait til. tomarrow :)

Logik
02-06-2004, 02:12 AM
BTW. u can use it as a demo :)

SmEdD
02-06-2004, 12:09 PM
Or you can wait a month for my Clan Tools RC1 hack which is by far more complex and has been in beta for 2 months give or take, when ever vB3 Beta 3 came out.

The_Cyberdemon
02-06-2004, 08:11 PM
Or you can wait a month for my Clan Tools RC1 hack which is by far more complex and has been in beta for 2 months give or take, when ever vB3 Beta 3 came out.
Complex isn't a good thing for the users, just btw.
You don't have to install my hack, you can wait for his. Whatever you think is better. I don't know what his has on it, though.

Logik
02-07-2004, 02:29 AM
When is this gonna be done?

SmEdD
02-08-2004, 04:08 AM
Didn't mean complex as in to use, as in to make.

And it should be done by the end of the month tops. But if all goes well 2 weeks.

Logik
02-08-2004, 06:15 AM
dang, i need one asap.. I wonder when cyberdemon is gonna finish his

The_Cyberdemon
02-08-2004, 05:02 PM
crap, sorry, something came up.

Releasing v2.1 right now.

Files to reupload:
/cleader/clan.php
/admin/clan.php
/request.php

New edits:
user.php

Check it oUT!

ReDL the zip file, it's updated.

Jagang
02-10-2004, 12:59 PM
How about a way to customise the join application. The current questions don't apply, I don't use this for online gaming clans, I use it for my play-by-post RPG. Also I could really use the ability for the auto creation of a clan forum when a clan is created with the clan leader as a moderator.

I'd really love to see something more like this: http://forums.ffdiscovery.com/clans.php?s=

However Rake and Shovel never release and of their custom code.

Hobbes
02-10-2004, 08:51 PM
How about a way to customise the join application. The current questions don't apply, I don't use this for online gaming clans, I use it for my play-by-post RPG. Also I could really use the ability for the auto creation of a clan forum when a clan is created with the clan leader as a moderator.

I'd really love to see something more like this: http://forums.ffdiscovery.com/clans.php?s=

However Rake and Shovel never release and of their custom code.
argh...I have to uninstall v1...man :\...I will add this in a few :)

Logik
02-11-2004, 01:36 AM
To change the questions, edit the template... "clanreq"..

FleaBag
02-11-2004, 09:34 PM
How do I upgrade from v1?

Hobbes
02-12-2004, 11:02 PM
How do I upgrade from v1?
you cant :) you need to uninstall v1 and reinstall v2 :)

Logik
02-12-2004, 11:53 PM
I want to get the user groups in the postbit, and the group image in the groups SIG

FleaBag
02-13-2004, 04:43 AM
you cant :) you need to uninstall v1 and reinstall v2 :)

That is a real downer. I have almost 70 clans listed. Looks like I'll be sticking with v1. :)

The_Cyberdemon
02-15-2004, 07:13 PM
well, i actually could make an upgrade script, shouldn't be too hard. Just need to go through and add some columns. I'll get on that, but, make sure you do not add any clans until you upgrade, might screw it up. I'll go ahead and make that tonight, have it out tomorrow. =)

FleaBag
02-18-2004, 01:27 AM
Ah my friend, that is excellent news. Thank you very much. I've been playing around with vB3, the usergroup functionality doesn't match up to this hack.

The_Cyberdemon
02-18-2004, 06:33 PM
also adding an install/uninstall script (for your convinience :nervous: )
+ Clan Invites
+ Display Clans user is in with a dropdown in the postbit
+ Display all of the clan logos the user is in (Dunno how this will make any sense if the logos are too big, but, whatever)

FleaBag
03-19-2004, 02:40 AM
Hey mate, can you briefly explain how I can achieve the same as this in vB3 with public usergroups? I'm not sure how the whole thing works, and am not sure how I can achieve the same goals as your hack.

The_Cyberdemon
03-21-2004, 12:23 PM
I haven't used vb3 yet, so i'm not sure how to use public usergroups or anything, but i heard that this is very similar, which is why i added all of this extra crap.

If anyone has anything they still want me to do (i haven't done anything in a while) lemme know and i'll set it up.

gsnetworks
03-22-2004, 06:19 PM
I'm getting an error when trying to run the queries:

CREATE TABLE `clanrank` (
`id` smallint(10) unsigned NOT NULL auto_increment,
`clanid` smallint(10) NOT NULL default \'0\',
`title` varchar(30) NOT NULL default \'\',
`spot` smallint(10) NOT NULL default \'1\',
KEY `id` (`id`)
) TYPE=MyISAM AUTO_INCREMENT=13 ;

MySQL said:

You have an error in your SQL syntax near '\'0\',
`title` varchar(30) NOT NULL default \'\',
`spot` smallint(10) NOT ' at line 3

HELP!

FleaBag
03-22-2004, 06:21 PM
I haven't used vb3 yet, so i'm not sure how to use public usergroups or anything, but i heard that this is very similar, which is why i added all of this extra crap.

If anyone has anything they still want me to do (i haven't done anything in a while) lemme know and i'll set it up.

I was as much of a vB3 sceptic as anyone. I planned to stay on vB2 until all the hacks I needed were converted. I didn't, and I don't regret it at all!

The_Cyberdemon
03-23-2004, 07:01 PM
Well, i'm redesigning this for vb3, hope you guys are happy.

FleaBag
03-23-2004, 08:26 PM
I am extremely happy. Thanks very much. :)

The_Cyberdemon
03-28-2004, 05:43 PM
This might take some time, seeing that i have absolutely no idea what i'm doing on vb3! lol.

gsnetworks
03-31-2004, 08:09 AM
can anyone help me with my problem above?

FleaBag
05-02-2004, 04:17 AM
Any luck with the vB3 update mate?

Gio~Logist
11-21-2004, 07:49 PM
where does thhe request go when u clik join? right now in request.php it has a link i aint even never heard of and stuff, and when u clik join and fill the hting out, it doesnt go no where

Creed
03-02-2005, 03:49 AM
I'm glad to see you're updating to vb3, any news on an update?