SMF Ads Support Forum

Support => Ad Support => Topic started by: vconcept on June 25, 2006, 03:21:51 AM

Title: Display ads within posts
Post by: vconcept on June 25, 2006, 03:21:51 AM
this function doesn't work on my board.

Here is my Display.Template.php. Can you check it please ?

To thank you for your assistance and if you wish it, I can deal with the translation in French.

Title: Re: Display ads within posts
Post by: jerm on June 25, 2006, 02:43:18 PM
it should be Display.template.php, not .mod

and its okay for the french translation, i've got someone, just waiting for her to get back to me
Title: Re: Display ads within posts
Post by: vconcept on June 26, 2006, 09:06:10 AM
 ;D

Here the file ?Display.Template.php?. It is the same one as ?Display.Template.mod?. In fact when I modify a file locally I always keep a copy of this one with the extension .mod (for modified).

Thanks in advance for your help
Title: Re: Display ads within posts
Post by: jerm on June 26, 2006, 05:03:58 PM
i think this should work now
Title: Re: Display ads within posts
Post by: vconcept on June 27, 2006, 10:18:03 AM
Quote from: jerm on June 26, 2006, 05:03:58 PM
i think this should work now

No, it's not ok :

Quote
Parse error: syntax error, unexpected $end in .../Themes/default/Display.template.php on line 833

824:    </tr>
825: </table>';
826:
827:       if ($context['show_spellchecking'])
828:          echo '
829: <form name="spell_form" id="spell_form" method="post" target="spellWindow" action="', $scripturl, '?action=spellcheck"><input type="hidden" name="spellstring" value="" /></form>';
830:    }
831: }
832:

833: ?>

834:
835:
Title: Re: Display ads within posts
Post by: jerm on June 27, 2006, 12:01:51 PM
try this one
Title: Re: Display ads within posts
Post by: vconcept on June 28, 2006, 04:11:32 AM
Quote from: jerm on June 27, 2006, 12:01:51 PM
try this one

no error with this one, but no ads within posts  ???
Title: Re: Display ads within posts
Post by: bigguy on June 28, 2006, 10:16:55 AM
Have you emptied cache and temp files ??
Title: Re: Display ads within posts
Post by: vconcept on June 28, 2006, 11:51:56 AM
Yes I do.

You can try yourself in this forum (I will delete your thread after test) :

http://www.phonemag.ch/forum/index.php?board=9.0 (http://www.phonemag.ch/forum/index.php?board=9.0)
Title: Re: Display ads within posts
Post by: bigguy on June 28, 2006, 12:30:12 PM
Have you entered the nuber of the post that you want the ads to show under. ??? I would think you have by now and seperated them with a ,
Title: Re: Display ads within posts
Post by: vconcept on June 28, 2006, 12:48:00 PM
I have juste enter 2, for having ads after second post.
Title: Re: Display ads within posts
Post by: bigguy on June 28, 2006, 12:53:12 PM
have you tried taking the , out of it that is after the 2 I don`t think you need that unless there is more than 1 number.
Title: Re: Display ads within posts
Post by: vconcept on June 28, 2006, 01:11:30 PM
here is the screen :

Title: Re: Display ads within posts
Post by: bigguy on June 28, 2006, 01:58:25 PM
Try this out. If you get an error I think I know what it is, but try it.
Title: Re: Display ads within posts
Post by: jerm on June 28, 2006, 02:05:52 PM
ya, i uploaded the wrong file  :-X
Title: Re: Display ads within posts
Post by: bigguy on June 28, 2006, 02:07:39 PM
I was wondering why there wasn`t any edits in it, lol.
Title: Re: Display ads within posts
Post by: vconcept on June 29, 2006, 03:47:02 AM
It works !!!

No error found ! Wat was your idea ?

See it in action :


Title: Re: Display ads within posts
Post by: bigguy on June 29, 2006, 06:34:46 AM
I thought I had one to many } in there somewhere but I guess not. Glad to see it`s working for you .
Title: Re: Display ads within posts
Post by: vconcept on June 29, 2006, 08:01:35 AM
Thank you still!    As I said it to Jerm I am finalizing the French translation. I will send it to you by the end of the day
Title: Re: Display ads within posts
Post by: bigguy on June 29, 2006, 10:04:39 AM
That would be awesome, thanks for your help. ;)
Title: Re: Display ads within posts
Post by: vconcept on June 29, 2006, 10:24:36 AM

As promised, here is translation in French. It is installed on my site, therefore all appears ok.

Thank you in advance of your feedback.

Thank you still for your assistance.

See you.
Title: Re: Display ads within posts
Post by: jerm on June 29, 2006, 10:33:49 AM
thanks
Title: Re: Display ads within posts
Post by: garry on July 02, 2006, 02:31:41 PM
Is this forum /board set up to display adds after every 3rd post

if so  how do you tell it to do it after every 3rd post

I got it to display after the 3  post  but no more after that

Title: Re: Display ads within posts
Post by: jerm on July 02, 2006, 02:35:41 PM
it displays after the 3rd and 7th.
i do that by typing in this:
3,7
you can put it after the first second third etc, by doing this:
1,2,3
Title: Re: Display ads within posts
Post by: garry on July 02, 2006, 02:56:38 PM
Yea I figued it out from another post I had

can we use a formula to incrriment the post number somehow  grin


;D ;D ;D
Title: Re: Display ads within posts
Post by: jerm on July 02, 2006, 03:10:18 PM
you can try.. see what happends!