Ad Management mod

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

Previous topic - Next topic

Tanfies2

I've been using this Mod for years now, and it's been brilliant, allowing me to place Google Ads in specific places around my Forum.

However, Google are getting really picky lately on where you can and can't place their Ads, especially in places where there is low content, and class it as a violation.

Due to this, I've now got to make sure that Ads don't appear on low content pages, such as my members area, or when users view other members profiles etc.


https://www.friendsoffulham.com/forum/index.php?action=mlist


At the moment, I just ask the Mod to display an Ad on every page right below the menu, but as you can imagine, this shows up on every page, including pages with low content.

The URL's that Goggle are flagging up are these, and are wondering if the Mod can exclude anything that maybe has 'action' in it?

1. https://www.friendsoffulham.com/forum/index.php?action=unread
2. https://www.friendsoffulham.com/forum/index.php?action=unreadreplies
3. https://www.friendsoffulham.com/forum/index.php?action=profile;u=361443

Any help, advice would be appreciated, looks like I'm running on version 3.5d


vbgamer45

Requires a manual code edit.
You can edit Sources/LoadAds.php

Find
// For security reasons, we don't want to display ads if the action is "admin" or "admod"
if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' || $_REQUEST['action'] == 'login' || $_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'register' || $_REQUEST['action'] == 'register2' || $_REQUEST['action'] == 'reminder'))
return ;


And then add other actions to the list.
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

Tanfies2

Quote from: vbgamer45 on April 11, 2024, 03:58:13 PMRequires a manual code edit.
You can edit Sources/LoadAds.php

Find
// For security reasons, we don't want to display ads if the action is "admin" or "admod"
if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' || $_REQUEST['action'] == 'login' || $_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'register' || $_REQUEST['action'] == 'register2' || $_REQUEST['action'] == 'reminder'))
return ;


And then add other actions to the list.
Quote from: vbgamer45 on April 11, 2024, 03:58:13 PMRequires a manual code edit.
You can edit Sources/LoadAds.php

Find
// For security reasons, we don't want to display ads if the action is "admin" or "admod"
if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' || $_REQUEST['action'] == 'login' || $_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'register' || $_REQUEST['action'] == 'register2' || $_REQUEST['action'] == 'reminder'))
return ;


And then add other actions to the list.

Thanks for getting back to me.

I'm absolutely pants at doing stuff like that, and wouldn't even know where to start :-( 

vbgamer45

Just add another entry like for member list add to it
$_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'mlist' ||
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

User2

Hello.
What should I write in the field: Display ads after categories?
Give me an example.

Aleksi "Lex" Kilpinen

I would guess a comma separated list of category numbers.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

User2

And what is a category anyway? Where should I look?

Aleksi "Lex" Kilpinen

Quote from: User2 on September 02, 2024, 07:01:30 AMAnd what is a category anyway? Where should I look?
The forum index, has boards, and also categories - Boards are grouped in to categories.
You can find the number IDs for boards and / or categories as part of the links to them on the index.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

User2

Areas do not appear in MS Edge.

vbgamer45

The browser does not matter. If you are using google ads or some ad network could be waiting for approval.
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

User2

I just created an area at the top and wrote "text" there.

vbgamer45

Do you see it in other browsers? Are you logged in? Did you check that each membergroup has permissions to view ads even guests?
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

User2

Which way are permissions set for managing ads?

vbgamer45

"Enable ads " under ad management in permissions section

Also, check that in your ad management settings that admins can view ads
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

User2

Admin - Members - Permissions?
Or Admin - Ad Management?

vbgamer45

Admin - Members - Permissions for first one.
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

User2

vbgamer45, the area has appeared, thank you.

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

UkuleleMan

Bit of an odd question.

Can adverts be rotated so you see a different one every time you go to a page?
I'm a cancer survivor.
Non Hodgkins Lymphoma Stage 4.

vbgamer45

I believe they are randomly rotated if you add multiple ads to same spot.
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

Advertisement: