phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
Przesunięty przez: joli
29-06-2009, 18:46
[Problem] Zmienne logo forum
Autor Wiadomość
krakers997

Posty: 2
Wysłany: 03-06-2008, 19:17   [Problem] Zmienne logo forum

Jak zrobić zmienne logo forum na php by przemo chodzi w tym o to że obrazki po odświeżeniu strony wyświetlają się losowo

i czy ktoś by mi zrobił tego skrypta z tych fotek
1. http://img371.imageshack....99/logo3ss4.jpg
2. http://img253.imageshack....57/logo4ao1.jpg
3. http://img263.imageshack....96/logo5za0.jpg
4. http://img110.imageshack....90/logo6of3.jpg
5. http://img263.imageshack....98/logo7se2.jpg
6. http://img165.imageshack....99/logo8pc8.jpg
7. http://img237.imageshack....18/logo9ea9.jpg
8. http://img124.imageshack....6/logo10sk9.jpg
 
     
Gadatliwa Kasia 

   
koziolek



Pomógł: 675 razy
Posty: 1925
Wysłany: 03-06-2008, 20:37   

możesz wykorzystać ten skrypt: http://www.przemo.org/php...p=317168#317168
zapisz go jako plik logo.php i umieść w katalogu templates/TWÓJ_STYL/images/, a potem w pliku templates/TWÓJ_STYL/overall_header.tpl w linii ~81 zamień:
Kod:
 <td><a href="{U_INDEX_PORTAL}"><img src="templates/TWÓJ_STYL/images/logo_phpBB.gif" border="0" alt="{L_INDEX_PORTAL}" vspace="1" /></a></td>
na:
Kod:
 <td><a href="{U_INDEX_PORTAL}"><img src="templates/TWÓJ_STYL/images/logo.php" border="0" alt="{L_INDEX_PORTAL}" vspace="1" /></a></td>


obrazki musisz mieć na swoim serwerze (np. w katalogu templates/TWÓJ_STYL/images/top/)
Kod:
$images = array(
'1' => 'templates/TWÓJ_STYL/images/top/top1.gif',
'2' => 'templates/TWÓJ_STYL/images/top/top2.gif',
'3' => 'templates/TWÓJ_STYL/images/top/top3.gif',
'4' => 'templates/TWÓJ_STYL/images/top/top4.gif',
'5' => 'templates/TWÓJ_STYL/images/top/top5.gif',
'6' => 'templates/TWÓJ_STYL/images/top/top6.gif',
'7' => 'templates/TWÓJ_STYL/images/top/top7.gif',
);
_________________
#4 /xg.xrybvmbx.jjj//:cggu
 
     
krakers997

Posty: 2
Wysłany: 03-06-2008, 20:57   

mógłby ktoś mi zrobić już gotowy skrypt z powyższych zdjęć
 
     
bunio11

Posty: 117
Wysłany: 01-11-2008, 12:22   

moje logo.php

Kod:
<?php
$images = array(
'1' => 'templates/xandgrey/images/top/top1.gif',
'2' => 'templates/xandgrey/images/top/top2.gif',
);

$number = rand(1, count($images));
$ext = strtolower(ltrim(strrchr($images[$number], '.'), '.'));
switch($ext)
{
    case 'jpeg':
    case 'jpg':
        $img = imagecreatefromjpeg($images[$number]);
        header('Content-type: image/jpeg');
        imagejpeg($img);
    break;
   
    case 'gif':
        $img = imagecreatefromgif($images[$number]);
        header('Content-type: image/gif');
        imagegif($img);
    break;
   
    case 'png':
        $img = imagecreatefrompng($images[$number]);
        header('Content-type: image/png');
        imagepng($img);
    break;
}
?>


