News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ad Management mod

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

Previous topic - Next topic

Kindred

you can't find the sections in the DEFAULT theme template files?  Unlikely at best...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

loplo

Let's take the first error:
Add After   ./Themes/core/BoardIndex.template.php   Test failed
The code says:
after this:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


add this: echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


I'm looking just for <tbody class="divider"> and can't find it in any place. I'm using notepad++.
Tried searching just for "divider", still no joy.

kr5323

Quote from: Kindred on October 30, 2012, 04:21:15 PM
kr5323, I understood your problem the first time. repeating it won't help anything...
The only reason I can see that it would not work in that area is if the code was not correctly added to that section of index.template.php in which ever theme you are using.

--edit- I was partially correct. As it turns out, the issue is in the mod itself... and you need to start using search, kr5323. If you search this thread you might find read http://www.simplemachines.org/community/index.php?topic=68632.msg3329090#msg3329090



loplo, if you are getting those errors, then you are not using a clean installation. pretty simple...
it just means that you'll have to manually edit those files in the called out sections.

Is this the solutions??


In what file must include the code? ¿index.template.php? ¿Where?


Thanks.


PD1: I searched before asking, but I did not understand that this post was the solution.
PD2: I use theme default.
PD3: Sorry for my english.

vbgamer45

Quote from: loplo on October 30, 2012, 04:52:15 PM
Let's take the first error:
Add After   ./Themes/core/BoardIndex.template.php   Test failed
The code says:
after this:
<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


add this: echo '<tbody><tr><td colspan="4">';
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo ' </td></tr></tbody>';


I'm looking just for <tbody class="divider"> and can't find it in any place. I'm using notepad++.
Tried searching just for "divider", still no joy.

What I would do is look in the default theme and see where it is placed.

Then look for a similar area of code in your custom theme you are using.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Kindred

or just forget about that error and delete the core theme entirely. It's an outdated theme...


kr5323,
per this: http://www.simplemachines.org/community/index.php?topic=68632.msg2759992#msg2759992
the code goes in index.template.php just above the existing: // Show a random news item
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

loplo

Thanks guys. I thought that without a successful install into the core theme, this mod can't work. Damn, I've spent so many days trying to figure out where those pieces of code belong :)

techguy

Quote from: Arantor on May 22, 2012, 07:29:53 PM
And they won't work together! Fairly sure that SimpleAds can do anything this can do.
Hi all,
i am new to SMF and just installed ad management mod, the mod is fantastic and very easy to use.
i have a working account with snowtion, when i add a ad, i select a location for it to be displayed, but after saving it, there are 2 adds displayed for teh same add.

for example, i created 1 add, named abc and clicked on saved, after that when i go to edit tab, there are 2 adds of teh same name, i mean by adding 1 ad, 2nd is autocreated, because of which the adds are also coming douoble.

i created a new add again and selected the option to show in the left area, when i go to home page, there are 2 colums of teh same add on left side

Kindred

sounds like you double installed the mod...   I think you will have to manually edit the files to remove the duplicated code.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

HecticZA

#6868
    Hi guys & girls.
    :)

    Knowledge level: Noob

    I tried to stay away from asking to much questions, but as you can see I'm back.

Little background info:
I'm using SMF V2.02. Templates are on V2.0 (not sure when or why I did this. I tried to reinstall 2.02, but it did not upgrade the templates., but did remove all my mod installations. I reinstalled the mods and now the Ads display double. I've read that I need to delete the double entry and will get to to that asap.
I'm using a Gt5 them by Akhyne as default theme.
Files have been manually parsed as per instructions for V2.02.
File permissions - 600

I've tested this offline via XAMP and it seems to work fine.

My problem and questions:

The ads do not display as I want them to on my live forum.

The following does work:

  • Which boards should this ad display in
  • Display ads on every page right below the menu
  • Every page under Menu
  • Display ads on every page on the top of the page
  • Display ads on the bottom of the page
  • Display ads on every page as a tower on the left side
  • Display ads on every page as a tower on the right side
The left and right tower2 does compress post and text, but I haven't played around with it to much.

The following does not work:

  • Display ads within posts
  • Display ads after categories
  • Display ads on board index
  • Display ads on message index
  • Display ads on the post page
  • Display ads after the last post
  • Display ads in the welcome user area (Not really sure where this is, but could find nothing.)
  • Display ads under child boards

