Coinbase

Author Topic: Need help installing ads mod on Red FS custom theme  (Read 15503 times)

0 Members and 1 Guest are viewing this topic.

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Need help installing ads mod on Red FS custom theme
« on: July 31, 2009, 08:50:19 pm »
Hello,

I tried to follow the guide to install the ad mod on a custom theme.  Most edits matched up perfectly but several in the index.template.php file do not.  I am getting a parse error and this only occurs if this file is uploaded to the server.  All the other edited files are uploaded to the server as well and seem to have no effect but I think that is because index.template.php is not working correctly.

I am attaching this file, can someone please edit it or tell me how to do so?

Thank you very much!
« Last Edit: August 07, 2009, 07:35:59 pm by docprego »

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #1 on: July 31, 2009, 10:20:50 pm »
Interestingly I found that ads are working even if I don't upload index.template.php.  When I uploaded it I was getting parse errors and the forums wouldn't load.  Without it, using the default file my site is loading up just fine with some ads.  I don't get the ads in all of the locations that the Ad Management configuration panel says that they would be available.  But I am getting them on the board index and message index, after the last post and also within posts and after categories.  That's good actually as it puts ads pretty much all over my forums.  

I am assuming that if someone modified my index.template.php file I would be able to place ads in all the places that the Ad Management configuration panel indicates are possible.  So If anyone would be willing to help it would still be greatly appreciated.
« Last Edit: July 31, 2009, 10:23:48 pm by docprego »

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Need help installing ads mod on Red FS custom theme
« Reply #2 on: August 02, 2009, 01:30:35 pm »
Did you read the sticky?

Quote from: ccbtimewiz
A custom theme is any theme you use in replacement of the default theme. Modifications through the Package Manager are installed on the default theme's template files. It is quite difficult for a modification's author as well as a theme creator to make their modifications work with other themes especially if they have several of their own template files. When a template file is not found in a custom non-default theme, the theme will rollback and use the default theme's template. However for the template files that the custom theme does use, you will need to manually install the modification on to template files.


Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #3 on: August 02, 2009, 05:11:08 pm »
Did you read the sticky?

Quote from: ccbtimewiz
A custom theme is any theme you use in replacement of the default theme. Modifications through the Package Manager are installed on the default theme's template files. It is quite difficult for a modification's author as well as a theme creator to make their modifications work with other themes especially if they have several of their own template files. When a template file is not found in a custom non-default theme, the theme will rollback and use the default theme's template. However for the template files that the custom theme does use, you will need to manually install the modification on to template files.


Please help me with the edits I need to do to make the ads mod work on the Red FS theme.  All the other files are fine except index.tremplate.php is very different than the default file so I am unsure how to apply the edits.

Thank you.
« Last Edit: August 04, 2009, 12:12:22 am by docprego »

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #4 on: August 06, 2009, 11:03:52 pm »
Can anyone help me with this please?

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Need help installing ads mod on Red FS custom theme
« Reply #5 on: August 07, 2009, 01:28:18 pm »
Could you please attach the file?

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Need help installing ads mod on Red FS custom theme
« Reply #6 on: August 07, 2009, 01:49:35 pm »
this should work

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #7 on: August 07, 2009, 07:33:49 pm »
this should work

Thank you so much,  I tried it but I got this error:  

Template Parse Error!
There was a problem loading the /Themes/red_fs/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

Also I looked at the manual install instructions for my version which is 1.1.10 and one of the steps is not in the file you edited, this is the one that is missing:

Find: [Select]

                     </td>

Add After: [Select]

';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                  echo '

« Last Edit: August 07, 2009, 08:01:15 pm by docprego »

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #8 on: August 07, 2009, 07:36:52 pm »
Could you please attach the file?

Sure here it is.

Thanks!

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Need help installing ads mod on Red FS custom theme
« Reply #9 on: August 08, 2009, 02:13:30 am »
I think I fixed it

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #10 on: August 08, 2009, 11:21:49 am »
I think I fixed it

Thank you very much again.  Now I am getting this error:  "Unable to load the 'main_above' template."

Also I noticed that you did not add in this edit still:

Find: [Select]

                     </td>

Add After: [Select]

';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                           echo '</td>';
                        }
                        unset($ads);
                     }
                  echo '

Is there a reason you are leaving this one out?

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Need help installing ads mod on Red FS custom theme
« Reply #11 on: August 08, 2009, 11:28:54 am »
yes there is that part is not in the file and its not needed try it now

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #12 on: August 08, 2009, 11:43:10 am »
yes there is that part is not in the file and its not needed try it now

Same error message: "Unable to load the 'main_above' template."

Offline pmf41

  • Jr. Member
  • **
  • Posts: 34
Re: Need help installing ads mod on Red FS custom theme
« Reply #13 on: August 08, 2009, 12:05:29 pm »
ok ill try again
« Last Edit: August 08, 2009, 12:11:42 pm by pmf41 »

Offline docprego

  • Jr. Member
  • **
  • Posts: 15
    • Email
Re: Need help installing ads mod on Red FS custom theme
« Reply #14 on: August 08, 2009, 12:11:27 pm »
how about now

Unfortunately still the same message.

SMF Ads Support Forum

Re: Need help installing ads mod on Red FS custom theme
« Reply #14 on: August 08, 2009, 12:11:27 pm »
.

 

.