i moj overall_header.tpl

Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
  <meta http-equiv="Content-Style-Type" content="text/css">
  {META_DESC}
  {META}
  <title>{SITENAME} :: {PAGE_TITLE}</title>
  <link rel="stylesheet" href="templates/xandgrey/{T_HEAD_STYLESHEET}" type="text/css">
    <script language="Javascript" type="text/javascript">
    <!--
    var factive_color = '{T_ACTIVE_COLOR}';
    var faonmouse_color = '{T_ONMOUSE_COLOR}';
    var faonmouse2_color = '{T_ONMOUSE2_COLOR}';
    var l_empty_message = '{L_EMPTY_MESSAGE}';
    var no_text_selected = '{L_NO_TEXT_SELECTED}';
    var cname = '{UNIQUE_COOKIE_NAME}';
    var cpath = '{COOKIE_PATH}';
    var cdomain = '{COOKIE_DOMAIN}';
    var csecure = '{COOKIE_SECURE}';
    <!-- BEGIN switch_enable_pm_popup -->
    if ( {PRIVATE_MESSAGE_NEW_FLAG} )
    {
        window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225, resizable=yes, WIDTH=400');
    }
    <!-- END switch_enable_pm_popup -->
    <!-- BEGIN switch_report_popup -->
    report = window.open('{switch_report_popup.U_REPORT_POPUP}', '_phpbbreport', 'HEIGHT={switch_report_popup.S_HEIGHT}, resizable=yes, scrollbars=yes, WIDTH={switch_report_popup.S_WIDTH}');
    report.focus();
    <!-- END switch_report_popup -->
    <!-- BEGIN switch_enable_greeting_popup -->
    var greeting_flag = {GREETING_FLAG};
    if ( greeting_flag )
    {
        window.open('{U_GREETING_POPUP}', '_phpbbprivmsg', 'HEIGHT=225, resizable=yes, WIDTH=400');
    }
    <!-- END switch_enable_greeting_popup -->
    //-->
    </script>
    <script language="JavaScript" type="text/javascript" src="images/jsscripts.js"></script>
    <!-- BEGIN overlib -->
    <script language="JavaScript" type="text/javascript" src="templates/{STYLE_NAME}/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
    <!-- END overlib -->
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)?   

-(subobj.offsetWidth-curobj.offsetWidth) : 0)
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)?

curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

// ]]></script>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" onload="focus_field('focus');">
<!-- BEGIN body_with_loading -->
<script language="Javascript" type="text/javascript">
<!--
    document.write('<div id="hidepage" style="position: absolute; left:0px; top:0px; height: 100%; width: 100%; background-color: {T_BODY_BGCOLOR}; layer-background-color: {T_BODY_BGCOLOR};"><table width="100%" style="height: 100%"><tr><td align="center" valign="middle"><table width="50%" align="center" style="border: 1px solid {T_BODY_LINK}, solid"><tr><td align="center" class="row1"><span class="genmed"><br /><b>{L_PAGE_LOAD_PLEASE_WAIT}<br /><br /><img src="images/loading.gif" alt=""><br /><br />{PAGE_LOADING_STOP}<br />&nbsp;<\/span><\/td><\/tr><\/table><\/td><\/tr><\/table><\/div>');
//-->
</script>
<!-- END body_with_loading -->
<!-- BEGIN body_without_loading -->
<!-- END body_without_loading -->
<!-- BEGIN overlib -->
<div id="overDiv" style="position:absolute; visibility:hidden; filter: alpha(opacity=85); -moz-opacity: 0.85; z-index: 10"></div>
<!-- END overlib -->
<!-- BEGIN advert -->
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
    <tr>
        <td valign="top">
<!-- END advert -->

<!-- BEGIN forum_thin -->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="{forum_thin.WIDTH_COLOR_1}">
<tr>
<td align="center">
<table width="{forum_thin.WIDTH_TABLE}" border="0" bgcolor="{forum_thin.WIDTH_COLOR_2}" cellpadding="0" cellspacing="{forum_thin.TABLE_BORDER}">
<tr>
<td align="center">
<!-- END forum_thin -->
<a name="top"></a>{ROTATE_BANNER_1}
      {FORUM_WARNINGS}
         {ROTATE_BANNER_2}{BANNER_TOP}
         <!-- BEGIN header -->
   <table align="center"><tr><td>
