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

smp420

make sure your language files are in the language folder
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

masterofceremony

I attached  pictures, so You can see the difference. Can anybody please help me with this matter.

Owdy

That mod is using latin1_swedish_ci . Is it safe/wise to convert it top same as my default set, utf8_general_ci ?
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

I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?

smp420

Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

Quote from: kr5323 on January 12, 2010, 11:43:25 AM
I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?
The welcome user ads doesn't work with rc2 the mod author couldn't get that to work.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Pawan

How to change background colour .

DukeN

Quote from: DukeN on January 11, 2010, 02:20:50 PM
1st of all, great mod!

I need to do some manual changes, with the ads. I'm using SMF 2.0 with Curve. I need to add ads as 2nd post. This is working correctly but i need to change the "pink" background to a normal post background and i want to add an avatar etc in this post to look it more as an post.

Is there some way to edit this ?

This is the code

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="approvebg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';


Lets hope someone can help me.

I also added an example of my SMF 1.x forum where i added the code manually within the forum. (This is how it should be)

Kick of post http://www.simplemachines.org/community/index.php?topic=68632.msg2449418#msg2449418

masterofceremony

Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached

kr5323

#4728
Quote from: kr5323 on January 12, 2010, 11:43:25 AM
I can not get a banner displayed on the USER AREA WELCOME. As much as I click on the "Display ads in the welcome user area" ... the banner is not displayed, on the other areas YES.

I use SMF 2.0 RC2 and I have installed the latest version of the ad-manegement mod (2.3.6)


Is there any way to do this?

The welcome user ads doesn't work with rc2 the mod author couldn't get that to work.


Ok. Understood, thanks for the clarification.

Another question for smf2.0 rc2 and theme default: When I want a banner displayed in a given forum, adding the forum number in the option In a forum such advertising must be seen and select this others options:

Display advertising message index
Display advertising message in the thread


But I note that the post does not appear to enter the forum, I have to enter a post on the forum so you can see, while the norm is to be visible by accessing the forum.


Is there a solution?



Thank you.

Pawan

Quote from: DukeN on January 13, 2010, 02:54:07 AM
Quote from: DukeN on January 11, 2010, 02:20:50 PM
1st of all, great mod!

I need to do some manual changes, with the ads. I'm using SMF 2.0 with Curve. I need to add ads as 2nd post. This is working correctly but i need to change the "pink" background to a normal post background and i want to add an avatar etc in this post to look it more as an post.

Is there some way to edit this ?

This is the code

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="approvebg">
<span class="topslice"><span></span></span>
<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>
<div class="postarea">
<div class="flow_hidden">
<div class="keyinfo">
<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div>
<div id="msg_', $message['id'], '_quick_mod"></div>
</div>';

// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
if ($message['can_approve'] || $context['can_reply'] || $message['can_modify'] || $message['can_remove'] || $context['can_split'] || $context['can_restore_msg'])
echo '
<ul class="reset smalltext quickbuttons">';


Lets hope someone can help me.

I also added an example of my SMF 1.x forum where i added the code manually within the forum. (This is how it should be)

Kick of post http://www.simplemachines.org/community/index.php?topic=68632.msg2449418#msg2449418

can you tell me how you edited that code to appear as second post in smf 1.1x i also want to do it.

smp420

you dont have to modify any code it is an option when you make ads look and you might find it.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

lrodri7418

Quote from: lrodri7418 on January 11, 2010, 03:05:19 PM
I found these two errors

1- 8: Undefined index: ad_management
Archivo: /home/content/e/b/d/ebdesarrollo/html/smf/Sources/Subs.php
Línea: 2871

2- No se pudo cargar el archivo de idioma 'Ads.spanish'.

Any clues??

Please...I need helppp....thanks in advance

smp420

did you check if the language files for ad management are there
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

masterofceremony

Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
smp420
Can You please check index.template.php

DukeN

Quote from: smp420 on January 13, 2010, 06:17:13 PM
you dont have to modify any code it is an option when you make ads look and you might find it.

No, the color stays pink and you can't edit any avatar. It doesn't really look like an post.

lrodri7418

Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10

kr5323

Quote from: kr5323 on January 13, 2010, 06:57:24 AM
Another question for smf2.0 rc2 and theme default: When I want a banner displayed in a given forum, adding the forum number in the option In a forum such advertising must be seen and select this others options:

Display advertising message index
Display advertising message in the thread


But I note that the post does not appear to enter the forum, I have to enter a post on the forum so you can see, while the norm is to be visible by accessing the forum.


Is there a solution?



Thank you.

Please, i need help. Thanks.

lrodri7418

#4737
Quote from: lrodri7418 on January 14, 2010, 12:12:37 PM
Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10

Any one has an idea of what´s going on?

chilltraveler

I am trying to install this mod.  I unzipped the file and uploaded the folder to my smf directory.  When I type my url and directories into the browser ending in install.php, I get an error that says it can't parse line 6. in the install.php.

Am I not doing this correctly?

All permissions are set correctly.  Sorry if this has been answered, but this thread has 236 pages :)

Thanks

Bob

smp420

Quote from: masterofceremony on January 14, 2010, 02:52:59 AM
Quote from: masterofceremony on January 13, 2010, 03:29:07 AM
Quote from: smp420 on January 12, 2010, 08:02:30 PM
Quote from: masterofceremony on January 12, 2010, 01:59:18 AM
I attached  pictures, so You can see the difference. Can anybody please help me with this matter.
attach index.template.php

index.template.php attached
smp420
Can You please check index.template.php
I will check this

Quote from: lrodri7418 on January 14, 2010, 12:12:37 PM
Quote from: smp420 on January 13, 2010, 08:35:09 PM
did you check if the language files for ad management are there

thank you...right now I am able to use the admin panel....nonetheless neither I nor my users cannot see the ads er are trying to display.

For instance, I am testing this banner code and nothing happens....where am i mistaking??
   1.
      <object height="90" width="280" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
   2.
                              <param value="../images/Banner_web_setFX.swf" name="movie"/>
   3.
                              <param value="high" name="quality"/>
   4.
                              <embed height="87" width="280" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="../images/Banner_web_setFX.swf"/>
   5.
                                                      </object>

By the way, I am using SMF 1.10
You must install the mod on the theme you are using

Quote from: chilltraveler on January 14, 2010, 04:01:42 PM
I am trying to install this mod.  I unzipped the file and uploaded the folder to my smf directory.  When I type my url and directories into the browser ending in install.php, I get an error that says it can't parse line 6. in the install.php.

Am I not doing this correctly?

All permissions are set correctly.  Sorry if this has been answered, but this thread has 236 pages :)

Thanks

Bob

You dont have to unzip it just upload it in the package manager thats in the admin panel and install it from there.

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

Advertisement: