| View previous topic :: View next topic |
| Author |
Message |
RushXTC Advanced Cheater
Reputation: 0
Joined: 19 Apr 2009 Posts: 77
|
Posted: Thu Jul 23, 2009 6:11 am Post subject: phpBB Question. |
|
|
I have a phpbb forum and I was wondering if anyone knows how DB added the ad's to the top and bottom of his forum? I wanted to do that, But eh, I'm new to this o.o
Edit : Also like this ad under the post
VV
|
|
| Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Thu Jul 23, 2009 6:18 am Post subject: |
|
|
Maybe some phpBB add-on. Look on the admin control panel for one.
Or just a raw file edit. There are probably guides on this all over google so you should try searching.
|
|
| Back to top |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Thu Jul 23, 2009 6:59 am Post subject: |
|
|
First, you need to sign up to an advertising provider like AdSense or AdBrite. You'll be given some instructions on how to set up an account, in which you have to provide personal details including your name, DoB and address. They need your address so that they may send you cheques periodically upon the required quota being met (AdSense's quota is $100, AdBrite's is a variable that you can set).
(Note: You have to be 18 to use these services, if you aren't, then you are not legally allowed to use them).
Then, when you've done that and followed the instructions, you can find a guide on how to do it here. It basically entails opening up some of your files and then placing the Code in the correct places, nothing too challenging.
After that, give the ads a few hours to start generating based on your forum's content, and wallah. An advertisement banner on each of your pages.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25953 Location: The netherlands
|
Posted: Thu Jul 23, 2009 7:28 am Post subject: |
|
|
Easiest is to place the ads in the style code.
Then perhaps a few ifxxx styledefs for different kind of ads depending on the user. (e.g unregistered have a big ads and registered users have small ads or none at all)
And control those styledefs with some basic php
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
RushXTC Advanced Cheater
Reputation: 0
Joined: 19 Apr 2009 Posts: 77
|
Posted: Thu Jul 23, 2009 9:15 am Post subject: |
|
|
| Butters wrote: | First, you need to sign up to an advertising provider like AdSense or AdBrite. You'll be given some instructions on how to set up an account, in which you have to provide personal details including your name, DoB and address. They need your address so that they may send you cheques periodically upon the required quota being met (AdSense's quota is $100, AdBrite's is a variable that you can set).
(Note: You have to be 18 to use these services, if you aren't, then you are not legally allowed to use them).
Then, when you've done that and followed the instructions, you can find a guide on how to do it here. It basically entails opening up some of your files and then placing the Code in the correct places, nothing too challenging.
After that, give the ads a few hours to start generating based on your forum's content, and wallah. An advertisement banner on each of your pages. |
I got accepted for AdSense last night, Also, I was reading that thread you linked me to earlier, I can't seem to find the files they're talking about (index_body.tpl, viewforum_body.tpl) I did see those files but named "tpl_acidtech_viewtopic_body.(H/tml).php" (AcidTech is my forums style) Tried looking for what they said to find, but it wasn't there, maybe 'cause we're in 3.0.5 now and that was for 2.0.17 o.o
|
|
| Back to top |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Thu Jul 23, 2009 10:12 am Post subject: |
|
|
Oh, right. The files you'll want to find are located in root\styles\stylename\templates
You'll want to edit index_body.html, viewtopic_body.html and viewforum_body.html. Play around with the code to find the place where you want the ads.
|
|
| Back to top |
|
 |
RushXTC Advanced Cheater
Reputation: 0
Joined: 19 Apr 2009 Posts: 77
|
Posted: Thu Jul 23, 2009 3:32 pm Post subject: |
|
|
| Butters wrote: | Oh, right. The files you'll want to find are located in root\styles\stylename\templates
You'll want to edit index_body., viewtopic_body. and viewforum_body.. Play around with the code to find the place where you want the ads. |
hmm, They don't seem to be showing, Is there something else i'm supposed to do? ;o
|
|
| Back to top |
|
 |
Butters Grandmaster Cheater Supreme
Reputation: 71
Joined: 17 Mar 2007 Posts: 1373
|
Posted: Thu Jul 23, 2009 4:34 pm Post subject: |
|
|
| If you're using PHPbb3.0.5, they'll be there, you just aren't looking in the right directories.
|
|
| Back to top |
|
 |
RushXTC Advanced Cheater
Reputation: 0
Joined: 19 Apr 2009 Posts: 77
|
Posted: Fri Jul 24, 2009 12:52 am Post subject: |
|
|
| Butters wrote: | | If you're using PHPbb3.0.5, they'll be there, you just aren't looking in the right directories. |
Sorry, I meant the ads =X It worked once, With a different style, but the current style im using it wont show, Does this mean the style im using doesnt support it? =X
|
|
| Back to top |
|
 |
|