Version: 2.0.2, by miz
Developer Last Online: Sep 2005
Version: 3.0.6
Rating:
Released: 12-02-2004
Last Update: 02-03-2005
Installs: 73
DB Changes
No support by the author.
vbTeams / Clubs Hack 2.0.2 this hack allow you to add teams to your board via smart mangemnet
from admin cp with special features like team admin, team privte forums, team privte aream, team chat, join to teams via polls
with addition of pm system.
every team got privte info and public which can be easyly manged via teamadmin control panel.
every team got privte forums and team admin get automaticly set to be team moderator.
features list is long so ill write it later.
also i didnt included the upgrade script for now as i didnt had time to test it
so only new install for you guys, sorry about that
well enjoy.
bug fixes excpected on 2.0.2 version :
all header problems (headers allready sent) replaced by new error and redirect messages.
query'scount,willbeaboutmax 7-8 querys per page, dosent metter how manyteams onboard(onold hackwe got 200 querys for 100 team).
all session problems has been fixed.
problems on member.php has been fixed.
teamless timeout is fixed.
teamadmin - upload avatars bug (save all images as gif) fixed
reputation showenonly if enabled in vboptiions(Admincp)
Fixed Navbar Array's
new additions on new version :
Added $bbteaminfo with pre chace for better coding issue's
Privte Team Forum - with privte posts,threads,polls
join polls report
enable/disable features via admincp
Added Protect team with Password
Reputation replaced with a Reputation Bar(Vb deafult)
teamadminisautomatic set as moderator of the forum (without setting him up asmodvia admin cp) and have powers to close/open edit,stick and etc...
want to help ? if you know about more bugs that not mention here
pleaseinformme,soicaninclude the fix's in the next versions.alsoifyougotmoreidea'sabout howto improve the hack i will begladtoknowaboutthemand to addthem.
Yours. MiZ.
added some screen shoots from next version
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Any chance of some screenies for the admin control panel side?? Not admin of the team, admin of the whole board you know
Is this done by phrases aswell???
I run a hip hop website so would change 'team' to crew. Otherwise it looks pretty neat.
Does the teams avatar replace their current one of will it be placed somewhere else, im sure my members would not like it to replace their current avatar.
nope not on phares, i run music site and made it say labels
I had a problem with team avatars not coming up. The reason is that it always looks for .gifs for some reason. I uploaded a jpg and it was a jpg on the server but in the source code the team page was looking for the same file name just with a .gif
I had a problem with team avatars not coming up. The reason is that it always looks for .gifs for some reason. I uploaded a jpg and it was a jpg on the server but in the source code the team page was looking for the same file name just with a .gif
The problem is in this following bit of code at the bottom of teamadmin.php - I don't know much PHP or I would try to fix it. It is automattically saving the path to the images in the DB with the gif extension regardless of the filetype. The upload function in function_team is saving them properly - All that needs done is a way to add the correct extension in this code here so it referrences it correctly in the DB.
PHP Code:
if ($_POST['do'] == removeavatar) {
$teamid = $_POST['teamid'];
// Delete Avatar image from server
$teamoldava = "team".$teamid."_avatar.gif";
@unlink("images/teamavatars/$teamoldava");
$team_ava = "team_noavatar.gif";
$DB_site->query("
UPDATE " . TABLE_PREFIX . "teams
SET avatarurl='images/teamavatars/$team_ava', avatar='0'
WHERE teamid ='$teamid'
");
header("Location: teamadmin.php?&teamid=$teamid");
}
// upload avatar
If($_POST['do'] == doupload) {
$teamid = $_POST['teamid'];
doupload();
$team_ava = "team".$teamid."_avatar.gif";
$DB_site->query("
UPDATE " . TABLE_PREFIX . "teams
SET avatarurl='images/teamavatars/$team_ava'
WHERE teamid ='$teamid'
");
yeah i am not good either it should be something like
$teamoldava = "team".$teamid."_avatar.$type";
Yeah - But the problem I ran into is I have no clue how to code it to determine the type of the file. It's prolly something that would have to be stored in the DB and then queried for each team.
sorry for late with answer i will rls v2.0.1 which will be bug fix of avatars problem, spelling and session problem
if you have few more problems please tell me...