The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

post code in forum?

3 posters

Go down

post code in forum? Empty post code in forum?

Post by Darren1 January 7th 2009, 3:13 am

This is the code id like to add to a forum.
Code:
obj=new Object;obj.clockfile="9001e-red.swf";obj.TimeZone="Australia_Adelaide";obj.width=320;obj.height=20;obj.Target="2009,1,9,0,0,0";obj.Title="New%20REL%20leader%3A";obj.Message="The%20voting%20has%20ended%2C%20check%20to%20see%20the%20winner!";obj.wmode="transparent";showClock(obj);

I already have this downtdown clock working on my index/home page, however I'd like to add it to a post.

How could i get it so it would show up as a clock in a post.


NOTE: I already have all codes enabled, in admin panel and profile.
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

post code in forum? Empty Re: post code in forum?

Post by zinex January 10th 2009, 1:10 am

that code wouldnt work, it isnt complete. All codes start with a tag such as <php> or <script>. I would have a look for full code for a forum clock Smile
zinex
zinex
Hyperactive

Female Posts : 2804
Reputation : 93
Language : scotch och aye!
Location : Whats harder than a rock?!

http://asylum.forumotion.co.uk/forum.htm

Back to top Go down

post code in forum? Empty Re: post code in forum?

Post by Nelsaidi January 10th 2009, 1:30 am

zinex wrote:that code wouldnt work, it isnt complete. All codes start with a tag such as <php> or <script>. I would have a look for full code for a forum clock Smile

Its not <php> for php Razz - most server side languages are <?

although, you are correct, the code is not complete, however, its javascript, hence the code is

Code:
<script type="text/javascript">obj=new Object;obj.clockfile="9001e-red.swf";obj.TimeZone="Australia_Adelaide";obj.width=320;obj.height=20;obj.Target="2009,1,9,0,0,0";obj.Title="New%20REL%20leader%3A";obj.Message="The%20voting%20has%20ended%2C%20check%20to%20see%20the%20winner!";obj.wmode="transparent";showClock(obj);</script>

If you want to put it in a post, you must enable HTML in posts.

EDIT
It wont work, you dont have '9001e-red.swf' on your foru, you must have a full URL for this.
avatar
Nelsaidi
Forumember

Male Posts : 508
Reputation : 25
Language : English
Location : London,UK

http://forum.erepublik.co.uk

Back to top Go down

post code in forum? Empty Re: post code in forum?

Post by Darren1 January 10th 2009, 1:51 am

Thanks for that guys.

That actually is the full code, as it works in the homepage message, just not in posts.

well, im off to find another clock service....lol.
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum