Ad Management mod

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

Previous topic - Next topic

smp420

Quote from: lindseylakeshore on November 04, 2009, 06:10:31 PM
Hello I have ad mod running on 1.1.10 and want 4 ads to run across the top of the forum but can only place one how do i edit it for four across if i place a second one it goes right over the previous ad, any ideas?? thanks
Just put them in a table

<table>
<tr>
<td>
image1 code here
</td>
<td>
image2 code here
</td>
<td>
image3 code here
</td>
<td>
image4 code here
</td>
</tr>
</table>

Quote from: gumnaam on November 03, 2009, 10:04:25 PM
i just tried to install by typing in address bar mydomain.com/install.php, then i got this eror message,

Fatal error: Function name must be a string in /home/ixtodayc/public_html/nribook/forum/install.php on line 8

plz help.

thanks
It sounds like you are trying to install smf try here http://www.simplemachines.org/community/index.php?board=10.0
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Harvester

Is there anywhere to make the post ads not use the "sticky" post background color? Id like to be able to make it a different background color.

Isabelle88

#4362
I have one quick question before I install it, i have to do it with parse because I have trouble applying mods,  what page do i edit to place my own adsense ID?

and this part: this file should not be able to execute standalone. You may have to run the following queries manually.

how do i do that? in easy terms.

thank you

Harvester

Once you have the mod installed, you simply create a new add and paste your adsense code in the form. Its very simple.

smp420

#4364
Quote from: Harvester on November 05, 2009, 12:59:49 PM
Is there anywhere to make the post ads not use the "sticky" post background color? Id like to be able to make it a different background color.

change all instances of windowbg3 to windowbg2
if you want to have the color different than this let me know and I will tell you how
if (function_exists("show_posts"))
{
if ($adpost = show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</td>
</tr>
</table>
</td></tr>';
}

}

}

if(function_exists("show_lastpostAds") && function_exists("show_posts"))
{
if(($ads = show_lastpostAds()) && !show_posts($adcounter))
{
if($modSettings['ads_lookLikePosts'])
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">
&nbsp;</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';


echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
else
echo '
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr>
<td class="windowbg3">', $ads['type'] == 0 ? $ads['content'] : eval($ads['content']) , '</td>
</tr>
</table>
</td></tr>';

}

}]]>
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Harvester

Thank you SMP :)

which file am I looking to edit SMP?

jclawson27

Hi, I'm still a newbie when it comes to all of this so your help is needed just on some clarification so that I don't screw up my site too horrible lol.

So I did all the code changes and uploaded them, but I'm confused on install.php file. I don't know what to do here, don't know how to run queries manually.

I am using 1.1.10

smp420

Quote from: Harvester on November 06, 2009, 11:42:34 AM
Thank you SMP :)

which file am I looking to edit SMP?
its in the display.template make sure you only change the ad management code
Quote from: jclawson27 on November 06, 2009, 12:29:28 PM
Hi, I'm still a newbie when it comes to all of this so your help is needed just on some clarification so that I don't screw up my site too horrible lol.

So I did all the code changes and uploaded them, but I'm confused on install.php file. I don't know what to do here, don't know how to run queries manually.

I am using 1.1.10

You shouldnt have to do this just use the package manager and it should be fine
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

abidejaz4u

Any body here for Help me :(

bburg5

I am looking for a rotating option to add to my page. I want the ads to rotate with each click...

Does this exist on here?

Thanks

Bigguy

Show two different ads in one place, on page refresh the ad will change.

bburg5

Yes, That is what I am looking for.... Do you know af any?

Rowdy

Is this mod compatible with SMF RC2?

Thanks!

Bruno36

Hello!

A version for SMF 2.0 RC2 is provided for?
Bruno36 the French
SMF 2.0.9

Yahmez

Quote from: bburg5 on November 09, 2009, 12:35:08 PM
Yes, That is what I am looking for.... Do you know af any?
Re-read Bigguy's post. He was telling you how to do it thru the ad mod. Not asking you if that's what you wanted...  ;)

Bolerro

Quote from: Bruno36 on November 09, 2009, 02:37:12 PM
Hello!

A version for SMF 2.0 RC2 is provided for?
I hope there will be... but not sure if Jerm is still updating this so quite possible it may wait until someone buys it from him.

mseraphim

Hi, I've tried to install the "ad management mod" and it comes up with the following error:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

I assume this is a default error message.  The test failed with several files:
themes/default/index.template.php
themes/default/Boardindex.template.php
themes/default/Messageindex.template.php

I am running wamp server on my local computer with SMF version 2.0 RC2.
the permissions for these files are 0755 - writable, and I'm unable to change it to 0777.

Is there anyone that could please offer me advice on installing this mod?

thank you
mseraphim

c23_Mike

Hi there!

Since there is the SMF 2 RC2 not listet at the comaptible SMF list it will not work there. Last SMF of the version 2 branch is RC1-1.
So you have to wait for an update or use the version 1 branch of smf.
So long, Mike

http://www.c23.at
c23 - DER Computer Club
~ never play alone ~

mseraphim

Thanks Mike,

May I ask, how is it that other people are then displaying adds on their sites?  Is there another mod that could be used to display adds as good as this one?

mseraphim

c23_Mike

Hi there !

Good question, I search for myself and wait for Ad management mod updated for SMF 2 RC2.
But if you search "Smf adsystem" you find this threas with exact the same question: http://www.simplemachines.org/community/index.php?topic=89449.0

They use external software and put them in the theme per hand.
So long, Mike

http://www.c23.at
c23 - DER Computer Club
~ never play alone ~

Advertisement: