1
eventspeak
help with "myalbum" google ad in block on front page please
  • 2007/2/18 20:32

  • eventspeak

  • Just popping in

  • Posts: 66

  • Since: 2006/3/20


I am not much of a coder and still suprised that i have gotten this far with my site. I am trying to add a google adsense block to my front page next to the "my album" block pics at the top of my home page. I did paste the google code after the " table" but it is placed at the bottom of the pictures.

Here is the problemhttp://www.eventspeak.com

The script below is from the myalbum block "random pics"

What i want is pics to the left "2 or 3" and goodle ad to the right with out using a new block

Any suggestions Where do i place the code? and what do i change

Quote:
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<{foreach item=photo key=count from=$block.photo}>
<td align='center' style='margin:0px;padding:5px 0px;'>
<a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
</td>
<{if $count is div by $block.cols }>
</tr>
<tr>
<{/if}>
<{/foreach}>
</tr>
</table>
James Trivlis
james(@)Eventspeak.com
http://www.eventspeak.com

2
zyspec
Re: help with "myalbum" google ad in block on front page please
  • 2007/2/18 21:29

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You can try this... It will place all your photos on the left with the google adsense information on the right.
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<
tr>
<
td align='center' style='margin:0px;padding:5px 0px;'>
<{foreach 
item=photo key=count from=$block.photo}>
<
a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
<{if 
$count is div by $block.cols }>
<
br />
<{/if}>
<{/foreach}>
</
td>
<
td>
<!-- 
Place google adsense code here -->
</
td>
</
tr>
</
table>

I've marked the place in the code where you would paste the adsense code from google. Hope this helps.

3
eventspeak
Re: help with "myalbum" google ad in block on front page please
  • 2007/2/18 21:53

  • eventspeak

  • Just popping in

  • Posts: 66

  • Since: 2006/3/20


zyspec,

Thank you! it worked Great. I have been trying to do this all day.

Take a lookhttp://www.eventspeak.com

If any one has any suggestions let me know.

Thanks again
James Trivlis
james(@)Eventspeak.com
http://www.eventspeak.com

Login

Who's Online

266 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 266


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits