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

jayman2

Can anyone help me?

    I've been trying to install ad management into my smf v2.0.2 forum.  I'm using the Urban theme and I'm not having any luck.  I ran the install.php file from my root directory, then when I go to phpmyadmin, the only entries that I see for the mod is smf_ads and smf_ads_settings.  Shouldn't there be more entries?

    I know this mod will work on the Urban theme because I visited a forum running smf 2.0.2 with the Urban theme and he had ads all over the place.  Are there many people having any luck with this?

PS:
OK... I've got it to the point now, where I can display ads in my forums areas, but only as LIVE LINKS, they don't pull the ad image.   I get box outlines the shape of the ad with a small red x in the upper left-hand corner, and a link to the ad.   I can get the ads to appear in the correct positions that I select in the ads setup, but only as LINKS.  I can even just type in html code and that displays also.  How do I get the ad images to show up?  I feel like I'm so close.

Texan78

Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.


Texan78


mrintech

Quote from: Texan78 on August 21, 2012, 11:50:52 AM
Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.

Thanks. I will do the changes




Texan78

Quote from: mrintech on August 21, 2012, 11:57:25 AM
Quote from: Texan78 on August 21, 2012, 11:50:52 AM
Quote from: mrintech on August 21, 2012, 10:38:09 AM
I used following and it works like a charm:

<center>
.
.
GOOGLE ADSENSE CODE
.
.
</center>
<br></br>

:)

Keep in mind using the <center> tag is a depreciated tag and might not rendered correctly in some users browsers. It would be recommended to use the div tags with inline styling as it is more HTML compliant.

Thanks. I will do the changes




I noticed you are also using a <br> tag. If you are going to use it it should be <br /> and not </br> as it can upset some vaildators.

In your case you actually don't even need to use that tag since it is kind of being used out of context per say. While it works yes, a better option would be to do this...

<div style="text-align:center; padding-bottom:12px">INSERT GOOGLE CODE HERE</div>

Then just adjust the padding_bottom number to your liking for the amount of spacing you are needing. It is a much cleaner and efficient way.  ;D

Hope that helps some.

mrintech

Quote from: Texan78 on August 21, 2012, 01:47:24 PM

I noticed you are also using a <br> tag. If you are going to use it it should be <br /> and not </br> as it can upset some vaildators.

In your case you actually don't even need to use that tag since it is kind of being used out of context per say. While it works yes, a better option would be to do this...

<div style="text-align:center; padding-bottom:12px">INSERT GOOGLE CODE HERE</div>

Then just adjust the padding_bottom number to your liking for the amount of spacing you are needing. It is a much cleaner and efficient way.  ;D

Hope that helps some.

Thanks a lot, I will do this tomorrow as my first priority :)



Texan78

#6826
Ok in Themes/default/Ads.template.php I found the hook that is used to for the Ad at the very top of the page. I put it in my index.template file where my existing AdSense is so I can control it where I need it and it works great.

Now the only thing I need that I can't find is here the exisiting code is in the top so I can remove it?

Anyone know what template the code is so I can remove it from the top?

function template_adsheaders_above()
{
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

}



-Thanks!

jayman2

I've been setting up the ad management mod to run on my v2.0.2 forum using the Urban theme.  I've got it running now, but the problem is it will only display .png ads, not .gif.   My forum has quite a few mods installed and I'm thinking that something has been changed so I can't display .gif ads.  Is there somewhere in there that I can change or add something to make it accept gifs?

Thanks in advance.


crobbe

I'm having a bit of trouble with this mod (bug?).

I want to put some Google Adsensecode in "Display ads after categories" = 1 but the advertisement do not show.

However, when I choose "after categories" = 2 it works just fine.

Advice please.

vikashsingh

I think
Anyone use this yet?

I'd like to see a working example.

Thanks

wolfo

hello

wot the problem hier :)


Kindred

Answer is in the wiki, and has also been answered multiple times in every mod thread
Сл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."

mrnuke

I accidentally deleted the code from one of my ads I was testing. Where is that data stored? I have a few days old backup and I'd rather not have to start fro scratch again.

Thanks
Www.ctguntalk.com CT's hottest Firearms, Politics and News Social Site.

vbgamer45

I believe it is stored in the ad management database tables.
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

mrnuke

Quote from: vbgamer45 on October 01, 2012, 09:55:07 PM
I believe it is stored in the ad management database tables.

Dang I was afraid of that. That means it's gone.. :-(
Www.ctguntalk.com CT's hottest Firearms, Politics and News Social Site.

vbgamer45

You didn't backup the whole database? If you did it should be in there.
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

HecticZA

Hi guys, I have very little experience or knowledge installing these mods.
I understand that I must install certain code manually.
When I do I do that?
Before I attempt to  install the mod(It indicates a lot of test failures) or do I install the mod and then add the code manually?


Kindred

Сл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

Quote from: Kindred on October 17, 2012, 08:43:29 AM
either....
Thank you for the speedy reply.
Expected to get flamed for that seemingly stupid question.
:)

Advertisement: