Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
www.atvbc.com

Custombox2

I think i should be coding the urls different??? Here is what I want to show in the box...

echo "{$wrapper[$wrapnum]['table_header']}"; // Table Start
echo "Please use these banners to link to us from your site!"; // Table Heading

echo "{$wrapper[$wrapnum]['table_center']}"; // Close Header and Open Content


<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvbcbanner.gif"</a><br>
<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvcanadabanner.gif"></a>


Basicly a box with two of my site banners in it, linked to the site itself, but I get parse errors? Ive tried looking, but didnt see a post about this? Hope its not to much bother... Just need to know once, and I can do it from then on! Thanks in advance!

Deej


Last edited by Deejay; 11/12/2002 7:24 PM.
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Anything inside of the pal box output must be inside of this tag:

echo "    content goes here    ";

If you are using HTML inside of the quotes.... that'll screw it up, because everything is already inside of quotes.
So you need to escape out all the " quote marks (by putting a \ before them) inside of your URLs and banners....

Like this:

<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvbcbanner.gif"</a><br>
<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvcanadabanner.gif"></a>

Note the \ before each quote mark. Just don't escape the first on the last quote marks... that's part of the echo statement.


Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
You can also echo to the browser this way:

echo UBBTPRINT

<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvbcbanner.gif"</a><br>
<a href="http://www.atvbc.com"><img src="http://www.atvbc.com/graphics/atvcanadabanner.gif"></a>

UBBTPRINT;


Hope that helps.

Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
Awesome, you guys rule... I was trying this sort of thing, but wasnt totally sure of how to do it... thanks!


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)
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)