UWAGA
W związku z upgrade'em Forum Wiaderko do vB 4.x ewentualne błędy i nieprawidłowości proszę zgłaszać w tym temacie
Serwery Counter Strike 1.6 wiaderko.com

HashJama [TP] 193.33.176.148:27015 status serwera HashJama [TP] połącz

HashJama [FFA] 193.33.176.188:27015status serwera HashJama [FFA] połącz

HashJama [DM] 193.33.176.53:27015status serwera HashJama [DM] połącz

HashJama [Aim Hs] 193.33.176.15:27015status serwera HashJama [Aim Hs] połącz

HashJama [Flags] 193.33.176.111:27015status serwera HashJama  [Flags] połącz

HashJama [AWP/HG DM] 193.33.176.50:27015status serwera HashJama [AWP/HG DM] 193.33.176.50:27015 połącz

HashJama [TP #2] 193.33.176.54:27015status serwera HashJama [TP #2] 193.33.176.54:27015 połącz

wiaderko.com [Ventrilo] v1.svoice.pl:6416status serwera wiaderko.com [Ventrilo]

SPONSOR:
pukawka.pl

Wątek: Dodanie logo na WWW w amxbans 5.0

Pokaż wyniki od 1 do 11 z 11
  1. #1 Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Witam,

    Mam taki krótkie pytanie.
    Czy możliwe jest że ustawić jakiś obrazek na logo w amxbans 5.0 ?
    Chyba każdy zrozumie o co mi chodzi.
    Proszę o szybką odpowiedź, z góry dziękuję.
    Odpowiedz z cytatem  
     

  2. #2 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka Awatar SuZi_naJs
    Dołączył
    Feb 2012
    Wiek
    21
    Posty
    2
    hmmm. Google?
    Odpowiedz z cytatem  
     

  3. #3 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Google ? W google nawet po wpisaniu wielu kombinacji mojego pytania, i tak pierwsze 2 odnośniki to moje tematy -.- . Pierwszy to dokładnie ten temat w którym teraz piszemy,drugi to temat o takiej samej treści, który założyłem na amxx.pl ...
    Odpowiedz z cytatem  
     

  4. #4 Odp: Dodanie logo na WWW w amxbans 5.0 
    Spamer Awatar KlimeEK
    Dołączył
    May 2010
    Posty
    153
    Posiadam amxbans 5.1 by defender, ale są podobno podobne.

    1. Zaloguj się na www amxbans
    2. Ustawienia
    3. Pokazywać linki na stronie ? - Tak ( zaznacz na tak )
    4. Gdy strona się przeładuje to na dole masz tam dodawanie bannerów / linków - tam już sb dasz radę ; )
    Odpowiedz z cytatem  
     

  5. #5 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Niestety, Też słyszałem, że Amxbans 5.0 i 5.1 są bardzo podobne, jednak różnią się, m.in. tym że w 5.0 nie ma opcji pokazywania linków na stronie.

    Może jakieś pomysły z css, albo html ?
    Odpowiedz z cytatem  
     

  6. #6 Odp: Dodanie logo na WWW w amxbans 5.0 
    Spamer Awatar KlimeEK
    Dołączył
    May 2010
    Posty
    153
    zapodaj index.php lub findex.php - nie pamiętam, ta z listą banów .
    Odpowiedz z cytatem  
     

  7. #7 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Raczej chodzi ci o findex.php, bo w index.php nie ma zbyt wiele ciekawego.
    Kod:
    <?php
    
    /*
     *
     *  AMXBans, managing bans for Half-Life modifications
     *  Copyright (C) 2003, 2004  Ronald Renes / Jeroen de Rover
     *
     *	web		: http://www.xs4all.nl/~yomama/amxbans/
     *	mail	: yomama@xs4all.nl
     *	ICQ		: 104115504
     *   
     *	This file is part of AMXBans.
     *
     *  AMXBans is free software; you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation; either version 2 of the License, or
     *  (at your option) any later version.
     *
     *  AMXBans is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with AMXBans; if not, write to the Free Software
     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     *
     */
    
    // Start session
    session_start();
    
    // Require basic site files
    require("include/config.inc.php");
    
    if ($config->error_handler == "enabled") 
    {
    	include("$config->error_handler_path");
    }
    require("$config->path_root/include/functions.lang.php");
    require("$config->path_root/include/functions.inc.php");
    
    // Get ban details
    	
    if(isset($_GET["steamid"])) 
    {
    	// Make the array for the history ban list
    	$query = "SELECT player_nick, admin_nick, ban_length, ban_created, player_id, ban_reason FROM $config->ban_history WHERE player_id = '".mysql_escape_string($_GET["steamid"])."' ORDER BY ban_created DESC";
    		
    	$resource = mysql_query($query) or die(mysql_error());
    		
    	if(mysql_num_rows($resource) == 0) 
    	{
    		//trigger_error("Can't find ban with given ID: ".mysql_escape_string($_GET["steamid"] , E_USER_NOTICE);
    		// Här behöver man inte ha nĺgot. Har bortkommenterat raden ovan. Tycker att NOTICE är onödigt för det förstör mest formatet pĺ motd sidan.
    	}
    	else
    	{		
    		$unban_array = array();
    			
    		while($result = mysql_fetch_object($resource)) 
    		{
    			$date = dateMonth($result->ban_created);
    			$player = htmlentities($result->player_nick, ENT_QUOTES);
    			$player_id = htmlentities($result->player_id, ENT_QUOTES);
    			$duration = $result->ban_length;
    			$reason = htmlentities($result->ban_reason, ENT_QUOTES);
    			$admin = htmlentities($result->admin_nick, ENT_QUOTES);			
    				
    			if(empty($duration)) 
    			{
    				$duration = "Permanent";
    			}			
    			else 
    			{
    				$duration = $duration." mins";
    			}
    				
    			// Asign variables to the array used in the template
    			$unban_info = array(				
    				"date" => $date,
    				"player" => $player,
    				"player_id" => $player_id,
    				"duration" => $duration,
    				"reason" => $reason,
    				"admin" => $admin,				
    				);
    				
    			$unban_array[] = $unban_info;
    		}
    	}
    }
    
    
    /****************************************************************
    * Template parsing						*
    ****************************************************************/
    
    
    $title = lang("_BANDETAILS");
    
    $smarty = new dynamicPage;
    
    $smarty->assign("meta","");
    $smarty->assign("title",$title);
    $smarty->assign("working_title","home");
    $smarty->assign("dir",$config->document_root);
    $smarty->assign("display_admin", $config->display_admin);
    $smarty->assign("unban_info",$unban_info);
    $smarty->assign("bhans",$unban_array);
    $smarty->assign("parsetime",$parsetime);
    
    $smarty->display('findex.tpl');
    ?>
    Odpowiedz z cytatem  
     

  8. #8 Odp: Dodanie logo na WWW w amxbans 5.0 
    Spamer Awatar KlimeEK
    Dołączył
    May 2010
    Posty
    153
    Kod php:
    <?php

    /*
     *
     *  AMXBans, managing bans for Half-Life modifications
     *  Copyright (C) 2003, 2004  Ronald Renes / Jeroen de Rover
     *
     *    web        : http://www.xs4all.nl/~yomama/amxbans/
     *    mail    : yomama@xs4all.nl
     *    ICQ        : 104115504
     *   
     *    This file is part of AMXBans.
     *
     *  AMXBans is free software; you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation; either version 2 of the License, or
     *  (at your option) any later version.
     *
     *  AMXBans is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with AMXBans; if not, write to the Free Software
     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     *
     */

    // Start session
    session_start();
    echo 
    '<center><a href="link do odnosnika"><img src="link_do_banneru" border="0" /></a></center>'
    // Require basic site files
    require("include/config.inc.php");

    if (
    $config->error_handler == "enabled"
    {
        include(
    "$config->error_handler_path");
    }
    require(
    "$config->path_root/include/functions.lang.php");
    require(
    "$config->path_root/include/functions.inc.php");

    // Get ban details
        
    if(isset($_GET["steamid"])) 
    {
        
    // Make the array for the history ban list
        
    $query "SELECT player_nick, admin_nick, ban_length, ban_created, player_id, ban_reason FROM $config->ban_history WHERE player_id = '".mysql_escape_string($_GET["steamid"])."' ORDER BY ban_created DESC";
            
        
    $resource mysql_query($query) or die(mysql_error());
            
        if(
    mysql_num_rows($resource) == 0
        {
            
    //trigger_error("Can't find ban with given ID: ".mysql_escape_string($_GET["steamid"] , E_USER_NOTICE);
            // Här behöver man inte ha nĺgot. Har bortkommenterat raden ovan. Tycker att NOTICE är onödigt för det förstör mest formatet pĺ motd sidan.
        
    }
        else
        {        
            
    $unban_array = array();
                
            while(
    $result mysql_fetch_object($resource)) 
            {
                
    $date dateMonth($result->ban_created);
                
    $player htmlentities($result->player_nickENT_QUOTES);
                
    $player_id htmlentities($result->player_idENT_QUOTES);
                
    $duration $result->ban_length;
                
    $reason htmlentities($result->ban_reasonENT_QUOTES);
                
    $admin htmlentities($result->admin_nickENT_QUOTES);            
                    
                if(empty(
    $duration)) 
                {
                    
    $duration "Permanent";
                }            
                else 
                {
                    
    $duration $duration." mins";
                }
                    
                
    // Asign variables to the array used in the template
                
    $unban_info = array(                
                    
    "date" => $date,
                    
    "player" => $player,
                    
    "player_id" => $player_id,
                    
    "duration" => $duration,
                    
    "reason" => $reason,
                    
    "admin" => $admin,                
                    );
                    
                
    $unban_array[] = $unban_info;
            }
        }
    }


    /****************************************************************
    * Template parsing                        *
    ****************************************************************/


    $title lang("_BANDETAILS");

    $smarty = new dynamicPage;

    $smarty->assign("meta","");
    $smarty->assign("title",$title);
    $smarty->assign("working_title","home");
    $smarty->assign("dir",$config->document_root);
    $smarty->assign("display_admin"$config->display_admin);
    $smarty->assign("unban_info",$unban_info);
    $smarty->assign("bhans",$unban_array);
    $smarty->assign("parsetime",$parsetime);

    $smarty->display('findex.tpl');
    ?>
    Edytuj linijkę, na początku kodu . Powinno działać .
    Odpowiedz z cytatem  
     

  9. #9 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Niestety, dalej nie działa -.-.
    Dodałem tę linijkę echo... w odpowiednie miejsca wstawiłem linki itd. i nic, logo nie jest pokazywane.
    Odpowiedz z cytatem  
     

  10. #10 Odp: Dodanie logo na WWW w amxbans 5.0 
    Spamer Awatar KlimeEK
    Dołączył
    May 2010
    Posty
    153
    Spróbuj tą linijkę dać w index.php, jak to nic nie da to pomyślę co można więcej zrobić .
    Odpowiedz z cytatem  
     

  11. #11 Odp: Dodanie logo na WWW w amxbans 5.0 
    Lamka
    Dołączył
    Jan 2011
    Posty
    11
    Po dodaniu do index.php dalej to samo ... :/
    Odpowiedz z cytatem  
     

Podobne wątki

  1. Odpowiedzi: 75
    Ostatni post / autor: 08-02-2012, 14:46
  2. [Steam] Dodanie cs 1.6 do steam
    By TheMatizek in forum Problemy z CS 1.6
    Odpowiedzi: 3
    Ostatni post / autor: 20-08-2011, 17:03
  3. VIP - dodanie HP
    By Cukieras in forum Problem z pluginem AMX/AMXX
    Odpowiedzi: 1
    Ostatni post / autor: 22-12-2010, 16:58
  4. [Logo] Dodanie napisu
    By Monter08 in forum Prośby o wykonanie grafiki
    Odpowiedzi: 1
    Ostatni post / autor: 03-05-2010, 13:56
  5. [Steam] Dodanie gry
    By Dreamer ^ in forum Problemy z CS 1.6
    Odpowiedzi: 3
    Ostatni post / autor: 13-10-2009, 08:44
  6. CSS-Dodanie spreya
    By matixl in forum Problemy związane z CS:S Steam i Non Steam
    Odpowiedzi: 0
    Ostatni post / autor: 27-07-2009, 16:48
  7. Dodanie mapki.
    By T00g in forum Problemy i konfiguracja AMXX
    Odpowiedzi: 4
    Ostatni post / autor: 03-04-2009, 18:20
  8. Dodanie własnego napisu lub logo na mapie :)
    By JoneQ in forum Problemy z CS 1.6
    Odpowiedzi: 1
    Ostatni post / autor: 15-08-2008, 23:16

Odwiedzający znaleźli tę stronę szukając:

logo przy banie amxbans

functions.inc.php amxbans

jak dodac logo amxbans

icq co to jest amxbans

jak dodać amxbans na forum

Uprawnienia umieszczania postów
  • Nie możesz zakładać nowych tematów
  • Nie możesz pisać wiadomości
  • Nie możesz dodawać załączników
  • Nie możesz edytować swoich postów
  •