My webhost reguires me to place's some ad codes on the .tpl files but I am lost

tbluhp

Joined: 2007-01-06
Posts: 24
Posted: Tue, 2007-09-18 23:13

I tried this for the "fluid theme" but did not work....
tbluhp.profusehost.net/gallery2 please help me.

For this tutorial, we will be looking at "matrix template"

1. It is recommended that you created a local folder in your "templates" folder and upload the "local" folder to your ftp instead of overwriting the original template files. On your computer, these template files should be located in - "/themes/matrix/templates/"

When you are uploading, the "local" folder should go to -
Quote:
/public_html/your_gallery_installation_folder/themes/matrix/templates/

2. Open album.tpl. For album.tpl, look for the following code -

Quote:
<td style="width: 30%">
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showSize=true
showOwner=$theme.params.showAlbumOwner
class="giInfo"}
</td>
</tr>
</table>
</div>

After, add the ad code

Quote:
Profuse Host Ad Code - You can either pick 728x90 white or black background

3. Open photo.tpl and look for the following code -

Quote:
<td style="width: 30%">
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=$theme.params.showImageOwner
class="giInfo"}
{g->block type="core.PhotoSizes" class="giInfo"}
</td>
</tr>
</table>
</div>

After, add the Profuse Host Ad code

Quote:
Profuse Host Ad Code - You can either pick 728x90 white or black background

4. Now open theme.tpl and look for the following code -

Quote:
</body>
</html>

BEFORE, add the Profuse Host Footer Code -

Quote:
<p align="center">
Profuse Host Footer Code Goes Here
</p>

5. Upload theme.tpl, album.tpl, photo.tpl to "local" folder. Local folder needs to be manually created in most cases.

__________________
Profuse Host - http://www.profusehost.net

SITE RULES - http://www.profusehost.net/services/order/index.htm

POST FOR HOST GUIDE LINES - http://www.profusehost.net/forum/support/9807-post-host-guidelines.html

#2
Yesterday, 02:21 PM
tbluhp
Status: Online
Junior Member

Join Date: Dec 2006
Posts: 19

Loved it does anyone know how to do this with the other templates?

Ajaxian 1.0.0 1.0.0 DHTML-enabled Slideshow theme deactivate | uninstall | delete
Carbon 1.2.3.1 1.2.3.1 Gallery2 theme by mincel.com deactivate | uninstall | delete
Classic 1.1.3 1.1.3 Classic Gallery2 root album look and feel deactivate | uninstall | delete
Floatrix 1.0.6 1.0.6 Variable column theme based on Matrix deactivate | uninstall | delete
Fluid 0.9.10 0.9.10 A Flash based Theme deactivate | uninstall | delete
Hybrid 1.1.4.1 1.1.4.1 Combined album/image/slideshow dynamic view deactivate | uninstall | delete
Matrix 1.1.4 1.1.4 Standard Gallery2 look and feel
Siriux 1.1.3 1.1.3 Siriux.net Gallery theme deactivate | uninstall | delete
Slider 1.0.7.2 1.0.7.2 Image viewer/slideshow; subalbums/other items not shown deactivate | uninstall | delete
Tile

#3
Today, 06:15 PM
John
Status: Offline
Administrator

Join Date: Sep 2005
Posts: 3,261

You can try free html editor - http://www.coffeecup.com/free-editor/

All you have to do is copy the source of the tpl file for your editor and open them up one by one in the html editor. In the visual editor look for the area where you want the ads to diplay and at that location put the ad code. Make sure you only paste the code on "code editor" page.

If you need help, please enable the template for your gallery and I'll try to write a tutorial for it.

__________________
Profuse Host - http://www.profusehost.net

SITE RULES - http://www.profusehost.net/services/order/index.htm

POST FOR HOST GUIDE LINES - http://www.profusehost.net/forum/support/9807-post-host-guidelines.html