TinyPortal

Development => Support => Topic started by: superQ on January 26, 2006, 03:15:16 PM

Title: adding code?
Post by: superQ on January 26, 2006, 03:15:16 PM
seems like it is not too busy today so let me get a few things out of the way. I like this clock but I am confused about where to add the code exactly.

http://www.tinyportal.net/smf/index.php?topic=1509.0

I am talking about the code in the first post not the zip.
Title: Re: adding code?
Post by: gerrymo on January 26, 2006, 03:27:34 PM
Read the fist post in the tread again. All the info is there.
Title: Re: adding code?
Post by: Rasyr on January 26, 2006, 03:29:59 PM
In other words, he created an html block and put the code in it.
Title: Re: adding code?
Post by: superQ on January 26, 2006, 04:32:29 PM
I am dense I know that, but are you saying to just upload the unpacked swf file to where the forum is located[public_html] THEN  create a html block and add the code [crip added] and it will find what it needs.Or do I put everything in the html block[.swf +added code] :idiot2:

I could try it both ways, but I don't want to create problems for myself. I do not know what could happen if I did it the wrong way.Probably nothing, but I do not know that.

I think since all of you know what you are doing it is not obvious that someone might not get it. The way I read the post it seems to me that the swf file and the added code go into the html bock. I just want to be sure.

Title: Re: adding code?
Post by: crip on January 26, 2006, 04:40:30 PM
You can use a html block or ever a script/html block, the both work for that Combo Clock/Calendar.

Later, crip~ ;D
Title: Re: adding code?
Post by: superQ on January 26, 2006, 04:47:36 PM
Thanks, but what exactly do I put in the block. The swf +added code[where? at the end] or just the added code and leave the swf in the public_html and just add the code in the post.

I have added blocks to my site and they were all just copy and paste +edit. This is a little different.
Title: Re: adding code?
Post by: crip on January 26, 2006, 04:47:57 PM
Put all this in a script/html block and it works.


<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="170" HEIGHT="170">
  <PARAM NAME="movie" VALUE="clock_calendar.swf">
  <PARAM NAME="quality" VALUE="high">
  <PARAM NAME="bgcolor" VALUE="#FFFFFF">
  <param name="wmode" value="transparent">
  <param name="menu" value="true">
  <EMBED src="clock_calendar.swf" quality="high" bgcolor="#FFFFFF"  WIDTH="170" HEIGHT="170" wmode="transparent" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" menu="false">
</EMBED></OBJECT></center>



Crip~
Title: Re: adding code?
Post by: G6Cad on January 26, 2006, 04:48:14 PM
Just changed my old clock into yours crip :)

Easy install, and great looking :)
Tnx a lot :)
Title: Re: adding code?
Post by: crip on January 26, 2006, 04:49:51 PM
Quote from: g6cad on January 26, 2006, 04:47:51 PM
Just changed my old clock into your crip :)

Easy install, and great looking :)
Tnx a lot :)

Glad you like it! :)
Title: Re: adding code?
Post by: G6Cad on January 26, 2006, 04:50:56 PM
QuoteThanks, but what exactly do I put in the block. The swf +added code

Uppload the sfw into your forum dir, (in the forum root)

And the code goes in to the html/script box in your TPAdmin block of your choise
Title: Re: adding code?
Post by: superQ on January 26, 2006, 05:07:07 PM
that's what I needed to know.It is the way I thought it should be,but not the way I read it.Hence my confusion.

"
I found this combo - Clock / Calendar flash and or .swf file I added it in a html block - and or javascript/html - block both worked, and it has a small menu on the right of it to view either the clock or calender & it scrolls up & down, & so far so sweet.