News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

Edits for ad_mod_rc2_v2 for themes other than default

Started by bigguy, June 20, 2006, 08:26:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

underdog

Quote from: bigguy on January 09, 2007, 01:19:51 AM
Did that one work. I will have to get to this tomorrow as it's late here.

I get this error:
Fatal error: Call to undefined function: show_topofpageads() in /home/underdog/public_html/forum/Sources/Load.php(1724) : eval()'d code on line 205

underdog

By install ad-mod 1-1-1_v2 I get this error: Fatal error: packageinstall() [function.require]: Failed opening required '/home/underdog/public_html/forum/Packages/temp/ad_mod_1-1-1_v2/install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/underdog/public_html/forum/Sources/Packages.php on line 549


mmmmmmm :(

underdog

 :'( It's still not working I get the same error over and over again!!

bigguy


soul.guardian

Help BigGuy,

Allright so I tried this out and I kept getting errors.
So here are my four files. Can anyone here help me?

SMF. 1.1.1.  and Orange_it 1.1 theme.

SG

bigguy

I think I just did these for you in another thread. ???

hyipcharts

I am using Mercury theme final. I am sure I followed the set-up exactly as shown, I hope. My problem after doing all the code replacing I get an error.


Fatal error: Call to undefined function: show_topofpageads() in /home/content/h/y/i/hyipcharts/html/forum/Sources/Load.php(1724) : eval()'d code on line 148

Let me know if you need any code or where I can fix this.

http://www.hyipcharts.com  link to my site.

Thanks

bigguy

Make sure LoadAds.php is in the Sources directory and that all the edits are done for the index.template.php and the index.php file.

Johno

I'm using SMF 1.1.2 wrapped in Joomla with the smf_versatility theme....

has anyone managed to get this working with a joomla wrapped board?

Cheers.

iseeuu

This is my first web site and my first attempt at a forum.  SMF rocks!  And this ad mod could really make it easy to rotate ads in and out of the forum, if I can get it to work with my theme.

SMF version 1.1.2, ad mod version 2.3

I modified the classic YaBB SE Theme (1.1 rc2) with my own colors and graphics. (I couldn't figure out how to install one of the many themes available)  I grabbed some full banner and skyscraper ads to test with.  Ads show in default theme.  However, the full banner ad at the bottom of the page floats left.  Nothing I tried would change the placement ie: adding "align="center" to the code or modifing the css.  I would like the horizontal ads to center.  I don't think I will use the skyscraper ads.

After reading several posts here, I went looking around.  I tried editing the template files myself and got the skyscraper ads on the right, and some banner ads at the bottom, under the menu, on the post page but they were not centered and messed up the format.  I grabbed the files here: http://www.smfads.com/forums/index.php?topic=334.0  but they did not fix the ad mod either.

I reinstalled the original Yabb SE theme and reinstalled the ad mod.  If I can get it to work with YaBB SE, I can add my color changes again and it should work fine.

There is no big rush at my end, but it would be nice to be able to "place" ads in my forum with the ad mod.  If some one has the mod files for
   SMF version 1.1.2,
   ad mod version 2.3
   classic YaBB SE Theme (1.1 rc2)
   I would really like copies.  The files here were close: http://www.smfads.com/forums/index.php?topic=334.0 Maybe they just need some tweeking?

With appreciation,

Robert McMellen
infinitecomputerworks.com

bigguy

Did you use the edits for the ad mod for rc3 or the edits for 1.1.2 ???

iseeuu

Not sure, purdy confusin sometimes.  I think I copied the wrong link in my post:   ::)

http://www.smfads.com/forums/index.php?topic=334.msg1708#msg1708

anilkuchana was using 1.1 RC3

then willi1 said: "the changes are different to the vers. 1.1 rc2"

I copied the files willi 1 posted and the one bri posted

and I tried the "classic.zip"  file with the template.index

But first I copied your edit instructions that started with:
In your theme directory find and open index.template.php and search for:

Code:

<body>';


I was even able to find the elusive "</td>" by looking at the default index.template.  I edited the four "template" files.

Then there was another set of instructions which was very confusing because it said to:

In the same file search for:

Code:

   template_menu();


Then add BEFORE:

Code:

when the first set of instructions (the ones I tried) said:

In the same file find:

Code:

   template_menu();


After that add:

Code:

So I am still not sure whether to edit before or after?

If you can point me in the direction of files or edit instructions for:

SMF version 1.1.2,

ad mod version 2.3,

Classic YaBB SE Theme (1.1 rc2)

I would gladly spend another couple of days trying to do the edits myself.  Every project I do I learn so much.

Robert

bigguy

"In the same file search for:" means in the one you are still editing as in the index.template.php file.

iseeuu

Very true.

What confused me was first to

find:  Code: template_menu();

After that add:

Code:  //Below the menu ads
      if (function_exists("show_indexAds")

When the other set of instuctions said to find the same code: template_menu();

Then add BEFORE: Code:
   //Below the menu ads
   $ads = show_indexAds();   

So, in one case you put "//Below the menu ads" BEFORE code: template_menu();
but in the other you put "//Below the menu ads" AFTER code: template_menu();

But what do I know?  We are working with different versions of SMF, YaBB, and the Ad Mod.  I just don't want to give up because I am so close to getting it to be fully functional.  I just need to find the right combinations for the versions I have?

Robert  :})

bigguy

Follow the instructions for the version of ad mod you are using and you should be fine. Having a editor that can debug is also a plus. ;)