SMF Ads Support Forum

Support => General Support => Topic started by: macaa on May 10, 2007, 11:02:47 AM

Title: help
Post by: macaa on May 10, 2007, 11:02:47 AM
I have installed admod, but after installation the mod did not work and I changed language to ENGLISH and not ELGLISH-UTF8. After I saved it everything was lost. I keep getting message:" Connection Problems Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.when I want to log in." I'm using midnight ocean theme, vr1.1.2
Title: Re: help
Post by: |||||| on May 11, 2007, 09:18:31 PM
mod works with default template only. Rest need to be done manually.
Title: Re: help
Post by: bigguy on May 22, 2007, 04:23:57 PM
Has this been solved yet. ???
Title: Re: help
Post by: macaa on June 03, 2007, 05:27:13 PM
Yes. I only have one problem, when I try to replace in the display.template.php 
"// Get all the messages..."         
         with
      //Ad Counter
   $adcounter =0;
   // Get all the messages...
   while ($message = $context['get_message']())
   {
      $adcounter++;
I get a message : "The file you tried to save generated the following error:
Parse error: syntax error, unexpected $end in Display.template.php on line 793"
thank you
Title: Re: help
Post by: bigguy on June 12, 2007, 06:32:26 PM
If you look closely at that part of the code you will see a duplicate line there, remove it and you will be golden. I think it is this line that is in twice:

while ($message = $context['get_message']())
   {