Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
thumpn8974
Worker
Worker



Joined: Feb 09, 2011
Posts: 188
Location: US

PostPosted: Sat Aug 11, 2012 2:38 pm Reply with quote

I am trying to figure out how to create a box for RN 2.5 and put the code below in it:

Quote:
<object id="pingbox*********" type="application/x-shockwave-flash" data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" width="240" height="420"><param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="wid=******************-" /></object>


I stared out some stuff because I didn't know if it was a security thing or not.

It is a box that allows people that come to your website to chat with you. I found it here: [ Only registered users can see links on this board! Get registered or login! ] and I thought it was a cool idea. (not advertising for yahoo, just trying to explain what it does).
 
View user's profile Send private message Visit poster's website Yahoo Messenger
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sat Aug 11, 2012 3:53 pm Reply with quote

Are you looking to create a block or just include it somewhere in your site?

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
nuken







PostPosted: Sat Aug 11, 2012 4:17 pm Reply with quote

If you want to use it as a block, create a block in the blocks folder with something like this in it:

Code:


<?php
if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}

$content='<object id="pingbox*********" type="application/x-shockwave-flash" data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" width="240" height="420"><param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="wid=******************-" /></object>';

?>


if you want it included in your theme, just use something like this:

Code:


echo '<object id="pingbox*********" type="application/x-shockwave-flash" data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" width="240" height="420"><param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="wid=******************-" /></object>';
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1012
Location: Netherland

PostPosted: Sat Aug 11, 2012 5:53 pm Reply with quote

You need to have your message installed on your computer otherwise it doesn't work. U need to create your own customize account at [ Only registered users can see links on this board! Get registered or login! ] and it requires your username and password from yahoo. I had this long time ago installed on my website but I removed it because of the nasty flash code from yahoo.
 
View user's profile Send private message Visit poster's website
thumpn8974







PostPosted: Sun Aug 12, 2012 10:45 am Reply with quote

If it is going to be a problem for my site, then I don't need it. I just thought it looked like a cool idea to try out. Nuken: thank you for taking the time to do that.
 
nuken







PostPosted: Sun Aug 12, 2012 1:38 pm Reply with quote

thumpn8974 wrote:
If it is going to be a problem for my site, then I don't need it. I just thought it looked like a cool idea to try out. Nuken: thank you for taking the time to do that.


I tested it as a block on my site and it seemed to work fine as long as I had yahoo messenger opened up.
 
thumpn8974







PostPosted: Sun Aug 12, 2012 11:06 pm Reply with quote

Thank you so much for the help. I do have one other question though, how do I center it?
 
nuken







PostPosted: Mon Aug 13, 2012 5:10 am Reply with quote

Wrap it in a div like so:
Code:


<?php
 if ( !defined('BLOCK_FILE') ) {
     Header('Location: ../index.php');
     die();
 }

 $content='<div style="text-align: center"><object id="pingbox*********" type="application/x-shockwave-flash" data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" width="240" height="420"><param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="wid=******************-" /></object></div>';

 ?>


I think style="text-align: center" will center the object tag, but you may have to use something like style="width:xxxpx; margin:0px auto;"
 
thumpn8974







PostPosted: Mon Aug 13, 2012 9:46 am Reply with quote

Thank you Nuken! That worked perfectly. It is centered now and looks good. I really appreciate it.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©