-

[2.0.22] Forum Sponsors

General phpBB2 Discussion and Support
Forum rules
To receive support you must become a donor unless otherwise specified in the release topic.

Please read these topics for more information:
Web Services/Support/Private Mod Access

[2.0.22] Forum Sponsors

Postby EXreaction » Mon Jul 31, 2006 1:07 pm

MOD Title: Forum Sponsors
MOD Author: EXreaction < exreaction@lithiumstudios.org > (Nathan Guse) http://www.lithiumstudios.org"
MOD Description: Allows you to add advertisments in specific forums
MOD Version: 1.0.01

Installation Level: Intermediate
Installation Time: ~5 Minutes

Notes:
This mod is owned by WW < bjgobble@yahoo.com > http://www.thearkansashuntingandfishingforum.com,
and was created by EXreaction.

Please use my forums(or phpBB forums) for support. WW paid for this mod and was kind enough to allow me to release this mod to everyone, so drop him a thanks over at his forum(located at http://www.thearkansashuntingandfishingforum.com" ).

If you want to move the location of the ad placement in viewforum and viewtopic, simply change the locations
of the sections that were added to viewforum_body.tpl and viewtopic_body.tpl.

Here is the link to the Forum Sponsors Mod at phpBB.com(you may download it from there).
http://www.phpbb.com/phpBB/viewtopic.php?t=431042

Forum Sponsors for phpBB3: http://lithiumstudios.org/forum/viewtop ... f=31&t=522
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [2.0.21] Forum Sponsors

Postby EXreaction » Sun Aug 20, 2006 11:40 am

Updated to 1.0.01.

It is not an importiant update from 1.0.0(so if you have 1.0.0 installed you can just leave it).
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [2.0.21] Forum Sponsors

Postby roxanacaz » Fri Sep 22, 2006 7:18 am

Hi!
I may be either stupid or tired , but I don't know where to find the administration part of this mod... Any help?

Thank you!
roxanacaz
Member
Member
 
Posts: 1
Joined: Fri Sep 22, 2006 7:16 am
Blog: View Blog (0)

Re: [2.0.21] Forum Sponsors

Postby EXreaction » Fri Sep 22, 2006 9:23 am

roxanacaz wrote:Hi!
I may be either stupid or tired , but I don't know where to find the administration part of this mod... Any help?

Thank you!


It is under Forum Admin - Managment - (select edit on the forum you want to have a sponsor).

I forgot about 1 minor detail in the mod install package, so it won't say "Forum Sponsor" next to the box for it, but it is the textbox on the bottom without any text to the left of it telling what it is for. Smile

I fixed it for the next version, but to fix it yourself do this:
Code: Select all
Open

admin/admin_forums.php

Find

            'SPONSOR'      => $forum_sponsor,

After, add

            'L_FORUM_SPONSOR' => $lang['Forum_Sponsor'],

Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [2.0.21] Forum Sponsors

Postby breamy » Fri Feb 09, 2007 6:41 pm

how would i go about implementing this as the sponsor code Question

heres the code i need to change the image and link every page refresh
Code: Select all
<script language="JavaScript">
<!-- Begin
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
   var result = Math.ceil(rnd()*number);
   if (!result)result++;
        return result
};
var ad_cnt1 = 4;
var ad1 = rand(ad_cnt1);
var link1;
var adBanner1;
var width1
var height1
if (ad1==1) {
link1="http://playcom.at/trueconsoleghosts123?CTY=1&CID=1879";
adBanner1="http://i123.photobucket.com/albums/o308/breamy_2006/b2.gif";
width1="468";
height1="60";
alt1="";
}
if (ad1==2) {
link1="http://hmventertainment.at/trueconsoleghosts123?CTY=1&CID=4714";
adBanner1="http://i123.photobucket.com/albums/o308/breamy_2006/b1.gif";
width1="468";
height1="60";
alt1="";
}
if (ad1==3) {
link1="http://game-online.at/trueconsoleghosts123?CTY=2&CID=2796";
adBanner1="http://i123.photobucket.com/albums/o308/breamy_2006/o1.gif";
width1="468";
height1="60";
alt1="";
}
if (ad1==4) {
link1="http://cd-wow.at/trueconsoleghosts123?CTY=1&CID=3772%22%20border";
adBanner1="http://i123.photobucket.com/albums/o308/breamy_2006/b1.jpg";
width1="468";
height1="60";
alt1="";
}
document.write('<center><a href="' + link1 + '" target="_top">');
document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>
breamy
Member
Member
 
Posts: 1
Joined: Fri Feb 09, 2007 6:05 pm
Blog: View Blog (0)

Re: [2.0.21] Forum Sponsors

Postby EXreaction » Mon Jan 07, 2008 6:22 pm

Read this:
http://www.phpbb.com/phpBB/viewtopic.ph ... 62#2815562

You need to make that change, and then you should be able to put your javascript in for the sponsor and it _should_ work.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [2.0.22] Forum Sponsors

Postby webmastermarty » Mon Jan 14, 2008 7:56 am

Thank you, this is just what i needed - going to install the mod now!
webmastermarty
Member
Member
 
Posts: 5
Joined: Mon Jan 14, 2008 7:49 am
Blog: View Blog (0)

Re: [2.0.22] Forum Sponsors

Postby wera » Thu Feb 14, 2008 6:24 am

Not using the mod myself,but just to see what it looked like i went to the forum, Possibly just the ad but when i refreshed it it was the same, Plus i click "Install this plugin" and it gave me to "unkown plugin" in firefox, Please be aware im talking about the ad and not the phpbb plugin ;-).
Possibly related to the plugin? Not sure but im posting here just in case so your aware, Just in case It's really to early for me to be up anyways so meh.
Attachments
admod.JPG
wera
Member
Member
 
Posts: 326
Joined: Tue Aug 15, 2006 10:22 pm
Blog: View Blog (0)

Re: [2.0.22] Forum Sponsors

Postby EXreaction » Thu Feb 14, 2008 11:34 am

That is a sound clip, which is something Firefox does not like. If you open it in IE it works fine.
Grateful for the mods I've built? Then donate!
User avatar
EXreaction
Site Owner
Site Owner
 
Posts: 4988
Joined: Wed Jun 28, 2006 5:08 pm
Blog: View Blog (53)

Re: [2.0.22] Forum Sponsors

Postby marcombv » Wed Apr 02, 2008 10:20 am

Hello,

I installed the sponsors mod because i think it is very usefull and handy.
When I ad a new banner the startdate is 31-12-2008 and when I change it to 01-01-2008 it won't be saved.
Because when I have saved the banner and edit it afterwards the startdate is again 31-12-2008?
So I dont see any banner above the forums.I think because of the startdate.

When is place a banner direct beneath a forum in the ACP it shows in the right forum.
So the code for displaying the banners must be okay?
marcombv
Member
Member
 
Posts: 2
Joined: Thu Aug 31, 2006 4:11 am
Blog: View Blog (0)

Next

Return to phpBB2



Who is online

Users browsing this forum: No registered users and 1 guest