Insert a Banner html into the post

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
paolovic
Registered User
Posts: 2
Joined: Fri Jan 29, 2010 6:52 pm

Insert a Banner html into the post

Post by paolovic » Fri Jan 29, 2010 6:59 pm

Hi, I am a new user, I hope somebody can help me. How to Insert a Banner html into the post in phpbb3?
Thanks
Paolo M.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50916
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Insert a Banner html into the post

Post by stevemaury » Fri Jan 29, 2010 7:13 pm

HTML is not allowed in phpbb for security reasons. If you can give a little more detail about what you want to do, perhaps we can find another way to do it, like with BBCode.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

paolovic
Registered User
Posts: 2
Joined: Fri Jan 29, 2010 6:52 pm

Re: Insert a Banner html into the post

Post by paolovic » Fri Jan 29, 2010 7:27 pm

Hi Stevemaury, thank you for your kind response. I will find another way, probably i can insert an image of the banner with a link.
Thanks
Paolo M.

User avatar
Christian 2.0
Former Team Member
Posts: 4509
Joined: Wed Nov 04, 2009 11:16 pm
Location: UK
Name: Christian
Contact:

Re: Insert a Banner html into the post

Post by Christian 2.0 » Fri Jan 29, 2010 8:00 pm

It's still possible to add a banner HTML code to posts. All you would need to do is convert it into a custom BBCode.

For example, let's say your banner code is:

Code: Select all

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxx";
/* 234x60, yourdomain.com */
google_ad_slot = "9613308314";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Go to: Admin Panel => Posting Tab => BBCodes => Add a new BBCode...

BBCode Usage:

Code: Select all

[banner][/banner]

HTML Replacement: (your banner code goes here)

Code: Select all

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxx";
/* 234x60, yourdomain.com */
google_ad_slot = "9613308314";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
You don't need to add anything to the help line, and you probably shouldn't enable it on the posting page. Then click Submit.

You can now add your banner anywhere on the forum just by typing:

Code: Select all

[banner][/banner]

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Insert a Banner html into the post

Post by Pony99CA » Sun Jan 31, 2010 3:37 am

stevemaury wrote:If you can give a little more detail about what you want to do, perhaps we can find another way to do it, like with BBCode.
I agree that we need more details. I don't think he really wants to include a banner in his post. I suspect that he wants banners to show up above posts on the Web page.

If that's the case, editing the template files is the correct way to accomplish that and he should read the Advertisements in phpBB3 Knowledge Base article.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66897
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Insert a Banner html into the post

Post by Lumpy Burgertushie » Sun Jan 31, 2010 10:25 pm

but we can only answer the questions asked, not what we "think" they really want.

that is why I usually try to get more info before I start giving out instructions that may just confuse them even more.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: Insert a Banner html into the post

Post by Pony99CA » Mon Feb 01, 2010 1:50 pm

Lumpy Burgertushie wrote:but we can only answer the questions asked, not what we "think" they really want.
Not true. We can answer any questions we want. (Watch: "42" The question is "What is the meaning of life, the universe and everything?") Whether it helps or not is another issue. :D

Seriously, the question he asked was ambiguous (IMHO), so I took a different interpretation than other answers.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Locked

Return to “[3.0.x] Support Forum”