How insert ads in Beta

saidul

Joined: 2009-06-10
Posts: 5
Posted: Wed, 2009-06-10 20:27

Hey, I was looking for a best wallpapers script such as long time and i bought a script after i got refund, now i found Gallery2 script its free and i really like this script. but my question is how to insert adsense ads or adbrite ads in site plz help me abt that, thanks again for a nice script.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-06-11 03:10

Start by editing album.html.php assuming you want ads on the album view.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
saidul

Joined: 2009-06-10
Posts: 5
Posted: Thu, 2009-06-11 03:46

thanks its nice working, how can i change Title [Browse Photos album]

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-06-11 04:00

There is a bug for this. But you can edit page.html.php

    <title>
      <? if (empty($page_title)): ?>
        <?= t("Browse Photos") ?>
        <? if (!empty($item)): ?>
        :: <?= p::clean($item->title) ?>
        <? endif ?>
      <? else: ?>
        <?= $page_title ?>
      <? endif ?>
      <?= $theme->page_type ?>
    </title>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
saidul

Joined: 2009-06-10
Posts: 5
Posted: Thu, 2009-06-11 04:27

where i can insert my site title, in here $page_title?

 
saidul

Joined: 2009-06-10
Posts: 5
Posted: Thu, 2009-06-11 04:31

i edit it but i can't edit the album ?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-06-11 04:35
Quote:
where i can insert my site title, in here $page_title?

Change the above code to:
<title>My Site title</title>

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-06-11 04:38

There is a bug for the title:
http://apps.sourceforge.net/trac/gallery/ticket/342

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team