SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: RebelRose on November 14, 2006, 12:14:32 am

Title: NetBiz Theme Error
Post by: RebelRose on November 14, 2006, 12:14:32 am
I was trying to install the ad management mod and got this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/netbiz11RC3_TP/index.template.php on line 218

209: document.onmouseup=disableclick
210: else if (document.layers)
211: associateimages()
212: </script>
213: </head>
214:
215: //Display ads on the top of the page
216:    $ads = show_topofpageAds();   
217:    if(!empty($ads))
218:       if($ads['type']==0)219:          echo $ads['content'];
220:       else
221:          eval($ads['content']);   
222:    unset($ads

Help Please
Title: Re: NetBiz Theme Error
Post by: bigguy on November 14, 2006, 12:18:19 am
Can you post your index.template.php file here please and I will take a look. :)
Title: Re: NetBiz Theme Error
Post by: RebelRose on November 14, 2006, 12:19:49 am
Here you go

Title: Re: NetBiz Theme Error
Post by: bigguy on November 14, 2006, 12:38:25 am
try this.
Title: Re: NetBiz Theme Error
Post by: RebelRose on November 14, 2006, 12:42:24 am
That didn't work got this:

Parse error: syntax error, unexpected '<' in .../Themes/netbiz11RC3_TP/index.template.php on line 628

619:       }
620:       elseif (!isset($buttons[$key]) || $force_reset)
621:          $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';
622:
623:       $button_strip[$key] = $buttons[$key];
624:    }
625:
626:    if (empty($button_strip))
627:       return '<td> ';
628: </td>';629:
630:    echo '
631:       <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
632:       <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode('  |  ', $button_strip) , '</td>


here is one no code changed for this mod
Title: Re: NetBiz Theme Error
Post by: bigguy on November 14, 2006, 12:46:44 am
Ok there is no welcome area ad placement here but try this:
Title: Re: NetBiz Theme Error
Post by: RebelRose on November 14, 2006, 01:03:16 am
Cool we got it BigGuy thanks
Title: Re: NetBiz Theme Error
Post by: bigguy on November 14, 2006, 09:34:41 am
Anytime, glad to help.