Coinbase

Author Topic: No starting post after ad mod  (Read 3170 times)

0 Members and 1 Guest are viewing this topic.

Offline Swoah

  • Newbie
  • *
  • Posts: 5
No starting post after ad mod
« 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.

Offline Swoah

  • Newbie
  • *
  • Posts: 5
Re: No starting post after ad mod
« Reply #1 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.

Offline Swoah

  • Newbie
  • *
  • Posts: 5
Re: No starting post after ad mod
« Reply #2 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++;

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: No starting post after ad mod
« Reply #3 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.

Offline sntjohnny

  • Newbie
  • *
  • Posts: 3
    • Email
Re: No starting post after ad mod
« Reply #4 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.
« Last Edit: December 17, 2006, 11:59:35 pm by sntjohnny »

SMF Ads Support Forum

Re: No starting post after ad mod
« Reply #4 on: December 17, 2006, 11:55:35 pm »
.