2
   

Adding Banners to PHPBB, how in the world is it done????

 
 
tthome
 
Reply Thu 27 May, 2004 04:38 pm
Craven or anyone who knows.

I am wanting to add banners just like this site to my own forum. I am currently looking at a program called phpadsnew to run my banners. I have installed the mod_rewrite and the SEO MOD and I belive that I can target specific banners to exact locatinos within my forum now that I have static .html files to each page.

Can someon please help out a newbie forum admin with these banner questions? I also have a few forum templates avalable to my members. I like how the banners are on the top right under the nav bar and the far right of the viewtopics page.

Please I really need to figure out how to do this....

I'm still cutting my teeth on the phpbb and all this coding, and my gums are starting to bleed.

Thanks,

Tim
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 18,601 • Replies: 15
No top replies

 
Craven de Kere
 
  1  
Reply Fri 28 May, 2004 10:51 am
Re: Adding Banners to PHPBB, how in the world is it done????
tthome wrote:
I am wanting to add banners just like this site to my own forum. I am currently looking at a program called phpadsnew to run my banners. I have installed the mod_rewrite and the SEO MOD and I belive that I can target specific banners to exact locatinos within my forum now that I have static .html files to each page.


You don't have static html files for each page. You are merely re-writing the urls to appear that way.

Quote:
Can someon please help out a newbie forum admin with these banner questions?


Yes

Quote:
I also have a few forum templates avalable to my members. I like how the banners are on the top right under the nav bar and the far right of the viewtopics page.

Please I really need to figure out how to do this....


Edit the respective tpl files and add the invoccation code, it's just basic HTML.

Quote:
I'm still cutting my teeth on the phpbb and all this coding, and my gums are starting to bleed.


You will need to know at least HTML for the banner additions. I assume you do?
0 Replies
 
tthome
 
  1  
Reply Fri 28 May, 2004 09:57 pm
Quote:
Edit the respective tpl files and add the invoccation code, it's just basic HTML.


Craven, not sure which .tpl file I'm supposed to edit in phpbb. Do I edit the index_body.tpl in the /templatename directory?

I'm also uncertain of the .tpl files for when someone views a forum. I just need some idea or direction on which files are edited and where exactly in the files are they edited. I can place the code if I have the instructions, I was able to hand input all the SOE MOD info with little problems. My eyes do however glaze over when trying to figure out the code though.

Like now, I see a single banner at the top of the "post a reply" page. I'm not sure which .tpl reallly does what and I get them confused with the forum root index.php and the viewtopic.php files...

I probably need to go back to elementary phpbb school...

Thanks...

Tim Sad
0 Replies
 
husker
 
  1  
Reply Sat 29 May, 2004 12:00 am
Think I figured it out!!!! Doesn't look as nice as here - still need to learn a few things but I have the ads working in three screens as of tonight!! I'm pumped!
Thanks CDK!! Laughing Laughing Laughing :wink:
0 Replies
 
Craven de Kere
 
  1  
Reply Sat 29 May, 2004 01:34 pm
tthome wrote:

Craven, not sure which .tpl file I'm supposed to edit in phpbb. Do I edit the index_body.tpl in the /templatename directory?


That depends on:

1) The HTML structure of your template files.

2) The degree of targeting you want (e.g. do you want multiple zones).

3) Where you want your ads.

For example on Able2Know.com, the top banners are in the overall_header.tpl file. This means they appear on almost every page.

The skyscrapers are in many different files and I have cpecific php code to target it on a forum by forum level.

So again, it depends on where ya want the ads.

Quote:
I'm also uncertain of the .tpl files for when someone views a forum. I just need some idea or direction on which files are edited and where exactly in the files are they edited. I can place the code if I have the instructions, I was able to hand input all the SOE MOD info with little problems. My eyes do however glaze over when trying to figure out the code though.


Tell me how you want them to appear and I'll tell you what to do.
0 Replies
 
husker
 
  1  
Reply Sat 29 May, 2004 03:09 pm
I noticed there was about 3 or 4 different places in the tpl files to make things consistent
0 Replies
 
tthome
 
  1  
Reply Sun 30 May, 2004 03:04 pm
CDK...I want to do exactly what you're doing on your site on mine.

I want a global banner to appear at the top for all my banners and I want to pinpoint specific banners on different forums. For example.

Lets say when I look at the forum index I have these categories

Home Theater
Subwoofers
Receivers
Home Networking
HDTV

What I would want is to target each forum to have either the skyscraper banners on the right that corresponded with their forum category.

Again I want to use phpadsnew, but I'm open to using whatever you use as well. Again, I'm fairly new on all this coding but I'll definitely put forth the effort to figure it out if I can get some direction.

Thanks CDK or anyone else who cares to help me on my "banner adverture".

Tim
0 Replies
 
Craven de Kere
 
  1  
Reply Sun 30 May, 2004 04:24 pm
Tim,

At this time I won't be releasing the code I use to target banners to specific forums.
0 Replies
 
tthome
 
  1  
Reply Tue 1 Jun, 2004 06:15 am
CDK

I would be happy with just knowing how to add banners to the top and bottom and right hand side of the forum like you have now.

I can do without the specific targeting of banners to specific forums (for now).

If you could help me with where the code is to be placed and which files you have modified and where the specific code goes I think I can start with that.

