Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2007
Posts: 6
Lurker
Lurker
Joined: Dec 2007
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.


Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Welcome smile

You need to put your html between this line:

$body = <<


and this line:
EOF;

Example:

$body = <<

EOF;


- Allen wavey
- What Drives You?
Joined: Dec 2007
Posts: 6
Lurker
Lurker
Joined: Dec 2007
Posts: 6
Cool, thanks. I'll give it a try.

Joined: Dec 2007
Posts: 6
Lurker
Lurker
Joined: Dec 2007
Posts: 6
FYI, that worked. Thanks again.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Glad it worked for ya smile


- Allen wavey
- What Drives You?
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)