 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
December 7th, 2005, 11:26 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
| Google AdSense on pages
Stupid question I know...
I want to add a Google AdSense leaderboard on every page near the top, possibly between my vB header and the Photopost menu bar (See attached screen shot). I just don't know what template (?) I need to edit in order to do this. I tried editing my header.htm through the PP admin, as well as my showphoto.tmpl but nothing showed up either time.
Thanks!
|
| |
December 8th, 2005, 08:13 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well you would need to create a second navbar template in vb called navbar2 and put google at the bottom.
Then in our header-inc.php file you can call this new template
eval('$navbar = "' . fetch_template('navbar 2') . '";');
Or vice versa edit our menubar.tmpl but doing it the vb way means you won't lose the template when you upgrade |
| |
December 8th, 2005, 08:30 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
| Quote: |
Originally Posted by Chuck S well you would need to create a second navbar template in vb called navbar2 and put google at the bottom.
Then in our header-inc.php file you can call this new template
eval('$navbar = "' . fetch_template('navbar 2') . '";');
Or vice versa edit our menubar.tmpl but doing it the vb way means you won't lose the template when you upgrade  | Chuck,
Thanks for the help. I copied and pasted the navbar template but added by Adsense code to the bottom. Although it shows up, the gallery itself does not. Am I putting the code inthe wrong place?
NAVBAR2 end text: <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="http://www.xxx.com/forums/online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-123456789";.
....</div>
</if>
Thanks!
|
| |
December 8th, 2005, 08:40 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Move it all the way out of that if clause and see if that does it.
Last edited by Chuck S; December 8th, 2005 at 08:43 AM.
|
| |
December 8th, 2005, 08:43 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
Chuck,
I tried that before and did it again just now. Please visit http://www.disneyworldtrivia.com/photos/ to see the result. (I know I'm doing something wrong)
Thanks.
|
| |
December 8th, 2005, 08:50 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
maybe your doing the google code wrong?
All that prints is a closing >
Is that the full google code there?
|
| |
December 8th, 2005, 08:52 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
I see the google ads, just nothing below them until the footer.
|
| |
December 8th, 2005, 09:07 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
right which means an improperly closed tag and your > seems to show that
If I post this at the bottom of my navbar template it shows properly between the navbar and menubar Code: Content visible to verified customers only.
|
| |
December 8th, 2005, 09:17 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
Chuck,
Sorry to be such a pain. Here is what my navbar2 code looks like at the very bottom: <tr><td class="vbmenu_option"><a href="http://www.disneyworldtrivia.com/forums/member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="http://www.disneyworldtrivia.com/forums/online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
</if>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-111111111111";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="1111111111";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FFCD00";
google_color_url = "FFCD00";
google_color_text = "FFFFFF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
Also, I don't see the ">" that you are referring to
|
| |
December 8th, 2005, 09:19 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
well the one I got off your site I posted above work fine
|
| |
December 8th, 2005, 09:29 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
OK. Let me be sure I have this done properly:
1. I created a new vB template called navbar2
2. The contents on thta template are the same as navbar but with the Google code at the end.
3. In my PP header-inc.php file, I changed this line to read
eval('$navbar = "' . fetch_template('navbar2') . '";'); then saved and uploaded that
Still can only see header, ads, then footer on PP pages
|
| |
December 8th, 2005, 09:42 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
Well, I added some hidden "dummy text" in white to the bottom of the Google ad as shown below
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads. js">
</script>
<font color="#FFFFFF">Disney World Trivia Secrets Fun Facts History</font>
This seemed to work, although when I highligh tthe whole page, some other hidden text appears as seen in the screen shot.
But hey, it works, right? Thank for the help.
|
| |
December 8th, 2005, 10:09 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
I swear you have a missing closing tag somewhere
whats that Disneyfont> thing
You might want to verify your page in the html validator at w3c.org to help find the issue
|
| |
December 8th, 2005, 10:18 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Feb 2004
Posts: 96
|
Chuck,
I agree with what you think it may be, and to be honest, I have no clue what that Disneyfont this is from! (someone else did the CSS and design of the site for me originally - maybe something left over from there?) |
| |
December 8th, 2005, 10:23 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,698
|
Yeah well thats why I suggested w3c.org if there is a missing closing tag or extra opening tag it can through things off. Only thing I can really suggest.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:09 AM. | |