iBPlanet.pl

Witaj Gościu ( Zaloguj | Rejestruj )

Profil
Zdjęcie użytkownika
Ocena
 
Opcje
Opcje
Prywatny komunikat
humer1 obecnie nie ma prywatnego komunikatu.
Prywatne informacje
humer1
Bywalec
Wiek nieznany
Płeć nieustawiona
OpOcZnO CiTy :P
Data nieznana
Zainteresowania
Brak informacji
Inne informacje
Korzystam z: Brak informacji
Statystyki
Dołączył: nie, 02 kwi 06
Wyświetleń profilu: 1,702*
Ostatnio widziany: niedziela, 15 kwiecień 2007 - 17:43
Czas lokalny: %am, %22 %b %2012 - %01:%May
96 postów (0 postów na dzień)
Informacje kontaktowe
AIM Brak informacji
Yahoo Brak informacji
ICQ Brak informacji
MSN Brak informacji
* wyświetlenia profilu aktualizowane co godzinę

humer1

Użytkownicy

**


Tematy
Posty
Komentarze
Znajomi
Moja zawartość
11 Nov 2006
Czy jest taki skrypt który zajmje się rotacją bannerów tylko, ze wyłącznie PP np. AdSense, AdKontekst czy AdBid ??
1 Nov 2006
czy jest jakiś skrypt który by przerobił wszystkie adresy email z danej bazy do htmla tak zeby były kompatybilne z programem pocztowym ?
1 Nov 2006
Poniżej zamieszczam kod dzięki któremu bot tworzy automatycznie po napisaniu Topisu odpowiedz i tam są zamieszczone reklamy np. AdSense


PLIKI DO EDYCJI:

KOD
sources/lib/func_topic_linear.php



ZNAJDŹ:

KOD
}
        
        //-----------------------------------------
        // Print the footer
        //-----------------------------------------


I DODAJ POWYŻEJ:

KOD
// Google Adsense banner mod  

  $this->post_count++;
  if ($this->post_count == 1 )
  {
   $ad = array ( 'name_css' => 'normalname',
       'post_css' => ($post_count % 2 ? 'post1' : 'post2'),
       'pid' => '0',
       // Paste your Google ad code inside the single quotes
       'post'  => '
<script type="text/javascript"><!--
google_ad_client = "pub-8622494780388200";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "6699CC";
google_color_bg = "003366";
google_color_link = "FFFFFF";
google_color_text = "AECCEB";
google_color_url = "AECCEB";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>                 );
  
   $bot_poster = array (
        
         'members_display_name'   => '<a href="http://www.domena.pl">Google AdSense</a>',
         'title'   => 'Reklama Google AdSense',
         'avatar'  => '<img src=http://www.google.com/images/logo_sm.gif',
         'member_group' => $this->ipsclass->lang['m_group'].' SPONSOR',        
                  
        );  
  
   $this->post_count++;
   $ad['post_date'] = $row['post_date'];
   $this->output .= $this->ipsclass->compiled_templates['skin_topic']->RenderRow( $ad, $bot_poster );
  
  }
20 Aug 2006
Modyfikacja ta pozwoli na automatyczną zmianę rozmiarów obrazków załączonych w tagach img na forum.

Pliki wymagające edycji:
sources/lib/post_parser.php

Znajdź (około linii 710):
KOD
$txt = preg_replace( "#<img src=[\"'](\S+?)['\"].+?".">#"           , "\[img\]\\1\[/img\]"            , $txt );



Dodaj poniżej:
KOD
// START Image Auto Resize Mod
            $txt = preg_replace( "#<img .+? src=[\"'](\S+?)['\"].+?".">#"           , "\[img\]\\1\[/img\]"            , $txt );
            // END  Image Auto Resize Mod



Znajdź (około linii 1310):
KOD
return "<img src='$url' border='0' alt='user posted image' />";



Zamień na:
KOD
// START Image Auto Resize Mod
        $qt_maxwidth = $ibforums->vars['siu_width'];
        $qt_img_info = getimagesize("$url");
        $qt_out_width = 0;
        $qt_alt = "User posted image";


        if ($qt_img_info[0] >  $qt_maxwidth and $in['SIGNATURE'] != 0){
            $qt_out_width = $qt_maxwidth;
            return "<a href='$url' target='_new'><img width='$qt_out_width' src='$url' border='0' alt='$qt_alt' /></a>";
           }
        else return "<img src='$url' border='0' alt='user posted image' />";
        // END Image Auto Resize Mod



Zapisz i wyślij plik sources/lib/post_parser.php


ACP -> View All General Settings -> Topics, Posts, and Polls -> Attached Image Options:

Zmień wartości width i height na takie, jakie Ci odpowiadają cool.gif
20 Aug 2006
* Invision Power Board 2.1.x

Opis ::
Brak

1.
Pliki potrzebne do edytowania :
sources/classes/class_forums.php.

2. Otwórz sources/classes/class_forums.php
Znajdz :
KOD
if ( ! $done_pass )
                {
                    $forum_data['subforums'][ $data['id'] ] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_link($data['id'],$data['name']);
                }


Zamień na :

KOD
if (!$done_pass)
                {
                    //-----------------------------------------
                    // D21-Subforum Indicators
                    //-----------------------------------------

                    $img = $this->forums_new_posts($this->forums_calc_children($data['id'], $data, 1));
                    if ($img == '<{C_ON}>' || $img == '<{C_ON_CAT}>')
                    {
                        $img = '<{B_NEW}>';
                    }
                    else if ($img == '<{C_OFF}>' || $img == '<{C_OFF_CAT}>')
                    {
                        $img = '<{B_NORM}>';
                    }
                    else if ($img == '<{C_LOCKED}>')
                    {
                        $img = '<{B_HOT_NN}>';
                    }
                    else if ($img == '<{C_ON_RES}>')
                    {
                        $img = '<{B_HOT_DOT}>';
                    }
                    else if ($img == '<{C_OFF_RES}>')
                    {
                        $img = '<{B_HOT_NN_DOT}>';
                    }

                    $forum_data['subforums'][$data['id']] = $this->ipsclass->compiled_templates['skin_boards']->show_subforum_link($data['id'], $data['name'], $img);
                }


3. Wejdź do ACP --> Look & Feel --> Skins & Templates --> Skin Manager --> Wybierz skin --> Edit Template HTML --> Board Index -->
show_subforum_link
Wybierz The 'Edit Data Variables...' Option From The Dynamic Menu:
Znajdź :
KOD
$id="",$name=""


dodaj poniżej :
KOD
, $img=""


Naciśnij ok
Nie zamykaj jeszcze okna

Znajdź :
KOD
<a href="{ipb.script_url}showforum={$id}">{$name}</a>


Zamień na :
KOD
{$img} <a href="{ipb.script_url}showforum={$id}">{$name}</a>
Ostatnio byli


nie, 14 lis 2010 - 19:22


czw, 01 lut 2007 - 11:53

Komentarze
Inni użytkownicy nie zostawili komentarzy dla humer1.

Znajomi
Brak znajomych do wyświetlenia.
RSS Wersja Lo-Fi Aktualny czas: wtorek, 22 maj 2012 - 02:53