<table width="780px" cellspacing="0" cellpadding="10" border="0" align="center">
    <tr>
        <td class="bodyline">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>               
                <td align="center" width="100%" valign="middle"> <a href="{U_INDEX_PORTAL}"><img src="templates/xandgrey/images/logo.php" border="0" alt="{L_INDEX_PORTAL}" vspace="1" /></a>                <table width="100%" border="0" cellpadding="2" cellspacing="0" background="templates/xandgrey/images/menu.gif">
                    <tr>
                        <td height="34" align="center" valign="middle" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" onclick="return overlay(this, 'subcontent','bottom')" class="mainmenu">{L_SEARCH}</a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 1px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none; filter: alpha(opacity=85); -moz-opacity: 0.85; z-index: 10">
    <table class="forumline" width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <th class="thCornerL" height="25" align="left">&nbsp;Szybka Wyszukiwarka&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onClick="overlayclose('subcontent'); return false" class="genmed">[X]</a></th>
        </tr>
        <tr>
            <td class="row1" height="26" align="left" valign="middle">
                <form action="search.php?mode=results" method="post" accept-charset="ISO-8859-1" style="margin: 0;">
                        <input type="text" class="post" id="focus" onFocus="Active(this)" onBlur="NotActive(this)" name="search_keywords" size="30" style="width: 150px;" />&nbsp;
                        <input type="submit" name="submit" value="IdĽ" class="liteoption" />
                        <input type="hidden" name="show_results" value="topics"><input type="hidden" name="search_terms" value="any"><input type="hidden" name="search_fields" value="all">
                </form>
            </td>
        </tr>
        <tr>
            <td class="row1" height="20" align="center" valign="middle"><a href="{U_SEARCH}" class="gensmall">Rozszerzone szukanie</a></td>

        </tr>
    </table>
</DIV>
&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>&nbsp;
                        <!-- BEGIN switch_user_logged_out -->
                        &nbsp;<a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a>&nbsp;
                        <!-- END switch_user_logged_out -->
                        </span>
                        <td height="34" align="center" valign="middle" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
                    </tr>
                </table>
                </td>
            </tr>
        </table>

        <br />
         <!-- END header -->
        <!-- BEGIN simple_header -->
        <table width="780px" cellspacing="0" cellpadding="10" border="0" align="center">
    <tr>
        <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>               
                <td align="center" width="100%" valign="middle">{SITENAME_COLOR}
                <table width="100%" border="0" cellpadding="2" cellspacing="0" background="templates/xandgrey/images/menu.gif">
                    <tr>
                        <td height="34" align="center" valign="middle" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a>&nbsp;
                        <!-- BEGIN switch_user_logged_out -->
                        &nbsp;<a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a>&nbsp;
                        <!-- END switch_user_logged_out -->
                        </span>
                        <td height="34" align="center" valign="middle" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
                    </tr>
                </table></td>
            </tr>
        </table>

        <br />
         <!-- END simple_header -->
      {ROTATE_BANNER_3}
      <!-- BEGIN switch_enable_board_msg -->
      <div id="hm" style="display: ''; position: relative;">
      <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
        <tr>
         <th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer" title="{L_VHIDE}">&nbsp;{L_BOARD_MSG}&nbsp;</th>
        </tr>
        <tr>
         <td class="row1"><span class="gen">{BOARD_MSG}</span></td>
        </tr>
      </table>
    </div>
    <div id="hm2" style="display: none; position: relative;">
    <table width="100%" class="forumline" cellspacing="1" cellpadding="3" border="0" align="center">
      <tr>
       <th class="thCornerL" height="25" nowrap="nowrap" onclick="javascript:ShowHide('hm','hm2','hm3');" style="cursor: pointer">&nbsp;{L_BOARD_MSG}&nbsp;</th>
      </tr>
    </table>
    </div>
    <script language="javascript" type="text/javascript">
    <!--
    if(GetCookie('hm3') == '2') ShowHide('hm', 'hm2', 'hm3');
    //-->
    </script>
    <!-- END switch_enable_board_msg -->



i nie działa :/
nie wiem czemu ;/

może ktoś pomóc ?
 
     
Tyber

Posty: 56
Wysłany: 11-06-2012, 12:01   

Ja robiłem wg instrukcji koziolek, i nie działa mi.
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,12 sekundy. Zapytań do SQL: 12
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

mediaclick.pl

serwis laptopów

phpbb

Polisy Ubezpieczeniowe TU Europa

Design Cart - Tworzenie sklepu internetowego

dnirozwoju.pl

Ranking Hostingów HostingOnline.pl

• Zamów reklamę