Coinbase

Author Topic: Corporate America Theme Not Compatible with SMF Ads?  (Read 11015 times)

0 Members and 1 Guest are viewing this topic.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Corporate America Theme Not Compatible with SMF Ads?
« on: July 29, 2008, 10:38:06 pm »
Hi,

I'm using the Corporate America theme  :P ::) :D but it seems SMF Ads don't work well with it by default. What do I need to edit and which files so this mod will work?

Thanks.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #1 on: July 29, 2008, 10:44:22 pm »
You'll be needing to edit the theme you're using by editing the core templates via FTP. How do I use FTP? / What is FTP?

The location of the files is %root%/%smf_root%/Themes/*name of theme*/

If you want, attach your index.template.php file here and I'll take you through it step by step.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #2 on: July 29, 2008, 10:51:11 pm »
Thanks for the quick reply, ccbtimewiz  :)

I'm familiar with FTP, so I'm attaching the index.template.php file.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #3 on: July 29, 2008, 11:02:01 pm »
Here you are.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #4 on: July 29, 2008, 11:05:50 pm »
Thanks again. I'll try it out :)

EDIT: It still won't work :(
« Last Edit: July 29, 2008, 11:50:29 pm by Craw »

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #5 on: July 30, 2008, 08:49:18 am »
Strange, are you sure that is the theme you're set to using?

Are you sure that index.template.php file is from %smf_root%/Themes/*your_theme*/?

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #6 on: July 30, 2008, 09:20:09 am »
Yes sir.

Hold on, lemme try to attach it again. I'll do it again slowly to be sure :D

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #7 on: July 30, 2008, 10:19:58 am »
Alright, try this out..

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #8 on: July 30, 2008, 07:12:36 pm »
Hi ccbtimewiz,

It's still not working. I made sure admins can see ads and I tested it with AdSense but it's still not showing. I've refreshed a few times already but the ads still don't appear.

 :'(

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #9 on: July 30, 2008, 09:15:48 pm »
The edits I made only make the top ads appear. Make certain you're putting ads into the top of your forum at the moment.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #10 on: July 30, 2008, 09:27:23 pm »
Oh, OK. The slot I was testing was the one after the last post.

I edited it and it's now showing at the topmost part of the page (above the main header & nav).

I guess we still need more editing?

Thank you, now we're getting somewhere  :) :)

Offline riversen

  • Jr. Member
  • **
  • Posts: 31
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #11 on: July 31, 2008, 12:31:13 am »
Just use the SMF Packet Parser to see where you need to do your edits:

http://sleepycode.com/PackageParser/index.php
« Last Edit: July 31, 2008, 06:28:18 am by riversen »

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #12 on: July 31, 2008, 06:26:24 am »
Just use the SMF Packet Parser to see where you need to do your edits:
I'm using SMF 1.1.5 and the highest option is 1.1.3... will it work?

Offline riversen

  • Jr. Member
  • **
  • Posts: 31
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #13 on: July 31, 2008, 06:28:32 am »
Just use the SMF Packet Parser to see where you need to do your edits:
I'm using SMF 1.1.5 and the highest option is 1.1.3... will it work?

Sorry... wrong link.. I've edited it.

Offline Craw

  • Jr. Member
  • **
  • Posts: 14
Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #14 on: July 31, 2008, 07:12:56 am »
Thanks. I'm trying it out now but I got stuck as the parser was telling me to look for:

Code: [Select]
echo '
</div>';

in BoardIndex.template.php but that snippet of code does not exist... I need to add:

Code: [Select]
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

after... any idea where I should add this? Thanks.

SMF Ads Support Forum

Re: Corporate America Theme Not Compatible with SMF Ads?
« Reply #14 on: July 31, 2008, 07:12:56 am »
.

 

.