News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

ad mod for saf?

Started by goldberg, March 08, 2007, 03:10:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

goldberg

hi,
i just wanted to know has anyone been able to get this ad mod working on saf-multicolour theme?, I'm having problems with the display.template  :(

bigguy

It might have been done. Have you searched the forum for those files. ???

cgroove

I thought I had it for a sec & then had to edit my post.. didnt get it.
If anyone has it, I checked around & didnt find it either.. so I'd like to see how someone got it going!  :)

topnet

the ones available are not working properly, I am also waiting for it since a long time
please help

http://www.smfads.com/forums/index.php?topic=583.0
http://www.smfads.com/forums/index.php?topic=122.0

bigguy

If one of you has unmoded template files for that theme upload them here. Their should be 4 of them.

topnet

whole theme attached
thank you bigguy

bigguy

I didn't need the whole thing just the 4 template files.

cgroove

Hey guys.
Dunno if there was followup on this.

Im using v2.3 with SAF & in case thought I would up the files I have.
*these are not modified, they are the originals.

I included the 7 files that are listed in the other thread.

Stu

Quote from: bigguy on March 20, 2007, 01:50:28 AM
I didn't need the whole thing just the 4 template files.

Were you succesfull in working things out bigguy?

cgroove

Ive been playing & I can get it to show up if Im logged in as admin...but only for the admin user.
still playing around, if I do get it I will be happy to post the files too :)

bigguy

Please, just the 4 template files are needed:

index.template.php
boardindex.template.php
MessageIndex.template.php
display.template.php

cgroove

Those were in my zip.
Here are the 4 files sans zip too.
Im still working on mine too.. maybe I should stop trying during late nights tho.. lol

bigguy

I will try to get to these as soon as I can.

cgroove

no worries, Ive been trying to work on them too...can get them to work but only visable as root user.
Ive seen through the forums you do alot of this stuff for everyone, thanks alot for the help.
Im going to be curious to see what code I might have missed to get going too lol.

bigguy

A good editor always works wonders. ;)

cgroove

was there any luck with this one? Im still trying off & on too but nothing outside onl displaying if logged in as admin.

bigguy


bigguy

Try these out, BACKUP FIRST

goldberg

hey Bigguy,
that works  :) thanks so much your a legend  8)

bigguy


cgroove

#20
just grabbed them & workin great too.. goin to scan through & see where I made my mistakes :S

thanks for the help & hard work!!!

K maybe I spoke too soon. I only see the ads if I am logged in as Admin. If I create a new user no ad appears...
Could I be missing something?

*k new update.. I AM AN IDIOT. I had it working before too.. problem was me being a putz & not "Enable Ads" in the member permissions... urgh.
Thanks again for your help bigguy.. wow I feel dumb lol

bryan

cgroove, no worries, I was putzing it up too.  Thankfully you came back and did an update between the time I first read your post and when I started hacking around in the code : )

thanks for the files bigguy

merosler

#22
Hi Biguy,

I tried downloading your files above and so far so good, but for some reason my right tower ad on the right is not lining up correctly (you can see it on http://www.went2networks.com/smf).  It also is not working on my board/display/message index pages.

If you have a moment, would you mind helping me solve this problem?  I appreciate your time!

In the event that you can, I have attached the relevant files below. 

thanks,
Matt

merosler

Hi again Bigguy,

So i played with the files mentioned in this thread above and managed to get some of the pages to work, but for some reason my right tower ad on the right of the message/post page here doesn't appear.. (http://went2networks.com/smf/index.php?topic=5.0). 

Not sure which file to modify...I think it may be the display.template.php, but i haven't had luck with that one.

If you have a moment, would you mind helping me solve this problem?  I appreciate your time!

In the event that you can, I have attached the relevant (I think) file below. 

thanks,
Matt

bigguy

There is no tower ad code in that file. If you follow the edits you can probably put it in. It should have been there and I am not sure why it isn't.

Jacque

Hello!

I had errors with ads breaking the page in the index.template in the top and bottom of page positions.
Played around with the code and I think this works below.

One question though, I can't get the ads to center??  Any help would be appreciated!


Was causing errors the Ad Mod code was placed after:
', theme_copyright();


and I think it should be as below...


Find in index.template.php:
        <td class="footer">

                <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">


Add to the end of above line:
      ';
               
               
      if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td  valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';

unset($ads);
//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

echo '