SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: Synister on July 01, 2007, 03:11:10 pm

Title: Index.template help
Post by: Synister 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);
Title: Re: Index.template help
Post by: bigguy 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);