Coinbase

Author Topic: Display ads within posts  (Read 15895 times)

0 Members and 1 Guest are viewing this topic.

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Display ads within posts
« on: June 25, 2006, 02: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.


Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #1 on: June 25, 2006, 01: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

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #2 on: June 26, 2006, 08: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

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #3 on: June 26, 2006, 04:03:58 pm »
i think this should work now

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #4 on: June 27, 2006, 09:18:03 am »
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:

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #5 on: June 27, 2006, 11:01:51 am »
try this one

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #6 on: June 28, 2006, 03:11:32 am »
try this one

no error with this one, but no ads within posts  ???

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #7 on: June 28, 2006, 09:16:55 am »
Have you emptied cache and temp files ??

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #8 on: June 28, 2006, 10: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

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #9 on: June 28, 2006, 11:30:12 am »
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 ,

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #10 on: June 28, 2006, 11:48:00 am »
I have juste enter 2, for having ads after second post.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #11 on: June 28, 2006, 11:53:12 am »
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.

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #12 on: June 28, 2006, 12:11:30 pm »
here is the screen :


Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #13 on: June 28, 2006, 12:58:25 pm »
Try this out. If you get an error I think I know what it is, but try it.

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #14 on: June 28, 2006, 01:05:52 pm »
ya, i uploaded the wrong file  :-X

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #15 on: June 28, 2006, 01:07:39 pm »
I was wondering why there wasn`t any edits in it, lol.

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #16 on: June 29, 2006, 02:47:02 am »
It works !!!

No error found ! Wat was your idea ?

See it in action :



Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #17 on: June 29, 2006, 05: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 .

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #18 on: June 29, 2006, 07: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

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Display ads within posts
« Reply #19 on: June 29, 2006, 09:04:39 am »
That would be awesome, thanks for your help. ;)

Offline vconcept

  • Jr. Member
  • **
  • Posts: 12
    • PhoneMag.ch
Re: Display ads within posts
« Reply #20 on: June 29, 2006, 09: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.

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #21 on: June 29, 2006, 09:33:49 am »
thanks

Offline garry

  • Jr. Member
  • **
  • Posts: 17
    • Email
Re: Display ads within posts
« Reply #22 on: July 02, 2006, 01: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


Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #23 on: July 02, 2006, 01: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

Offline garry

  • Jr. Member
  • **
  • Posts: 17
    • Email
Re: Display ads within posts
« Reply #24 on: July 02, 2006, 01: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

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Display ads within posts
« Reply #25 on: July 02, 2006, 02:10:18 pm »
you can try.. see what happends!

SMF Ads Support Forum

Re: Display ads within posts
« Reply #25 on: July 02, 2006, 02:10:18 pm »
.

 

.