PDA

View Full Version : Need help with template edit



redspider
Thu 4th Sep '08, 2:44am
ok my problem is when I insert this code:



<if condition="THIS_SCRIPT !='downloads'">

<!-- START ADSENSE REVENUE -->
<if condition="!in_array($foruminfo[forumid], array(88,89,90,92,93,94,99,100,125,127,178,179))">
<p align="center">
<if condition="is_member_of($bbuserinfo,1,2,3,6)">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxx";
/* 728x90, created 7/22/08 */
google_ad_slot = "xxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></if></p> </if> </if>

<!-- end ADSENSE REVENUE -->

<!-- START domain REVENUE -->
<p align="center">
<if condition="THIS_SCRIPT == 'forumdisplay' AND ( $foruminfo[forumid] == 178 OR $foruminfo[forumid] == 179 )">
<!-- BEGIN domain.com Ad Code -->
<script type="text/javascript" src="http://syndication.domain.com/ads.php?type=468x60-thumbs&login=ftagods&cat=2&search=&ad_title_color=FF1F1F&bgcolor=FFFFFF&border=1&border_color=000000&font=&block_keywords=&ad_text_color=000000&adult=0&sub=&text_only="></script>
<noscript>blah blah blah <a href="http://www.domain.com">Pay Per Click Advertising</a>.</noscript>
<!-- END domain.com Ad Code -->
</p></if>
<!-- end domain REVENUE -->

in ad_navbar_below templates it move my new thread button in forum display almost to the center

what I doing wrong?

thanks for any help


so far only way i found to fix it is to add this at the end of those code:
<p align="left">

Lynne
Thu 4th Sep '08, 10:49am
Well, look at how your <p>s don't match up in your if statements:



<if condition="THIS_SCRIPT !='downloads'">

<!-- START ADSENSE REVENUE -->
<if condition="!in_array($foruminfo[forumid], array(88,89,90,92,93,94,99,100,125,127,178,179))">
<p align="center">
<if condition="is_member_of($bbuserinfo,1,2,3,6)">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxx";
/* 728x90, created 7/22/08 */
google_ad_slot = "xxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></if></p> </if> </if>

<!-- end ADSENSE REVENUE -->

<!-- START domain REVENUE -->
<p align="center">
<if condition="THIS_SCRIPT == 'forumdisplay' AND ( $foruminfo[forumid] == 178 OR $foruminfo[forumid] == 179 )">
<!-- BEGIN domain.com Ad Code -->
<script type="text/javascript" src="http://syndication.domain.com/ads.php?type=468x60-thumbs&login=ftagods&cat=2&search=&ad_title_color=FF1F1F&bgcolor=FFFFFF&border=1&border_color=000000&font=&block_keywords=&ad_text_color=000000&adult=0&sub=&text_only="></script>
<noscript>blah blah blah <a href="http://www.domain.com">Pay Per Click Advertising</a>.</noscript>
<!-- END domain.com Ad Code -->
</p></if>
<!-- end domain REVENUE -->
if
if
p
if
endif
endp
endif
endif

That is all fine.

Then
p
if
endp
endif

That is not fine.

redspider
Fri 5th Sep '08, 11:43pm
OK to double check i understand
second block :


<!-- START domain REVENUE -->
<p align="center">
<if condition="THIS_SCRIPT == 'forumdisplay' AND ( $foruminfo[forumid] == 178 OR $foruminfo[forumid] == 179 )">
<!-- BEGIN domain.com Ad Code -->
<script type="text/javascript" src="http://syndication.domain.com/ads.php?type=468x60-thumbs&login=ftagods&cat=2&search=&ad_title_color=FF1F1F&bgcolor=FFFFFF&border=1&border_color=000000&font=&block_keywords=&ad_text_color=000000&adult=0&sub=&text_only="></script>
<noscript>blah blah blah <a href="http://www.domain.com">Pay Per Click Advertising</a>.</noscript>
<!-- END domain.com Ad Code -->
</p></if>
<!-- end domain REVENUE -->

is my problem ?

update i change to :

<!-- START domain REVENUE -->
<if condition="THIS_SCRIPT == 'forumdisplay' AND ( $foruminfo[forumid] == 178 OR $foruminfo[forumid] == 179 )">
<p align="center">
<!-- BEGIN domain.com Ad Code -->
<script type="text/javascript" src="http://syndication.domain.com/ads.php?type=468x60-thumbs&login=ftagods&cat=2&search=&ad_title_color=FF1F1F&bgcolor=FFFFFF&border=1&border_color=000000&font=&block_keywords=&ad_text_color=000000&adult=0&sub=&text_only="></script>
<noscript>blah blah blah <a href="http://www.domain.com">Pay Per Click Advertising</a>.</noscript>
<!-- END domain.com Ad Code -->
</if></p>
<!-- end domain REVENUE -->
and is working good so far thanks

Lynne
Fri 5th Sep '08, 11:50pm
Yep, I believe so.

redspider
Fri 5th Sep '08, 11:52pm
thank you