vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Clan Hack (https://vborg.vbsupport.ru/showthread.php?t=51549)

The_Cyberdemon 04-12-2003 10:00 PM

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

DRR 04-13-2003 10:20 AM

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

kaotic 04-13-2003 11:25 AM

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 04-13-2003 12:10 PM

thanks I'll go install it now

/me clicks install

Dan 04-13-2003 12:36 PM

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 04-13-2003 01:14 PM

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` (
`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
);

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 04-13-2003 01:23 PM

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,
  leader varchar(50) NOT NULL,

REPLACE THAT WITH:
Code:

  pass varchar(50) NOT NULL,
  leader varchar(50) NOT NULL

It should work. =)

Brian Briscoe 04-13-2003 01:57 PM

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

The_Cyberdemon 04-13-2003 01:59 PM

yay :banana:

Dan 04-13-2003 02:07 PM

there works perfectly thanks!


All times are GMT. The time now is 03:31 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
  • Page Generation 0.01411 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete