Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Clan Hack Details »»
Clan Hack
Version: 1.00, by The_Cyberdemon The_Cyberdemon is offline
Developer Last Online: Feb 2006 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-12-2003 Last Update: Never Installs: 57
Is in Beta Stage  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-13-2003, 10:20 AM
DRR DRR is offline
 
Join Date: Apr 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one
i might be able to use this in the future
Reply With Quote
  #3  
Old 04-13-2003, 11:25 AM
kaotic's Avatar
kaotic kaotic is offline
 
Join Date: Mar 2003
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-13-2003, 12:10 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks I'll go install it now

/me clicks install
Reply With Quote
  #5  
Old 04-13-2003, 12:36 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 04-13-2003, 01:14 PM
The_Cyberdemon The_Cyberdemon is offline
 
Join Date: Mar 2003
Location: VA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
) ");
Reply With Quote
  #7  
Old 04-13-2003, 01:23 PM
The_Cyberdemon The_Cyberdemon is offline
 
Join Date: Mar 2003
Location: VA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. =)
Reply With Quote
  #8  
Old 04-13-2003, 01:57 PM
Brian Briscoe Brian Briscoe is offline
 
Join Date: Aug 2002
Location: United States
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im gonna modify this for 3.0.0 when it is released
Reply With Quote
  #9  
Old 04-13-2003, 01:59 PM
The_Cyberdemon The_Cyberdemon is offline
 
Join Date: Mar 2003
Location: VA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yay :banana:
Reply With Quote
  #10  
Old 04-13-2003, 02:07 PM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there works perfectly thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04425 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete