> Acasa > Forum > MemHT Portal > General > Adsense...
Conectare
Salut Vizitator
IP: 38.107.191.100

Utilizator
Parola
Language
Cine este online
US 38.107.x.x
US 38.107.x.x
US 38.107.x.x
US 38.107.x.x
US 38.107.x.x
RU 77.88.x.x
US MSN spider
Unknown MSN spider
Unknown MSN spider
>  Forum
Moderatori: Moderators
Forum Alimentari RSSReply
Adsense...
AutorDescriere extinsa:
razvaneluu
Just arrived
Avatar

Posturi: 3
Contributii: 3

Sex: _NEUTRAL_
Online: Nu
Data: 24/12/2009 08:27
Adsense...
#post962
Prin ce fisiere pot adauga adsense fara sa deformez pagina ...
Editat: 24/12/2009 08:28
Delete Edit Quote
 
Andrei
Administrator
Avatar

Posturi: 385
Contributii: 400

Sex: _MALE_
Online: Nu
Data: 24/12/2009 10:12
Re: Adsense...
#post963
depinde unde vrei sa adaugi: block, pages sau thema.
Delete Edit Quote
 
razvaneluu
Just arrived
Avatar

Posturi: 3
Contributii: 3

Sex: _NEUTRAL_
Online: Nu
Data: 28/12/2009 12:47
Re: Adsense...
#post964
peste tot !
Delete Edit Quote
 
Andrei
Administrator
Avatar

Posturi: 385
Contributii: 400

Sex: _MALE_
Online: Nu
Data: 06/01/2010 15:37
Re: Adsense...
#post972
ca sa bagi un ads in header sau footer trebuie sa modifici thema din templates/x/home.html.
Daca vrei sa adaugi un ads intr-un bloc trebuie sa creezi un fisier cu numele block_nume.php care sa contina urmatorul cod:

code
<?php

/********************************************************************************
        - MemHT Portal -
       
        Copyright (C) 2007-2008 by Miltenovik Manojlo
        http://www.memht.com
       
        This program 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 opinion) any later version.
       
        This program 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 this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
        or write to the Free Software Foundation, Inc., 51 Franklin Street,
        Fifth Floor, Boston, MA02110-1301, USA.
               
********************************************************************************/


        if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_nume.php")) {
                die("<table style='padding: 2px; border: 1px solid #999; background-color: #EEE; font-family: Verdana; font-size: 10px;' align='center'><tr><td><b>Error:</b> This file cannot be opened directly!</td></tr></table>");
        }
       
        echo 'cod ads';
       
?>
Editat: 06/01/2010 15:37
Delete Edit Quote
 
soso
Junior Member
Avatar

Posturi: 46
Contributii: 50

Sex: _MALE_
Online: Nu
Data: 13/02/2010 17:17
Re: Adsense...
#post1028
eu as vrea sa adug intru blok dar cum fac ?
Image
Delete Edit Quote
 
Andrei
Administrator
Avatar

Posturi: 385
Contributii: 400

Sex: _MALE_
Online: Nu
Data: 13/02/2010 23:10
Re: Adsense...
#post1030
creezi un fisier block_ads.php cu urmatorul cod, il pui in folderul blocks.
code
<?php

        if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_ads.php")) {
                die("<table style='padding: 2px; border: 1px solid #999; background-color: #EEE; font-family: Verdana; font-size: 10px;' align='center'><tr><td><b>Error:</b> This file cannot be opened directly!</td></tr></table>");
        }

echo 'ADS';
       
?>
Delete Edit Quote
 
soso
Junior Member
Avatar

Posturi: 46
Contributii: 50

Sex: _MALE_
Online: Nu
Data: 14/02/2010 15:50
Re: Adsense...
#post1031
ok merci mult merge perfect
Image
Delete Edit Quote
 
Reply
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo
QPC Network:  Jocuri Noi | Filme Noi | Jocuri Online | Jocuri pentru copii |