News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad Management mod

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

Previous topic - Next topic

dsanchez

any ideas about this?...I went also to http://www.smfads.com/forums/ but not answer yet...

Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.


Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.



Bigguy

Do you get this error with all packages or just this one.

dsanchez

Solved, I forgot to chmod 777 the Package folder  :P

Quote from: dsanchez on January 16, 2007, 04:53:27 PM
Can't install it, I get the error:

"The package you tried to upload either is not a valid package or has become corrupted."

Using SMF 1.1.1

Any ideas?

Thanks

David.



Stüldt Håjt

Thanks. Just those features I needed came with the latest version.

norrisboat

#1004
Ok, i finally got it uploaded the package throught the package feature in smf.  I dont see the ad management link in the configuration category in my admin.  Where is it?

Thanks,

Norris

Bigguy

Did it install with no errors. ???

norrisboat

it installed with no errors finally.   :).  I thought i was home sweet home.  After I uploaded/install through smf package screen, do i have to installit again?

Thanks,

Norris

Bigguy

Are you using the default theme or a custom one.

norrisboat

#1008
default.  Once its on my server do I have to run packages/temp/instal.xml?  Ive tried but that page just displays the xml code in IE.

Thanks,

Norris

Bigguy

Once it's uploaded through the package manager all you should have to do is go to "Packages" and look for the name of it, beside that their is an install link. Click on it and if there are no errors then install it.

If you have tried that and have also changed permissions on all the files and folders that it modifies then it should install with no problems. Have you checked the error log to see if there are errors there. ???

norrisboat

#1010
I tried installing a different mod to see try and dicpher the errors when i installed the ad management mod.  Im getting an insane amount of errors when i install a mod in my forum error log, however there isnt one at all during install.  It says the package has been in installed successfully and you should be able to us whatever functionality it adds.  None of the mods Ive installed work.   :(

Thanks,

Norris

Bigguy

This might have something to do with mod security. Search the forums here about it and a way to bypass that. Other than that all I can think of is maybe the files aren't "owned" by you in which case you would have to talk to your host.

3mrhythm

supposedly the theme that i am using needs this to be installed in the display.template.php page.. how would i go about doing that?
www.nhfragswap.com
www.yariscentral.com

samozin

HEY GUYS WHERE IS THE ARABIC FILES  I DONT KNOW WHY U IGNORING US?

Bigguy

have you checked out www.smfads.com to see if they are there. If they are not maybe they need to be translated still.

moneydiscuss

Rotate banner code doesn't work under 2.3 ad mod?

Just now i installed 2.3 ad mod successful ,then added below code :

Insert into <BODY>

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Largest Online Bookstore, Amazon.com";
url="http://www.amazon.com";
alt="amazon.com";
banner="http://imageserv.imgis.com/images/Ad12669St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Palm III by 3Com, in stock!";
url="http://cybershop.com/";
alt="cybershop.com";
banner="http://imageserv.imgis.com/images/Ad13189St1Sz1Sq5_Ban10.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Find it at GoTo.com";
url="http://www.goto.com";
alt="goto.com";
banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>


But it doesn't work ,got error:

QuoteParse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in 
:'(

Bigguy

You should only need this code:

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Largest Online Bookstore, Amazon.com";
url="http://www.amazon.com";
alt="amazon.com";
banner="http://imageserv.imgis.com/images/Ad12669St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Palm III by 3Com, in stock!";
url="http://cybershop.com/";
alt="cybershop.com";
banner="http://imageserv.imgis.com/images/Ad13189St1Sz1Sq5_Ban10.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Find it at GoTo.com";
url="http://www.goto.com";
alt="goto.com";
banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>


Banner rotation does work but you need to have 2 ads placed in the same spot. So if these are 3 different ads create 3 different slots, one for each and check off that they show inthe same spot and they will rotate.

Roger Rabbit

Hello...i used the latest version of this Ad Mod and it is workig fine using SMF Default Theme...

However, upon using another theme, it is not showing...can you please tell me the problem....

Thanks in advance...

Bigguy

If you are using a custom theme you will have to do the edits manually. I have posted them all here for all versions of the ad mod:

http://www.smfads.com/forums/index.php?board=7.0

Farmacija

#1019


Type     Action     Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/Subs.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test failed
7.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
9.    Extract File    ./Sources/Ads.php    
10.    Extract File    ./Sources/LoadAds.php    
11.    Extract File    ./Themes/default/Ads.template.php    
12.    Extract File    ./Themes/default/languages/Ads.english.php
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Advertisement: