Ad Management mod

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

Previous topic - Next topic

NoobDeveloper

yes.

click on Admin > Members > Permissions

Now you will see all the member groups.  for each member group click on Modify button and find option called Ad Management. In that tick 'Enable ads'

do this for each member group for which you want to show banner/ads.

NoobDeveloper

Quote from: smp420 on January 16, 2010, 03:28:18 AM
attach your index.template.php I can edit this for you.

sure buddy.  let me install all other mods and in the end i will attach that file here. 

HappyHooligan

Did all that but still getting the red cross?

Any ideas?
If not I'll have another go and start fresh again.

Thanks for the step by step instructions though it makes it a lot easier  ;D

NoobDeveloper

red cross is because image URL is not proper.

kr5323

In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

chilltraveler

Quote from: HappyHooligan on January 16, 2010, 09:19:31 AM
I don't want to earn money from the ads. The forum is for local shops and businesses so for example there is a forum for mountainbiking which will have a banner from a local mountain biking company at the top of the forum and a person from that company will also moderate it. I just want to know if it is possible to have a banner ad that I have created placed at the top of the topic or board? If so how do I go about etting it there using this Mod?
I've looked elsewhere on the forum but they all seem to lead to dead ends or people have not replied to the same question!
Thanks

Here is the code I believe you are looking for.  Just replace the url's for the image and where you want it to point to.

<a href="http://www.yoursite.com" target="_blank"><img border="0" src="http://www.yoursite.com/your directory/your_image.jpg" width="size in pxls" height="size in pxls" alt="your copy"></a>
<br><br>


The <br><br> are breaks between ads so they do not stack up.  If you are using only one ad, you can eliminate them

Hope this helps.

Bob

kr5323

Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.

Owdy

Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

kr5323

Quote from: Fossil on January 17, 2010, 06:37:21 AM
Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.

Yes and I have been using ad-management has long been on my site and have never had problems.

Do not need anyone to convince me the convenience of this mod, for me ... essential.

Now I try upgrading to smf 2.0 and note the failure to expose and try to find a solution. So I call in the support forum.

I do not know if this is a problem that only occurs on my site or is a problem affecting the mod. Hence my approach in the support forum, I assume that incidents raised by users is what makes it better, day by day, the mod.

I just want to clarify whether there is evidence that ad-management manegement "Display advertising message index" activating properly advertising in default theme and smf 2.0.




Regards and sorry for my english.

Owdy

kr5323, i wasnt directing you, just saying in general :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Arantor

Quote from: Fossil on January 17, 2010, 06:37:21 AM
Did you know this Mod has been allways in top3 in mod site. Popular mod. I wonder how many downloads.

Apparently, 146,647.
Holder of controversial views, all of which my own.


Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Arantor

Aeva has over 200k but I gather that's down to how it does site-list updates.
Holder of controversial views, all of which my own.


kr5323

Quote from: Fossil on January 17, 2010, 07:07:33 AM
kr5323, i wasnt directing you, just saying in general :)

Then see if anyone knows answer to my question. For me it's critical to find solutions and is a problem that affects a correct integration of mod smf 2.0 rc2.

smp420

#4774
Quote from: kr5323 on January 17, 2010, 06:29:03 AM
Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.
I tried this and you are right. I will try to get it to work and I will let you know if I do



Edit I got this to work first find in MessageIndex.template.php
//Display Ads on the Message index
                if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


and move that under echo '
<a id="top"></a>';
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

kr5323

Thanks for your answer.

Sorry, but i speak english only a bit.

Quote from: smp420 on January 17, 2010, 01:43:27 PM
Quote from: kr5323 on January 17, 2010, 06:29:03 AM
Quote from: kr5323 on January 16, 2010, 03:00:30 PM
In SMF 2.0 and default theme ... NOT WORKING the option: "Display advertising message index" in ad-manegement 2.3.6.

Is there a solution?

I have long been trying to solve this problem advertising manager, I have come to the support forum of the mod and no one responds. I do not understand, because my problem might be a possible fault of the mod and I guess the creator is interested in the functioning RC2 SMF 2.0.

Beg an answer.
I tried this and you are right. I will try to get it to work and I will let you know if I do



Edit I got this to work first find in MessageIndex.template.php
//Display Ads on the Message index
                if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


and move that under echo '
<a id="top"></a>';


Sorry, but i don´t understand.

My actual messageindex.template.php include the nesxt code in the first of the file:


// Version: 2.0 RC2; MessageIndex

function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
//Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


echo '
<a id="top"></a>';

if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder" id="childboards">
<h3 class="catbg"><span class="left"></span>', $txt['parent_boards'], '</h3>
<div class="table_frame">
<table class="table_list">
<tbody class="content"> ';

foreach ($context['boards'] as $board)
{
if(!empty($board['children']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
tidyBoards($board);
echo '
<tr class="windowbg2">
<td class="icon windowbg"', !empty($board['children']) ? ' rowspan="2"' : '', '>
<a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

if ($board['new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on.png'))
$board_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on.png';
else
$board_new_img=$settings['images_url']. '/on.png';

echo '<img src="', $board_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} elseif ($board['children_new']) {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/on2.png'))
$childboard_new_img=$settings['theme_url']. '/icons/' . $board['id'] . '/on2.png';
else
$childboard_new_img=$settings['images_url']. '/on2.png';

echo '<img src="', $childboard_new_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
} else {
if (file_exists($settings['theme_dir'] . '/icons/' . $board['id'] . '/off.png'))
$board_nonew_img=$settings['theme_url']. '/icons/' . $board['id'] . '/off.png';
else
$board_nonew_img=$settings['images_url']. '/off.png';

echo '<img src="', $board_nonew_img,'" alt="', $txt['no_icon'], '" title="', $txt['no_icon'], '" border="0" />';
}
// Is it a redirection board?
if ($board['is_redirect'])
echo '<img src="', $settings['images_url'], '/redirect.png" alt="*" title="*" border="0" />';


echo '</a>
</td>
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b>';





¿What i have to do??



Thanks, very thanks for your answer.

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

smp420

It should look like this


// Version: 2.0 RC2; MessageIndex
function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
                echo '
               <a id="top"></a>';

                //Display Ads on the Message index
if (function_exists("show_threadindexAds"))
{
$ads = show_threadindexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Yahmez


kr5323

SMF lost the best mod !!!!!


Advertisement: