News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ad Management mod

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

Previous topic - Next topic

ITA003

Maybe you must chose another format for tower section... You configure one Ads in panel control for every different format.

Usually in the tower section the best format are Skyscraper (120 x 600).



diegolyanky

How to integrate into search.template.php ?? ...

Any suggestion ?

( search.template.php attached here ;) )

SMF ... SimpleMachines ... Simple, but complete if you want it ;)

JoshieDaMan

Anybody help?
Quote from: JoshieTheGreat on August 01, 2007, 03:11:19 AM
I am so confused with this, however I have all of passed except display.template. So I have been trying to work with this manual.

The code from ad management -
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings;]]></search>

<add><![CDATA[
//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads = show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
]]></add>
</operation>


I fellowed it, I probably done it wrong. No doubt about me done it wrong, but heres what I did -

<?php
// Version: 1.1; Display

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;
global $db_prefix;

//Display ads on the thread page
if (function_exists("show_threadAds"))
{
$ads show_threadAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the anchor for the top and for the first message. If the first message is new, say so.


Could you please fix it in my display.template.php? After you finished it, send it back to me then I'll overwrite it. It would be greatly appreciate if you'd do this for me.
Anybody help? The file is on number 86 of page to download my template file for you to fix it. I am desperately in need of this to be done now.

SoKoOLz

#1723
This mod looks great, thank you

B0N35

How can I show the ads if a guest views the page? Cheers

http://www.addictivedesign.co.nz/schoolball [nofollow]

dilipkhanolkar

Quote from: B0N35 on August 06, 2007, 12:33:54 AM
How can I show the ads if a guest views the page? Cheers

http://www.addictivedesign.co.nz/schoolball

Give ad mod permission to show ads to the guest from the permission tab in members section then define the permissions as you want


pulkit

doesn't work for MeshTP theme ... I'm using TP 0.9.8 and SMF 1.1.3 and ad_mod_1-1-x_v2-3.zip ...
The ads show up in default theme ...
Please help ...

dilipkhanolkar

Quote from: pulkit on August 07, 2007, 04:40:25 AM
doesn't work for MeshTP theme ... I'm using TP 0.9.8 and SMF 1.1.3 and ad_mod_1-1-x_v2-3.zip ...
The ads show up in default theme ...
Please help ...

Did you install the mod manually in your custom theme

judah

i have an adsense account, so i can generate ads that way

I've also installed the ad management add on

anyway, i went into the administration centre and clicked on ad management, then i

1 - named the add

2 - copied the adsense html code generated from google and placed it in the content box


3 - then i selected the second to last option...[Display ads on every page as a tower on the right side]

I should not have to name a board as I only have one board, and the ad type is set to html


anyway, i clciked save and went to view a thread, and nothing

i can't see an ad anywhere....what am I doing wrong?

Aquire

It's showing nothing.No ads.

I've added Ads.It's showing in my database. I've attached screenshots.

It's installed successfully.I don't know where is error.?Please help.





Thank you

Bigguy

#1731
@ judah: What theme are you using.

@ Aquire: Are there any errors in your logs

Aquire

You are talking errors during installing or should I check now.

There are some errors in log.But i.e related to other mod. [view only board].

Everything looks ok but still nothing I can see in admin. [screenshot 1]

When I add Ads it gt added in database.I have also checked default files for required modification.and its ok.

I don't know whats going on....

Bigguy

Check to see if the edits were done to the index.php file in the ROOT of your SMF install.

judah

Quote from: Bigguy on August 08, 2007, 11:33:11 AM
@ judah: What theme are you using.

it says Babylon Theme in the theme section.

what theme should i be using, and how do i change it

thanks

Bigguy

You can use any theme but you have to manually edit the template files in order for it to work on any other theme but the default one.

Aquire

I've edited that manually.And wrking fine.

judah

Quote from: Bigguy on August 08, 2007, 03:15:58 PM
You can use any theme but you have to manually edit the template files in order for it to work on any other theme but the default one.


ok...by that, do you mean change the dimensions to accommodate the ad


and if so, how do i manually edit the template files?


Bigguy

To manually edit you need a good editor. Something like Php designer 2007. You would install the mod and then edit the 4 template files of the theme you want to use. All the edits have been written out here:

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

So really all it is is:

1.) install the mod
2.) edit 4 template files in custom theme
3.) re-upload template files (NOT OVERWRITING THE ORIGINALS; RENAME THEM)

Bigguy

I have edited a couple themes already and the template files from them can be found here

Advertisement: