Current location: Hot Scripts Forums » Programming Languages » PHP » Alternative to iframe on myspace?


Alternative to iframe on myspace?

Reply
  #1 (permalink)  
Old 02-13-07, 01:56 PM
9999 9999 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Alternative to iframe on myspace?

Lets say I have a dynamic php page that generates a small "daily quote of the day" box: www.mysite.com/daily_quote.php that I might normally open in an iframe. Since myspace no longer allows iframes, is there a work-around that I could use to put this on a myspace page?

I was told to use this

PHP Code:

<include file="http://www.mysite.com/daily_quote.php"
but I would probably need a PHP extension.

1) How would I do this in myspace?

2) Is this the easiest way to do this?

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-13-07, 01:57 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
You could write the quote on a dynamic image and embed it using the <img> tags.

http://us2.php.net/imagestring
Reply With Quote
  #3 (permalink)  
Old 02-13-07, 02:05 PM
9999 9999 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
If my php script automatically updates daily, is there any way to automatically write to the dynamic image? In other words take whatever output the php generates and automatically update the image at the same time the php updates?
Reply With Quote
  #4 (permalink)  
Old 02-13-07, 03:49 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Yes, that's possible. You can create the image on the fly.
Reply With Quote
  #5 (permalink)  
Old 02-13-07, 11:12 PM
9999 9999 is offline
Newbie Coder
 
Join Date: Jul 2006
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
I want it to be some like this: http://myotherprofiles.com/dailybibleverse/

This is the code that he uses:

PHP Code:

<p>

<
center>
<
table style='width: 405px;table-layout:fixed; border-top: thin solid; border-right: thin solid; border-bottom: thin solid;border-left: thin solid;background-color:white'>
<
tr>
<
td align=center style='background-color:black'>
<
a target=_blank href=http://www.myotherprofiles.com/dailybibleverse><img border=0 src=http://www.myotherprofiles.com/dailybibleverse/images/dailybibleverseheader.gif></a>
</td>
</
tr>
<
tr>
<
td align=center style='border-top: thin solid;'>
<
a target=_blank href=http://www.myotherprofiles.com/dailybibleverse><img border=0 src=http://www.myotherprofiles.com/dailybibleverse/images/dailybibleverse.gif></a>
</td>
</
tr>
<
tr>
<
td align=center style='border-top: thin solid; background-color:black'>


<
table border=0 bgcolor=000000>
<
COL WIDTH=200><COL WIDTH=200>
<
tr>

<
td style='border-right: thin solid; background-color:black' align=left><a target=_blank href=http://www.myotherprofiles.com/dailybibleverse><img border=0 src=http://www.myotherprofiles.com/dailybibleverse/images/addtoyourmyspace.gif></a></td>

<td style='border-left: thin solid; background-color:black' align=right><a target=_blank href=http://groups.myspace.com/dailybibleverse><img border=0 src=http://www.myotherprofiles.com/dailybibleverse/images/joingroup.gif></a></td>

</tr>
</
table>

</
td>
</
tr>
</
table>
</
center><p
How would I implement the result of my php script http://www.mysite.com/daily_quote.php into all of this to make it update automatically?
Reply With Quote
  #6 (permalink)  
Old 02-15-07, 01:02 PM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Just try to be more clear. Do you want to add the daily Bible verse to you site? Or add a quote from some other source?

If (1), then just paste his HTML into the appropriate place of your site.
If (2), then you need the following:
1. The source for the quote (another site/source or your local database)
2. Just load it into a variable (if it's text) and do <?=htmlspecialchars($quote)?> on your page where this quote should appear
If the quote is an external image, simply include the image into your HTML with the <img> tag.
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
Reply With Quote
  #7 (permalink)  
Old 01-21-10, 11:41 AM
claudiuchis claudiuchis is offline
New Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Alternative to iframe on myspace?

You can embed the iframe code into a MySpace application.
Here is how to create such an application: Example Application: Hello World - MySpace Open Platform: Documentation Wiki

Then you can add the application to your MySpace profile.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
External link to iframe Techmom HTML/XHTML/XML 7 07-23-09 12:57 PM
drop-in iframe popover - once per browser session? Mylnda JavaScript 0 10-10-05 12:15 AM
js function / border & iframe cityonfire JavaScript 1 07-24-05 08:02 PM
Loading a new page in place a parent from an iframe Highly-Annoyed HTML/XHTML/XML 3 07-18-05 11:05 AM
Free Myspace Toolbar (spyware not included) LuckyPimp General Advertisements 1 06-21-04 04:50 PM


All times are GMT -5. The time now is 05:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.