• Welcome to Simple Machines Community Forum. Please login or sign up.
October 21, 2021, 04:57:59 PM

News:

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


Ad Management mod

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

Previous topic - Next topic

spiros

Which absolutely makes no sense from a publisher/visitor point of view.

Sir Osis of Liver

No, it doesn't, but as with everything they do, Google doesn't give a crap what the site owner wants, they just want to push their ads (and trackers) wherever they want anyway they can.
"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

smartmouse

Hello, I have tried to install this mod on SMF 2.1 and all files have "Test successful".

...but I opened all arrows and I have found some files having errors! (see the attached image)

Why these errors were hidden? ...and how to install mod without errors?

vbgamer45

The board index one is there to handle two different types of edits if one fails it tries the other one.
The index.template.php errors is for the welcome area which I belive no longer exsits in 2.1
Community Suite for SMF - Take your forum to the next level built for 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

smartmouse

Quote from: vbgamer45 on March 03, 2020, 08:53:45 AM
The board index one is there to handle two different types of edits if one fails it tries the other one.
The index.template.php errors is for the welcome area which I belive no longer exsits in 2.1
So I can proceed to install it, right?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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

Looking

Quick question: I have this an mod and another ads manager mod installed. (SMF 2.0.17)

I need to control the priority of which ad is displayed below the menu. For instance, both mods has an option to display below menu but what decides the priority of 1st and 2nd as far as loading each ad mod's data?

Usually, this would be easier with editing the template, but the hooks and options for placement seem to make it trickier.

vbgamer45

Nothing does for priority.

Why would you need two ad managers?
Community Suite for SMF - Take your forum to the next level built for 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

Looking

Quote from: vbgamer45 on March 05, 2020, 08:59:21 AM
Why would you need two ad managers?
One does what the other can't and vice versa.

vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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

Looking

Certain features and controls the board owner has preferences about.

As a side note... your mod is usually my first go to mod for clients, but some still like other things in the mix - it is just easier for them.

jbridges87

I just tried installing this mod on my SMF forum running v2.0.17, with the Reseller theme.

Upon installation, I received a couple of errors, which I've attached. I proceeded with installation anyway, as I was installing on my test site. After install, I inserted the Google Adsense code I had, and was testing out the different ad placement settings [left tower, right tower, within boards, etc...], none of the ads were appearing.

Is there a way to get this mod to work with the Reseller theme?
Come by and check out my sports forum, here.
Running SMF v2.0.17

vbgamer45

Yes but involves manual edits you have to compare edits made to the default theme and find similar sections of code in the reseller theme.
Community Suite for SMF - Take your forum to the next level built for 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

jbridges87

OK, is there any hope a noobie could get this done such as myself, or should I look for another option altogether?

How many file modifications would I be looking at?
Come by and check out my sports forum, here.
Running SMF v2.0.17

vbgamer45

Two failures for boardindex and display if you need those ad locations.
Community Suite for SMF - Take your forum to the next level built for 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

jbridges87

Okay, would I just go into the php files and manually change the code myself?

For example, the failure for BoardIndex shows as following;


Code: (Find) [Select]

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';
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>';


Code: (Replace) [Select]

<tbody class="divider">
            <tr>
               <td colspan="4"></td>
            </tr>
         </tbody>';



If that's the case, the failed code for the Display is showing as blank? [attached]
Come by and check out my sports forum, here.
Running SMF v2.0.17

vbgamer45

I would suggest uploading the mod to https://www.smfhacks.com/smf-package-parser.html and follow the edits there.
Community Suite for SMF - Take your forum to the next level built for 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

jbridges87

I just ran the parser and manually modifed all the files that showed errors.

The homepage of the site now shows a syntax error.

Come by and check out my sports forum, here.
Running SMF v2.0.17

vbgamer45

There is an error in one of the files you modified. attach them here...
Community Suite for SMF - Take your forum to the next level built for 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

jbridges87

I figured as much. Files are attached.
Thanks for taking a look.
Come by and check out my sports forum, here.
Running SMF v2.0.17

Advertisement: