Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > Hosting Section > Knowledge Base > Tutorials

Tutorials Contribute only full How-To's and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-16-2007, 08:04 PM
John
Status: Offline
Administrator
 
Join Date: Sep 2005
Posts: 439
John has disabled reputation
Default How to place ads in Gallery 2.x?

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.
Reply With Quote

  #2 (permalink)  
Old 09-17-2007, 12:21 PM
tbluhp
Status: Offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
tbluhp is on a distinguished road
Default

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
Reply With Quote

  #3 (permalink)  
Old 09-18-2007, 04:15 PM
John
Status: Offline
Administrator
 
Join Date: Sep 2005
Posts: 439
John has disabled reputation
Default

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.
Reply With Quote

  #4 (permalink)  
Old 09-21-2007, 01:51 PM
tbluhp
Status: Offline
Junior Member
 
Join Date: Dec 2006
Posts: 2
tbluhp is on a distinguished road
Default

Ok I have enabled the template but cannot get code to work? It's flash based. I have tried everything so maybe you could help me? I have tried what you told me in the first post of this but did not work well for this theme.
Reply With Quote

Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
image gallery finny Web Graphic, Design, Digital Images 1 08-20-2008 12:01 AM
Photo Gallery Planetgaming_org Free Web Hosting Support 1 01-27-2007 12:14 AM
Photo&Video Gallery Dim Free Web Hosting Support 1 10-02-2006 06:14 PM
No picture with Menalto Gallery ivokwee Free Web Hosting Support 5 01-07-2006 05:08 AM
Coppermine photo gallery swiftstorm@msn.com Free Web Hosting Support 4 10-31-2005 07:38 PM


All times are GMT -7. The time now is 08:59 PM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80