SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: Swoah on December 10, 2006, 01:38:02 pm

Title: No starting post after ad mod
Post by: Swoah on December 10, 2006, 01:38:02 pm
Hi,

I've modified the SAF Green theme for the Ad Management v2 mod. I'm using SMF version 1.1 RC2.
Included are the theme files.

1.
Now there's a problem. When somebody starts a new topic, the topic is generated, but the start post doesn't show. It seems like there is no post what so ever.
If you reply the second post is shown. Does somebody know what went wrong?
It has something to do with the modifications I've made, because it was working fine before.

2.
Furthermore, when I turn on the ads after first post, the ad management Mod generates a blank post at the end of a topic. If you reply to that it generates another one.

What's the problem?

nb. Its the only modification I've made to this theme files.
Title: Re: No starting post after ad mod
Post by: Swoah on December 11, 2006, 02:45:08 am
I found out that the first doesn't show up in any topic. So every first post has disappeared.
Title: Re: No starting post after ad mod
Post by: Swoah on December 11, 2006, 03:36:43 pm
It goes wrong after this modification:
Quote
In the same file FIND:

Code:

   // Get all the messages...


And REPLACE with:

Code:

   //Ad Counter
   $adcounter =0;
   // Get all the messages...
   while ($message = $context['get_message']())
   {
      $adcounter++;
Title: Re: No starting post after ad mod
Post by: bigguy on December 12, 2006, 12:28:18 am
Have you tried re-installing the mod. ??? I have ran into this problem to before and I can't remember what I did to fix it now.
Title: Re: No starting post after ad mod
Post by: sntjohnny on December 17, 2006, 11:55:35 pm
I have exactly the same problem.  In fact, I freaked out, because I thought I somehow lost the posts altogether.  When I reverted back to the original files, though, the first posts were displayed.

I'll check back to see if anything was resolved.

And yea, I did reinstall the mod.