News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

Muldoon

Wow, I wonder why I'm the only one that can see it.  I logged out, can't see it, logged in as a normal user and can't see it either.  Ok, let me replicate the top menu ad in that gray area and I'll see about a user being able to view the ad...

ɔɔɔɔɔɔuɥoɾ

its probably not that, more than likely its a permission issue, check the permission settings


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Muldoon

In Mesh theme index.template.php
Find:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;


Add after:

  //Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //Tower left Ads
      $ads = show_towerleftAds();
      if(!empty($ads))
         echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

      unset($ads);
      //Tower Right Ads
      $ads = show_towerrightAds();   
      if(!empty($ads))
         echo '<table><tr><td width="100%" valign="top">';
      unset($ads);
   }   


OK, so when I did this, maybe we are getting close.  It places the banner ad in the gray area just above the menu in the center, as I centered it. 

But I don't understand why I am the only one that can see the ads?  Non of them are checked for being disabled...

On another note, I did find that under Admin > Current Theme >

There is an option to check the box for 'Support for Ad management Mod'  However when I do this (without manually editing the code the banner ad shows up properly below the menu in the black, below the gray color, but then no ad shows up on the bottom of the page...

But I don't know if it's just me that can see it either...

Muldoon

#4303
'Enable Ads' in permission settings...who would have thought?  :)

So you should be able to view the ads now top and bottom

ɔɔɔɔɔɔuɥoɾ

I can see the ad at the bottom
I can see the ad at the top,

Looks like those edits were good calls, pats self on back lol..

about moving the ads, I would leave them there, they look good there :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Muldoon

Well thanks for taking a look and helping me out johncccccc.  I will leave them for now.  I would like to ultimately see how they look in the black just below the gray and just above the red on the bottom some time...  So if you think of anything, just let me know :).  Thank you so much!

And I will keep trying on my end.
Muldoon

Muldoon

johncccccc!  I figured out how to get the ad in the black, however I just can't seem to center it...haha.  but it below the menu, and actually below the linktree now.  How does it look???  :)

EDIT:  Scrap that...when I click into the boards, it's all messed up... I'll have to put it back I think.

MultiformeIngegno

RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

DUNBAR

#4308
 I'm new to SMF and I've been able to upload this so far as a mod:


Files in archive ad_mod_v2-3-5_SMF_v2-0RC1-1.zip:
1.Ads.english.php (11713 bytes)
2.Ads.english-utf8.php (11712 bytes)
3.Ads.php (12438 bytes)
4.Ads.template.php (25340 bytes)
5.install.php (2398 bytes)
6.install.xml (12762 bytes)
7.LoadAds.php (8613 bytes)
8.package-info.xml (1145 bytes)
9.readme.txt (2156 bytes)



I'm assuming that I have to upload this package through my FTP client in order for this to work?

I'm having difficulty with getting to know this new format. Help is appreciated.




kyoote

hello, i have SMF 2.0 RC1.2 with default theme "classic Yabb SE Theme"

I install 2 packages, HIDE TAG and Ad management.

My ads are not showing up and I have also tried to test it by inputting

<center>THIS IS A TEST TO SEE IF THE AD MANAGEMENT MOD IS WORKING</center>
in the content area,

with Display ads within posts as 1,2  and Display ads on the bottom of the page  CHECKED.

I dont see the text either

Under settings, only "Ads within posts look like actual posts" is checked.

Anyone know why it is not showing?

ɔɔɔɔɔɔuɥoɾ

Have you tried other settings?

Things to check out before editing any files.

Check General Permissions, check off that ads are on for every membergroup you want to see them.

Check, the mods own settings tab, Enable ads should be checked.

Check those and then post back here with the news :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

kyoote

thanks for fast reply.
I cant seem to find the

Check General Permissions, check off that ads are on for every membergroup you want to see them.

Check, the mods own settings tab, Enable ads should be checked.


I am checking under members --> permissions --> i dont see anything
and there is no Enable ads when i goto the the Ad Management under Configuration

ɔɔɔɔɔɔuɥoɾ

Sorry, It actually says "Disable All Ads" make sure its unchecked.

index.php?action=admin;area=ads;sa=main;sa=settings <thats the location of the settings page.

index.php?action=admin;area=permissions <the general permissions area - it should be in there, its says "Enable Ads" however as admin this setting does not matter, if you cant see ads as administrator then the problem is elsewhere.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Bolerro

Is there any way to setup the various ad locations for different membergroups?

I want guests to see all ad locations that I have ads assigned to. Then I want registered users to see a few less ads. And then finally I want full members and admins to see only one ad at the bottom.

P@P

Any news regarding SMF 2.0 RC2?
www.portugal-a-programar.org - Admin shared user
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

replay

is ad management ready for 2.0 rc1.2 yet

Cheers

P@P

replay, I said RC2, not RC1.2.

ad management isn't ready for SMF 2.0 RC2 yet.
www.portugal-a-programar.org - Admin shared user
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

wilkins

I installed this and did not work for me, I am sure it was something I was doing.

I pasted the .js code in the text area, in the Admin section.  It was providing me a space, but the ad never showed.

So now I uninstalled it and deleted it and now have this below the SMF machines footer.  Can anyone help me delete this?

"); pageTracker._trackPageview(); } catch(err) {}

Libelcom

Hi, there,

I installed this ad-mod. It works well, but each and every ad appears 4 - 5 times on my forum! Strange. Could someone explain to me why and how to solve it? Thank you!

PS: I am using SMP 1.1.10 with TinyPortal and Ad_mod_v2-3-1_SMF_V1-1-X
libelcom®

ApplianceJunk


Advertisement: