TinyPortal

Development => Resources => Modules => Topic started by: mnichols7 on January 14, 2007, 12:20:02 PM

Title: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 12:20:02 PM
Since I am having trouble adding a popup for the jukebox on my site, do you think it would be possible to have block especially created to add a popup to your site?

If this is in the wrong place please excuse me and place it where it is suppose to be.
Thanks  :)
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 12:39:38 PM
The code I gave did not work?
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 12:43:06 PM
Marion,
here you can make your own popup window..just follow the directions.
http://www.dynamicdrive.com/dynamicindex8/popwin.htm
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 12:56:22 PM
I know the problem is with me because I am not as knowledgeable as I would like to be.  I'll give it another try.  thanks, Jeff.
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 12:59:16 PM
give me your player code & i will gitter working...?
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 01:18:45 PM
ok, will do.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="288" height="241" id="CoffeeCup" align="middle">
<param name="movie" value="myjukebox.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<embed src="myjukebox.swf" quality="high" bgcolor="#ffffff" width="288" height="241"
name="CoffeeCup" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
     


This is the code that is in the scriptbox. 
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 01:24:45 PM
What would be your absolute link path to: http://www.mariontp.com/forum/myjukebox.swf?
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 01:42:42 PM
http://www.manichols7.com/forum/myjukebox.swf

this is it
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 01:46:56 PM
ok..thank you..this really helps. :)
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 01:56:25 PM
No, it is I who thanks you.  You are taking your time to help me, and that is priceless.
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 02:09:33 PM
well Marion, you my buddy... ;)
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 02:42:38 PM
Yeah, you'll mine too!  :up:
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 02:44:15 PM
OK,
up top left block you can see Marion's Jukebox popup window, however it does not player with me url but will with yours..

see it here: http://www.cripcan.com/tst/index.php
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 02:59:28 PM
Hey, that's pretty neat.  I hope you like the music, LOL!
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 03:03:58 PM
1st) - Create a TP_Scriptbox, add popup-window code:



<a href="javascript:newWin=void(window.open('http://www.cripcan.com/tst/jukebox.html','newWin','resizable=0,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=228,height=241,top=0,left=0'))">Jukebox</a>

Be sure and add your url link replacing mine.



This: jukebox.html you upload this to your Forum root, where -===>> Themes/Smiles/Avartars/Packages/Attachments, just upload there..


I have the jukebox.html attached as a .zip file..that is all there is to it.
crip~
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 03:19:25 PM
Thanks, wish me luck!  :up:
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 03:34:48 PM
Good luck.. my eyes are crossed for ya.  :o
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 03:47:50 PM
Quote from: cripÃ,â,,¢ on January 14, 2007, 03:03:58 PM
1st) - Create a TP_Scriptbox, add popup-window code:



<a href="javascript:newWin=void(window.open('http://www.cripcan.com/tst/jukebox.html','newWin','resizable=0,status=0,menubar=0,toolbar=0,scrollbars=0,location=0,directories=0,width=228,height=241,top=0,left=0'))">Jukebox</a>

Be sure and add your url link replacing mine.



This: jukebox.html you upload this to your Forum root, where -===>> Themes/Smiles/Avartars/Packages/Attachments, just upload there..


I have the jukebox.html attached as a .zip file..that is all there is to it.
crip~

Doesn't the player code need to be in this popup code too?  I still am unale to get it to work.

I went to my cpanel and got the true link to the player, which is this,

http://www.manichols7.com/forum/myjukebox.html

I replace your url with that.  I pasted that code into a scriptbox.  I save the zip file, I unzipped it and uploaded that to the forum root. 

I think this code needs to be in the popup code, right?

  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="288" height="241" id="CoffeeCup" align="middle">
<param name="movie" value="myjukebox.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<embed src="myjukebox.swf" quality="high" bgcolor="#ffffff" width="288" height="241"
name="CoffeeCup" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>


Or am I wrong?  The software said to make certain that code is located where you want the player to show.
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 03:52:25 PM
I pasted that code into the scritbox along with the popup code, although the player now shows up, the popup does not work still. 
Title: Re: A popup block, maybe?
Post by: akulion on January 14, 2007, 03:56:35 PM
For popup use this:


<a href="http://address.com/location/of-your/file.html" onclick="window.open('http://address.com/location/of-your/file.html','file','height=405,width=310'); return false;">LINK TEXT</a>


set :http://address.com/location/of-your/file.html
to the location of ur file and addy ofcourse
width and height are also changable
text link is the text which will show as the link on the page

oh and use this in Script Block
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 04:03:57 PM
Aboslute path is always better.
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 04:24:07 PM
Thanks, I'll try this again.  :)
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 06:54:01 PM
OK, got it to work, sort of.  It now popups but the window is full page sized, with a small player at the top centered and the rest of the page is black.

Have a look see, it is on the left under the video player.  I change the sized but it didn't do anything.  Any ideas?
Title: Re: A popup block, maybe?
Post by: akulion on January 14, 2007, 08:17:54 PM
I suspect u must be using an editor to put in the code?

Since that code should work perfectly UNLESS it was altered by the editor.

Just to check can u copy and paste the EXACT code as it appears in your block?

aku
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 08:58:57 PM
<a href="http://www.manichols7.com/forum/jukebox.html " onclick="window.open(http://www.manichols7.com/forum/jukebox.html','file','height=205,width=210'); return false;">JUKEBOX</a>

Yes, I did copy it into MSWord and I suspect I should have use word pad or note pad, right.  I'll give that a try while I am waiting for you to check this code.
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 09:03:27 PM
notepad is my fav.
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 09:06:20 PM
I put mine back up where yours was:
http://www.cripcan.com/tst/
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 14, 2007, 09:12:12 PM
I did it!, It is working perfectly.  I went back and copied the code into note pad, added my urls, and added it to the scriptbox and it is working as it should.

I don't know how to thank you two.  God love you!
Title: Re: A popup block, maybe?
Post by: Crip on January 14, 2007, 09:17:25 PM
Grrrrrreat Marion! :D
Title: Re: A popup block, maybe?
Post by: bloc on January 15, 2007, 04:41:09 PM
lol, great work, Jeff. :)

About the popup-block idea..I think thats maybe a bit hard to set as anything general - popups can be so different and have very different javascript code etc.
Title: Re: A popup block, maybe?
Post by: mnichols7 on January 15, 2007, 06:45:53 PM
I guess it can.  I just must remember to use notepad instead of MS Word or any editor for doing codes.
I'm very happy with the results and all the help from Jeff and Aku.  :)
Title: Re: A popup block, maybe?
Post by: Porky on January 29, 2007, 12:56:24 AM
This is what I use for my mp3 player for my old site you put this into a script box

<table>
<center>
<a target="_blank" onclick="popup = window.open('PATH TO YOUR PLAYER', 'PopupPage', 'left=0,top=0,width=363,height=350,resizable=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0'); return false"><img border="0" src="FOR A MP3 GIF BUTTON" width="97" height="20"></a>
</center>


just change the 2 bold areas and add to script box

Some people might have to change the width and height to change to fit there player
Title: Re: A popup block, maybe?
Post by: 5thmsstech on February 26, 2007, 04:09:42 AM
Thanks Human that code works great and its more what i was lookin for.
Just wondering why the mouse doesnt treat it as a link? (no hand)

http://5thgaming.com/forums/index.php?action=forum