PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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!
Attached Images
File Type: jpg ScreenShot2.jpg (33.3 KB, 63 views)
lmongello is offline   Reply With Quote
Old December 8th, 2005, 08:13 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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('navbar2') . '";');

Or vice versa edit our menubar.tmpl but doing it the vb way means you won't lose the template when you upgrade
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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('navbar2') . '";');

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!
lmongello is offline   Reply With Quote
Old December 8th, 2005, 08:40 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; December 8th, 2005 at 08:43 AM.
Chuck S is offline   Reply With Quote
Old 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.
lmongello is offline   Reply With Quote
Old December 8th, 2005, 08:50 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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.
Attached Images
File Type: jpg ScreenShot001.jpg (74.9 KB, 23 views)
lmongello is offline   Reply With Quote
Old December 8th, 2005, 09:07 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
lmongello is offline   Reply With Quote
Old December 8th, 2005, 09:19 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
well the one I got off your site I posted above work fine
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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
lmongello is offline   Reply With Quote
Old 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.
Attached Images
File Type: jpg ScreenShot002.jpg (39.0 KB, 16 views)
lmongello is offline   Reply With Quote
Old December 8th, 2005, 10:09 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old 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?)
lmongello is offline   Reply With Quote
Old December 8th, 2005, 10:23 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB 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
AdSense under Featured Photos lmongello Photopost Pro How Do I...? 3 September 21st, 2005 10:04 PM
Random Images on VB Pages and NON-Vb Pages SaN-DeeP Photopost Pro How Do I...? 5 March 31st, 2005 10:13 AM


All times are GMT -5. The time now is 02:09 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0