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

Bigguy

The code was not in the template file right. I have re done it and it seems to work now.

Quote from: dence66 on October 11, 2007, 02:04:52 PM
Hi Jerm and Bigguy,

I already had my Ad Management Mod working with my Dilber MC and Black Day Themes on my 2 forums except for the parse error for the following set of codes in my index.template.php:

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Whenever that complete block of instructions for the Welcome Ads is included in my index.template.php file, I always get the parse error. I have 2 forums namely allpinoystuff.net and ocnhs.net using Black Day Theme and Dilber MC Theme respectively. As a result, I have removed the codes above to make my site work. I have attached the index.template.php and screen shot of the error in my allpinoystuff.net website here.

Your help will be greatly appreciated. Thanks in advance.

Bigguy

Yes it should work on 1.1.4

Quote from: Dumpling on October 14, 2007, 12:30:00 AM
Does this mod work on 1.1.4 (new install)?

I heard it works if you were using it on SMF 1.1.3 and then upgraded to 1.1.4.


Those edits for the managePermissions.php file will have to be done manually. Perhaps another mod has altered that file.

Quote from: EdDoX on October 13, 2007, 02:54:42 PM
please can somebody help me when I Try to install this mod

8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

Im new using SFM 1.1.4



If you are using any other Theme but the default then edits have to be done to your custom themes template files.

Quote from: LeadCritic on October 13, 2007, 12:45:29 PM
I uploaded the files successfully and placed the html for the add, followed all the instructions and the ad is still not comming up. Could it be a conflict with my theme?

If your referring to the background of the ads you will have to check with your ad provider.

Quote from: masss on October 13, 2007, 10:37:53 AM
How can i change background color ?



Dumpling

So weird...I have several mods installed on my SMF 1.1.4. Before I install the PayPal Donation mod, the Ad Management installation would come back with a couple of error messages. However, after I intalled the PaypalDonation mod, the Ad Management mod would install fine...

Can someone tell me why is that, please?

Bigguy

Each time you install a mod it edits the code in the files and moves it around a bit. That's why some mods will install with others and some won't. However the ad mod should have installed fine before or after the donations mod; it shouldn't have mattered.

SinnerSaint

#1904
Quote from: Bigguy on October 14, 2007, 03:14:23 PM
The code was not in the template file right. I have re done it and it seems to work now.

Quote from: SinnerSaint on October 11, 2007, 02:04:52 PM
Hi Jerm and Bigguy,

I already had my Ad Management Mod working with my Dilber MC and Black Day Themes on my 2 forums except for the parse error for the following set of codes in my index.template.php:

//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}


Whenever that complete block of instructions for the Welcome Ads is included in my index.template.php file, I always get the parse error. I have 2 forums using Black Day Theme and Dilber MC Theme respectively. As a result, I have removed the codes above to make my site work. I have attached the index.template.php and screen shot of the error in my forum here.

Your help will be greatly appreciated. Thanks in advance.

Thanks Bigguy for taking time to fix my problem. I will try your edited index.template.php file later this night. Thank you so much. I'm just wondering, what code did you change? :)
SinnerSaint

Bigguy

You were missing part of the code for the edit you mentioned. I just replaced what wasn't there.

khurrum

Please Help Me.

I tried to install ad management mod on my forum at: http://www.petroscrap.com/forum but it says:

An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

I made temp folder with chmod 777 in packages but it did not worked. I chmod all the files which are mentioned in the first page of ad management mode but still it did not worked.

Please some one help, I will be so thankful to you.

regards
KHURRUM

Bigguy

Try going to the options section of the package manager and making all files writable; that should work. :)

eronkid

where can i find the Menu for ad management? my theme is OverView, my SMF version is 1.1.4, please help me. thank you
the circle of life has no beginning or end, choose your fate and write your own destiny
Naruto Videos [nofollow] | Bleach Videos [nofollow]
Pinoy Talk [nofollow] | Fun Games [nofollow] | Pinoy Gamers [nofollow]

khurrum

I tried going to the options section of the package manager and making all files writable but still it is same.

falguni1

Quote from: eronkid on October 16, 2007, 01:35:38 AM
where can i find the Menu for ad management? my theme is OverView, my SMF version is 1.1.4, please help me. thank you

go to admin and set your language to english

JF3000

Having the same issue as the user above, the ad menu isnt being displayed in the default theme for the forum. Is there a specific template I should be using for this to work correctly?

Kleidi

Hello!

First of all, thx for this nice MOD ... ;) !

I have a problem and hope that u can help me. I have installed ad mod 2.3 on smf 1.1.3. I have not installed (yet) any other mod on my smf, that mean that all files are clear. I try to modify themes like Fg-zm 114 or Pn-pn 114 or MysticJade but no success. In those themes are missing some codes and i don't know how to modify the source of those themes, to work ad mod on them.
Can someone help me? Someone who can modify those files for me, please?

fg-zm 1.1.4 and pn-pn 1.1.4  needs 4 files to modify
- boardindex.template.php , index.template.php , messageindex.template.php and display.template.php

MysticJade needs only one file to modify , index.template.php !

Please, help me! :-[

P.S. I have tryed to modify them reading support post for Theme Modification on smfads.com but no success! :'(


salinity

Umm yea.  I installed it.  Said it was successful and yet I can't see it anywhere.  I hit the other site for help but nothing.  Nowhere have I seen any detailed information as to how to get this to work or even show up. Sooooooooooo.......what now?

321Hosted.com

I have installed the mod on my forum hxxp:freecpanelhost.net/forum [nonactive] , as I have done on other forums I have owned, but for some reason the ads won't show this time. I have set the ads to show after the 1st post, and also to show under the menu. As you can see from my forum, it shows the post box liek it should after the first post, but it doesn't show the ad, and it doesn't show at the top of the forum either.

Any idea what might be goin on? Like I said, I have used this mod many tiems before, but it just won't work for me this time  ::)

Thanks in advance!!

olufemo

#1915
Quote from: bassbass on October 08, 2007, 02:21:11 PM
Okay, it worked for me too.  i guess my hosting company need to update there SMF installer.  i downloaded a fresh copy of 1.1.4, installed it then installed the ad management mod, and it worked great.

I got it right too,  It is working nice.

Pls is there any other theme Ad Management mod can work it besides SMF default theme? let me know I beg all

iybabe

#1916
I must confess i know next to nothiong on technie but still able to run my forum but i do not know how to put Ad,i use 1.1.4 and this is no Ad Management mod anywhere in the package.Please assist me
hxxp:marriagevilla.com [nonactive]

jackdoesthesound

Hey, is it possible to make this MOD working with Ig-Oh (for 1.1.4) Theme?
This would be great, thanks! :)

RustyBarnacle

Different options of this mod seem to work in different themes.  For example I run the Tolkien theme and most of the ad placments work but a few dont so if the ones you are trying dont work, try others.

examino

It doesn't seem to work with SMF 1.1.4 (Update from 1.1 RC3).


ManagePermissions.php is the only file that is failing to be modified through the Package Manager.

Any suggestions would be appreciated.

Advertisement: