News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Index.template help

Started by Synister, July 01, 2007, 04:11:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Synister

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?

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);

bigguy

See if this works:

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);