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.

Script codes in the forums

4 posters

Go down

Script codes in the forums Empty Script codes in the forums

Post by vikingdriver July 12th 2008, 1:43 am

Just curious here, but I've added some script codes in my forum (before anyone asks, YES; HTML's are authorized on the forums), now the funny thing is, is that they look really great in the post preview mode but when I send the post, all I see is the code itself. Any ideas as to why it works in preview but not once it's sent?
avatar
vikingdriver
Forumember

Posts : 75
Reputation : 0
Language : english

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by Nessa July 12th 2008, 2:09 am

Hello Hi Vikingdriver,I'm not to sure about why this is happening to you right now. But I have heard other members say they had similar problems with there embed youtube video codes on there forums, that happened the same way. I wonder if it is a temporary glitch at this time due to the recent server issue this passed week. Like the system is resettling, so to speak. Does it happen on and off for you or does it just not work at all? mwii
Nessa
Nessa
Energetic

Female Posts : 6203
Reputation : 128
Language : English

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by vikingdriver July 12th 2008, 11:59 pm

It actually happens everytime when I'm trying an "object embed." Regular HTML coding works just fine as in bold, center, table, and such. but not with embedding for some obscene reason.

This is what it's supposed to look like (works on the sister site but only through scripting in the footer) and this is what it looks like on the forumotion site:
**NOTE** The tables work yet only the coding for the object appears and the neat thing about that is... each script appears neatly into it's own table window as it should be.

<span id="postscript" style="display:none;">

<table width="600" height="300" cellpadding="4" cellspacing="1" border="0">
<tr>
<td width="150" height="100%" class="windowbg2" vAlign="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="195" height="450" id="TitleWidget_Small" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765301475&srcdomain=us.macmillan.com" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765301475&srcdomain=us.macmillan.com" quality="high" bgcolor="#ffffff" width="195" height="450" name="TitleWidget_Small" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

</td><td width="150" height="100%" class="windowbg2" vAlign="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="195" height="450" id="TitleWidget_Small" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765315014&srcdomain=us.macmillan.com" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765315014&srcdomain=us.macmillan.com" quality="high" bgcolor="#ffffff" width="195" height="450" name="TitleWidget_Small" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

</td><td width="150" height="100%" class="windowbg2" vAlign="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="195" height="450" id="TitleWidget_Small" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765308696&srcdomain=us.macmillan.com" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765308696&srcdomain=us.macmillan.com" quality="high" bgcolor="#ffffff" width="195" height="450" name="TitleWidget_Small" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

</td><td width="150" height="100%" class="windowbg2" vAlign="top">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="195" height="450" id="TitleWidget_Small" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765319272&srcdomain=us.macmillan.com" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765319272&srcdomain=us.macmillan.com" quality="high" bgcolor="#ffffff" width="195" height="450" name="TitleWidget_Small" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

</td></tr></table>

</span>
<script type="text/javascript">
<!--
/* secure html or script in posts by california */

var postCode="[thescript]";

var td=document.getElementsByTagName("td");
var script=document.getElementById("postscript").innerHTML;
if(location.href.match(/action=(display|goto|search2)/)){
for(i=0;i<td.length;i++){
if(td[i].className.match(/windowbg/) && td[i].width != "20%" && td[i].innerHTML.indexOf(postCode) != -1){
td[i].innerHTML=td[i].innerHTML.replace(postCode,script);
}
}
}
// -->
</script>
avatar
vikingdriver
Forumember

Posts : 75
Reputation : 0
Language : english

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by vikingdriver July 17th 2008, 2:37 am

bump
avatar
vikingdriver
Forumember

Posts : 75
Reputation : 0
Language : english

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by Saurus July 17th 2008, 7:49 am

I'm not sure, but I don't believe you can get high enough level access to the html of forumotion as you can at ProBoards - which is where that forum is hosted. At PB, you can directly edit the page headers and footer at both main index and global levels. PB now has the ability to directly display flash media within a message posting. AFAIK, forumotion does not give you that ability to embed flash.

Of course i could be wrong:)
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by vikingdriver July 19th 2008, 12:29 am

Ahh, so you think that it just might be because of Flash? But then again, that wouldn't make any sense either. If the code works when in the preview mode, then it should work after you've posted the message too.
avatar
vikingdriver
Forumember

Posts : 75
Reputation : 0
Language : english

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by Saurus July 19th 2008, 1:37 am

So you're talking about putting flash in a message? I thought you were asking about putting it on a portal or in the page html. The page you linked to shows it on the headers - not a message, so the confusion.

There have been a number of messages about this - working in preview but not otherwise. I don't have an answer for that.
avatar
Saurus
Forumember

Male Posts : 789
Reputation : 10
Language : english
Location : NY

http://sunrisers.forumotion.com

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by Aloverssunset July 19th 2008, 8:34 am

When I used it on my forum, it worked both in preview and viewed in post.
Just click on your flash button and use the http://url from the html. Sometimes it will have 2 http's, you just have to find which one will work with our flash button

This is the code I used

Code:
[flash(195,450)]http://us.macmillan.com/swf/TitleWidget_Small.swf?isbn=9780765301475&srcdomain=us.macmillan.com[/flash]

I created a test forum/category... you can see it in action on my forums index page, for about 24 hours, before I take it off

Sandra
Aloverssunset
Aloverssunset
Forumember

Female Posts : 256
Reputation : 13
Language : english
Location : Texas

http://abeautifullife2c.forumotion.com/index.htm

Back to top Go down

Script codes in the forums Empty Re: Script codes in the forums

Post by vikingdriver July 20th 2008, 12:55 am

Hey thanks, but now the original coding is working in the forums without having to use the Flash code. But now at least I do know how to do that on other forums.
avatar
vikingdriver
Forumember

Posts : 75
Reputation : 0
Language : english

Back to top Go down

Back to top

- Similar topics

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