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

   Trying to put "banner" ad on left side... to Del.icio.us Add to del.icio.us
  Digg Trying to put "banner" ad on left side... Digg it
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: 25427
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: 25427
Loc: Texas
Glad it worked for ya smile
_________________________
- Allen wavey
- What Drives You?

Top


Who's Online
1 Registered (blaaskaak), 31 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks