Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 64
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 64
I need/want to put a link in one of the custom boxes in IIP but I can't figure out how to do it.

In custombox4pal.php I have the following lines that work.

// URL: http://www.chattersonline.com


echo "$tbopen<tr><td align="left" class="tdheader">"; // Table Start

echo "Living Hope Newsletters"; // Table Heading

echo "</td></tr><tr><td align="left" valign="top" class="lighttable">"; // Close Header and Open Content

echo "Check out the March edition of the Living Hope Letter";

echo "</td></tr>$tbclose<br />"; // Close Content and End Table


?>

When I add a link like below - they don't work.

// URL: http://www.chattersonline.com


echo "$tbopen<tr><td align="left" class="tdheader">"; // Table Start

echo "Living Hope Newsletters"; // Table Heading

echo "</td></tr><tr><td align="left" valign="top" class="lighttable">"; // Close Header and Open Content

echo "Check out the <a href="http://www.livehope.org/newsletters/0303.pdf">March</a> edition of the Living Hope Letter";

echo "</td></tr>$tbclose<br />"; // Close Content and End Table


?>

I get a parse error:
Parse error: parse error, expecting `','' or `';'' in /usr/local/www/vhosts/livehope/threads/pals/custombox4pal.php on line 30

Any pointers on what Im doing wrong?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
What you have to do is escape out (using a \ ) any quotes inside the HTML you need to insert.

So change this:
<a href="http://www.livehope.org/newsletters/0303.pdf">

to this:

<a href="http://www.livehope.org/newsletters/0303.pdf">

(Note the \ before the two quotes.)

This needs to be done because the whole thing is already in quotes. So when it hits a closing quote... it breaks it. The \ allows it to get past that quote without breaking it, until the very end of the line (the real closing quote).

Do that for all the links.

Joined: Sep 2001
Posts: 64
Junior Member
Junior Member
Offline
Joined: Sep 2001
Posts: 64
Most excellent. Works like a charm.
Thanks Josh


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
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)