php forum
php mysql forum
php mysql smarty
 
Topic Options
#316474 - 12/19/07 09:33 AM Trying to put "banner" ad on left side...
annoyedman Offline
Lurker

Registered: 12/02/07
Posts: 6
Hi, and thanks in advance for any help. I did try to search for previous posts on this topic and couldn't find any specific references. Also, I know some very basic PHP stuff, but I'm no genius at at. That being said....

Here is what I am trying to accomplish: Our forum has the "Who's Online," "Newest Members," etc., boxes configured to appear in the left column. I have created a new custom portal island called "Ad Placement." (The ad is a vertical strip, 160px x 600px.) When I go to add specific content to that island, I call it up, using the "Edit Custom Portal Island" function. The code displayed there is:
Code:
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF
EOF;
/* DO NOT CHANGE THE LINE ABOVE */
I have tried adding my html below the last line of that code. That html reads:
Code:
        <!-- Start My Ad Hack -->
        <table width="100%" class="t_outer" cellpadding="0" cellspacing="0">
            <tr>
	            <td>
		            <table width="100%" class="t_inner" cellpadding="0" cellspacing="1">
		                <tr>
               		        <td class="lefttdheader">
			                    Ad Placement
			    	        </td>
 			            </tr>
			            <tr>
			                <td class="leftalt-1">
			                    <map name="MY_AD">
				                <area href="url of advertiser" ALT="advertiser name" COORDS="0,492,160,515">
				                </map>
				                <img src="images/banner_ads/imagename.jpg" ALT="Advertiser Banner Ad" USEMAP="#MY_AD" WIDTH="160" HEIGHT="600">
			                </td>
			            </tr>
		            </table>
	            </td>
            </tr>
        </table>
        <!-- End My Ad Hack -->
The problem is that by adding that html there, on submission I get the following PHP error: "Parse error: parse error, unexpected '<' in /home/content/t/r/i/username/html/cache_builders/custom/portal_box_1.php on line 8". I have tried to remove that "<", and I still get a PHP error.

I've tried editing %%48^486^486F04FC%%portal_box_1.tpl.php by adding the html in there, and also I have tried editing portal_box_1.tpl through the admin function by adding the html, and nothing works.

Can someone please tell me, in terms that a PHP neophyte can understand, what I need to do to make this thing happen? Thanks for your help.


Top
#316478 - 12/19/07 12:59 PM Re: Trying to put "banner" ad on left side... [Re: annoyedman]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
Welcome smile

You need to put your html between this line:

$body = <<<EOF



and this line:
EOF;

Example:

$body = <<<EOF
<my html stuff>
</my html stuff>
EOF;
_________________________
- Allen wavey
- What Drives You?

Top
#316484 - 12/19/07 09:30 PM Re: Trying to put "banner" ad on left side... [Re: AllenAyres]
annoyedman Offline
Lurker

Registered: 12/02/07
Posts: 6
Cool, thanks. I'll give it a try.

Top
#316486 - 12/20/07 11:27 AM Re: Trying to put "banner" ad on left side... [Re: annoyedman]
annoyedman Offline
Lurker

Registered: 12/02/07
Posts: 6
FYI, that worked. Thanks again.

Top
#316494 - 12/21/07 01:38 PM Re: Trying to put "banner" ad on left side... [Re: annoyedman]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
Glad it worked for ya smile
_________________________
- Allen wavey
- What Drives You?

Top


Top Posters Last 30 Days
AllenAyres 58
Gizmo 25
sirdude 25
Zarzal 17
blaaskaak 10
willing 3
tackaberry 3
Who's Online
0 Registered (), 32 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Auto repair table
by blaaskaak
Yesterday at 06:16 PM
User Authentication Class
by swebs
07/18/08 06:19 PM
[7.3.x] ubb.links
by AllenAyres
07/18/08 05:09 PM
Team UBBDev Rides Again!
by AllenAyres
07/18/08 05:08 PM
ubb.social
by willing
07/17/08 06:29 PM
Multiple Identity Detector
by Detangler
07/16/08 05:59 AM
how do I change textcolor in shoutbox
by sirdude
07/14/08 05:14 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
Newest Members
Stanley, NazzaN, mmem700, Tyler, nunny
13309 Registered Users

 

 

 
fusionbb message board php hacks