vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VbTeams/Clubs Hack (https://vborg.vbsupport.ru/showthread.php?t=72448)

Zachariah 12-05-2004 01:42 AM

I'll check it out.

Hades-1 12-05-2004 02:34 AM

i cant upload avatars, nothing happens, just takes me to admin index

and when i delete avatar i get sql error, column 'avatar' not fund in 'feild list'

Hades-1 12-05-2004 02:37 AM

Quote:

Originally Posted by MindTrix
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

well half of it, its hard to weed it all out.

SilentK 12-05-2004 12:46 PM

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

Hades-1 12-05-2004 01:19 PM

Quote:

Originally Posted by SilentK
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

exact problem, i have to login phpmyadmin to fix.

Hades-1 12-05-2004 01:39 PM

honestly, shoud'nt this be a beta release?

how are we suppose to delete the private chat?

does that stay there forever?

How can fix the problem with images always looking for gif?

Andrew 12-05-2004 03:45 PM

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'
    "
);



    
header("Location: teamadmin.php?&teamid=$teamid");



Hades-1 12-05-2004 04:42 PM

yeah i am not good either it should be something like

$teamoldava = "team".$teamid."_avatar.$type";

Andrew 12-05-2004 06:35 PM

Quote:

Originally Posted by Hades-1
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.

miz 12-05-2004 10:05 PM

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...


All times are GMT. The time now is 06:15 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.03656 seconds
  • Memory Usage 1,749KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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