I see that you have banners on the posting page and forum pages, I'm sure it's on others I just don't know which to modify.

thx.

Tim
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 1 Jun, 2004 09:53 am
tthome,

The main files to edit to add skys are index_body.tpl, view_topic.tpl and view_forum.tpl (doing this from memory so the names might be a bit off).

Then if you want it on the member list, profiles search etc there are additional files.

I can't really tell you where to put the code, as you will need to make space for it, which migth involve a small redesign of your layout.

I probably won't have time to help you as I have commercial work that takes precedence, but if you know HTML you should be able to make the changes.
0 Replies
 
stanleyb23
 
  1  
Reply Tue 27 Jul, 2004 12:35 pm
Pls Craven, give us some help to target different forums. I searched the whole day to find a mod for phpadsnew and phpbb. It would be so much stronger when u can target different foums. Can u please help me?

Greetz stan
0 Replies
 
stanleyb23
 
  1  
Reply Tue 27 Jul, 2004 03:48 pm
Hi everybody,

Its like making a puzzle but missing a piece.

What i like to have is phpads working with different zones on my forum. When every forum has his own zone it would be perfect.

As far as I understand it i have to change some code so that every forum will have his own index_body.tpl, view_topic.tpl and view_forum.tpl

I really hope u can help me with it :wink:

Edit (Moderator): Link removed sorry Embarrassed

Thnx!

P.S I can do with a banner at the bottom, but i d love to give them a zone
0 Replies
 
stanleyb23
 
  1  
Reply Fri 30 Jul, 2004 12:53 pm
Craven de Kere wrote:
tthome wrote:

Craven, not sure which .tpl file I'm supposed to edit in phpbb. Do I edit the index_body.tpl in the /templatename directory?


That depends on:

1) The HTML structure of your template files.

2) The degree of targeting you want (e.g. do you want multiple zones).
3) Where you want your ads.

For example on Able2Know.com, the top banners are in the overall_header.tpl file. This means they appear on almost every page.

The skyscrapers are in many different files and I have cpecific php code to target it on a forum by forum level.

So again, it depends on where ya want the ads.



Hi all,

One thing I know for sure... Craven is good Razz I ve searched for 3 days now but i cant find what im searching. I d love to target my banners. I m not bad with google but cant find the solution. I even think Craven is the only phpbb'er who managed to target the different forums.

I hope somebody can help me

Greetz Stan

P.s I ve found a mod called the complete banner, but i dont think i can integrate that with phpadsnew.
0 Replies
 
Craven de Kere
 
  1  
Reply Fri 30 Jul, 2004 01:50 pm
stanleyb23,

When I have time I will release the code, but it is unlikely that I'll have the time anytime soon. I need to clean it up and remove Able2Know.com-specific code from it.

I have dozens of mods I have not had time to release, there is only so much time in the day.

When I get the chance I'll post code for banner targeting.
0 Replies
 
stanleyb23
 
  1  
Reply Fri 30 Jul, 2004 03:04 pm
Craven de Kere wrote:
stanleyb23,

When I have time I will release the code, but it is unlikely that I'll have the time anytime soon. I need to clean it up and remove Able2Know.com-specific code from it.

I have dozens of mods I have not had time to release, there is only so much time in the day.

When I get the chance I'll post code for banner targeting.


Thnx Craven!!

I hope u will have some time :wink: When u need help pls mail me! I m a little desperate, searched 3 days now. But u are the only one who managed to target the banners.

Thnx very much!!
0 Replies
 
stanleyb23
 
  1  
Reply Mon 2 Aug, 2004 10:28 am
Ok...
Its possible but still one little problem Laughing
First the way to get phpads working in the phpbb forum

Open /includes/pager_header.php

Put this code in it:
Code:
if (!isset($forum_row['forum_name'])) {
$bannerwhat = "nokeywords";
} else {
$bannerwhat = $forum_row['forum_name'];
}
$bannerwhat = str_replace(" ", "+", $bannerwhat);
$template->assign_var('KEYWORD', $bannerwhat);


Open in your Template-map /phpBB2/templates/templatename/ the template-Dat "overall_header.tpl" and put in this code

Code:<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<a href='http://PathToYourAdServer/adclick.php?n=....' target='_blank'><img src='http://PathToYourAdServer/adview.php?what={KEYWORD}&n=...' border='0' alt=''></a>
</td>
</tr>
</table>


U have the make banners in phpads with keywords. Your keyword must be exactly the same as your forum name. So if u have a subforum called "all about cars" make your banner with keyword "all about cars"

When theres no banner with that keyword it will go for the keyword "nokeywords", u can make a banner for that as well

This will work, but....

I installed the seomod, cause of this code i got a little problem:
Code:#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

#
#-----[ FIND ]------------------------------------------
#

$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name'];

#
#-----[ REPLACE WITH ]------------------------------------
#

$page_title = $forum_row['forum_name'];


When it opens viewtopic it cant find the forumname anymore. Cause of this code the solution described above doesnt work anymore for the viewtopic. Does anybody know who i can change that without losing that part of the seomod?

Greetz
stan
0 Replies
 
 

Related Topics

In How much time a website can be developed? - Question by aussiejumpingcastle
Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Adding Banners to PHPBB, how in the world is it done????
Copyright © 2021 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 07/28/2021 at 07:10:35