Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Help to install a Widget!
Old 10-24-2008, 05:09 PM Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
Hello All PHPeepers !!
My web site is coded in php. I've been trying to install an
Amazon.com Widget. To no avail, my web page goes blank
when I add the php tags and the widget code.

Anyone else using widgets and have success displaying?
Please Help a Newbie!! thanks in advance. tft
tresfavian is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-25-2008, 01:13 AM Re: Help to install a Widget!
Experienced Talker

Posts: 38
Name: Alan
Trades: 0
When using PHP and running the script results in a blank page, that usually means there is an error in the code and the PHP interpreter can't get past it.

Post the code and it will be easier for us to help. Be sure to remove or change any sensitive things like user names and passwords!!!

If your script works without the widget then it would be OK to just post the code for the widget.
__________________

Please login or register to view this content. Registration is FREE
alhefner is offline
Reply With Quote
View Public Profile Visit alhefner's homepage!
 
Old 10-25-2008, 01:40 AM Re: Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
I want to thank you for responding to my post. This is the Widget code that comes from Amazon. I have put all sorts of php tags in front and after and it won't work.

I have changed my account name. Thanks for heads up. I hope to resolve this issue.
Tres.


<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2" WIDTH="600px" HEIGHT="200px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070 822%2FUS%2F3dhodepl-20%2F8010%2F33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070 822%2FUS%2F3dhodepl-20%2F8010%2F33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2&Operation=GetDisplayTemplate" id="Player_33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2" quality="high" bgcolor="#ffffff" name="Player_33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="200px" width="600px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070 822%2FUS%2F37585539-20%2F8010%2F33c9fa1a-b012-4b1e-a7ea-a45ad7bdefc2&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT>
tresfavian is offline
Reply With Quote
View Public Profile
 
Old 10-25-2008, 08:09 AM Re: Help to install a Widget!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
That's Flash code, nothing to do with php at all. It just goes in the page as is.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-25-2008, 11:26 AM Re: Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
Then there's something wrong with my flashplayer? My page goes
blank when I put this code in on my page, I take it out my page
comes back.
tresfavian is offline
Reply With Quote
View Public Profile
 
Old 10-25-2008, 12:02 PM Re: Help to install a Widget!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Are you posting it inside of <?php ?> tags? Don't, because if you are, it will generate an error, which means that if you have error messages turned off, your screen will likely go blank.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-25-2008, 12:09 PM Re: Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
I have tried putting with tags and without tags. Are you saying the proper way
is to drop code as is? Thanks. Tres.
tresfavian is offline
Reply With Quote
View Public Profile
 
Old 10-25-2008, 12:17 PM Re: Help to install a Widget!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Like Chris pointed out above, that is a Flash object, nothing else. It belongs with the regular HTML.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-25-2008, 12:36 PM Re: Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
I'm real green. Can you explain that a little more. How do I put in HTML in a php page? I feel real stupid at this point. I had copied this code onto a text doc then
pasted it to the php file. Where did I go wrong? Tres.
tresfavian is offline
Reply With Quote
View Public Profile
 
Old 10-25-2008, 12:55 PM Re: Help to install a Widget!
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 10-25-2008, 12:59 PM Re: Help to install a Widget!
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by tresfavian View Post
I'm real green. Can you explain that a little more. How do I put in HTML in a php page? I feel real stupid at this point. I had copied this code onto a text doc then
pasted it to the php file. Where did I go wrong? Tres.
Well, PHP is anything within <?php ?> tags (or the short-tag version <? ?>). Everything else is normally HTML, or "regular" code. PHP will never show up in the browser, as it is all parsed before anything is outputted from the webserver. All the regular code can be seen when you "view source" from your browser of choice.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 10-25-2008 at 01:01 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 10-25-2008, 01:26 PM Re: Help to install a Widget!
Novice Talker

Posts: 10
Trades: 0
Ah-Ha !! All I had to do was copy the code after all the php <? ?> stuff and
it is showing up !! Wow. All this time I have been placing it inside php itself.
Well, thank you all for replying. In a round about way I got the answer I needed.
Revelation !! Thank you, Thank you, Thank you, Gracias, Djienkuje, Xie,Xie. Tresa.
tresfavian is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help to install a Widget!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71199 seconds with 12 queries