Coinbase

Author Topic: Index.template help  (Read 2025 times)

0 Members and 1 Guest are viewing this topic.

Offline Synister

  • Newbie
  • *
  • Posts: 1
    • Email
Index.template help
« on: July 01, 2007, 03:11:10 pm »
On line 152 there is an error. My browser says it needs a , or ; ive tired putting them in and i still get an error... This is on a custom theme in the index.template.php

The first attachment is the original code.
The second attachment is modified with the ad code.

The mod works, but this code isnt functional right now? is it important or what?

Code: [Select]
143: }
144: // ]]></script>
145: </head>
146: <body>
147: //Display ads on the top of the page
148: if (function_exists("show_topofpageAds"))
149: {
150: $ads = show_topofpageAds();
151: if(!empty($ads))

152: if($ads['type']==0)

153: echo $ads['content'];
154: else
155: eval($ads['content']);
156: unset($ads);

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Index.template help
« Reply #1 on: July 07, 2007, 10:35:27 am »
See if this works:

Code: [Select]
143: }
144: // ]]></script>
145: </head>
146: <body>';
147: //Display ads on the top of the page
148: if (function_exists("show_topofpageAds"))
149: {
150: $ads = show_topofpageAds();
151: if(!empty($ads))

152: if($ads['type']==0)

153: echo $ads['content'];
154: else
155: eval($ads['content']);
156: unset($ads);

SMF Ads Support Forum

Re: Index.template help
« Reply #1 on: July 07, 2007, 10:35:27 am »
.

 

.