SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: agent9 on November 09, 2010, 01:39:52 am

Title: Working with my custom theme
Post by: agent9 on November 09, 2010, 01:39:52 am
I need some help with my custom theme.
Ad Manager is working on the default, but my manual installs are failing.
I tried to look at the default theme its working on to see where the changes go, but I didn't see them there. Should I be able to?
Title: Re: Working with my custom theme
Post by: agent9 on November 09, 2010, 07:13:01 pm
ok I have it almost working.
Only issue is it is always showing ads in the welcome area.

I did leave these lines off my index.template for welcome ads, but I'm not sure where to ad them.
Attached is my index.template.
You can see my smf forum at http://rioforgringos.com/forumx/

Here are the lines I left out:

<operation>
      <search position="before"><![CDATA[                     </td>]]></search>
<add><![CDATA[';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                  echo ']]>
</add>
</operation>