The attached pics indicated the errors, before I did the manual parsing.
The attached php, are the files I edited.
I hope I've provided enough and more importantly, the relevant information.

I would really appreciate some help.

Thank you
:)

Edit:
I'm receiving  Bad gateway errors, so not sure what is going on and have removed the attachments. Will try to load them 1 by 1 when this messages has been posted.
Struggling with my line atm and I'm not sure if I'm allowed to upload .PHP files.[/list]

techguy

Quote from: techguy on November 07, 2012, 10:47:56 AM
Quote from: Arantor on May 22, 2012, 07:29:53 PM
And they won't work together! Fairly sure that SimpleAds can do anything this can do.
Hi all,
i am new to SMF and just installed ad management mod, the mod is fantastic and very easy to use.
i have a working account with snowtion, when i add a ad, i select a location for it to be displayed, but after saving it, there are 2 adds displayed for teh same add.

for example, i created 1 add, named abc and clicked on saved, after that when i go to edit tab, there are 2 adds of teh same name, i mean by adding 1 ad, 2nd is autocreated, because of which the adds are also coming douoble.

i created a new add again and selected the option to show in the left area, when i go to home page, there are 2 colums of teh same add on left side

How can I do that

HecticZA

Quote from: HecticZA on November 10, 2012, 08:06:14 AM
    Hi guys & girls.
    :)

    Knowledge level: Noob

    I tried to stay away from asking to much questions, but as you can see I'm back.

Little background info:
I'm using SMF V2.02. Templates are on V2.0 (not sure when or why I did this. I tried to reinstall 2.02, but it did not upgrade the templates., but did remove all my mod installations. I reinstalled the mods and now the Ads display double. I've read that I need to delete the double entry and will get to to that asap.
I'm using a Gt5 them by Akhyne as default theme.
Files have been manually parsed as per instructions for V2.02.
File permissions - 600

I've tested this offline via XAMP and it seems to work fine.

My problem and questions:

The ads do not display as I want them to on my live forum.

The following does work:

  • Which boards should this ad display in
  • Display ads on every page right below the menu
  • Every page under Menu
  • Display ads on every page on the top of the page
  • Display ads on the bottom of the page
  • Display ads on every page as a tower on the left side
  • Display ads on every page as a tower on the right side
The left and right tower2 does compress post and text, but I haven't played around with it to much.

The following does not work:

  • Display ads within posts
  • Display ads after categories
  • Display ads on board index
  • Display ads on message index
  • Display ads on the post page
  • Display ads after the last post
  • Display ads in the welcome user area (Not really sure where this is, but could find nothing.)
  • Display ads under child boards
Sorry for the bump, but any advise or help maybe?
The attached pics indicated the errors, before I did the manual parsing.
The attached php, are the files I edited.
I hope I've provided enough and more importantly, the relevant information.

I would really appreciate some help.

Thank you
:)

Edit:
I'm receiving  Bad gateway errors, so not sure what is going on and have removed the attachments. Will try to load them 1 by 1 when this messages has been posted.
Struggling with my line atm and I'm not sure if I'm allowed to upload .PHP files.[/list]

saosangmo

Thank for your nice mod.
I have installed this mod successfully but now I want to change the position every top of page. Could you tell me some information which I can customize with my theme.
many thanks

kennethm

ad mod gives you an option of placing an ad in the welcome area, so exactly where is the welcome area?

vbgamer45

In the top right corner near the date/time search/userbox on the default theme.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kennethm

i have 20 different boards on my forum, if i just want an ad in any ONE of those boards do i just enter the board # in the box that asks which board you want the ads to display in? So if i wanted an ad in board #18 i would just enter 18? And if i wanted it in boards 18,19,20 I would just enter those numbers? Is that correct the way im understand this? thanks!

kennethm


Shambles

Why not just try it and see?

techguy

How to position Ads.
I mean, left, right, top, bottom, ...

vbgamer45

Quote from: techguy on November 20, 2012, 09:09:31 AM
How to position Ads.
I mean, left, right, top, bottom, ...
Center the ad or using thead placement locations.

Otherwise you can use html to position the html
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

jeff2081

Is anyone having problems with the ads suddenly stopped working and not showing? My ads has been working for years and just recently (been a month since I realized) that my ads are not showing at all. They seem like the space is taken up wherever they go, but the actual ads do not appear at all to me or any of my members. I am running 2.0 smf and the lates smfads. I did not change or install anything new on my site within the last year or so.

Advertisement: