I need to embed a script but it doesn't work.

Post new topic   This topic is locked: you cannot edit posts or make replies.

View previous topic View next topic Go down

Solved I need to embed a script but it doesn't work.

Post by Norfeldt on November 7th 2009, 9:28 am

Hello All!

I have this forum where we discuss physic and therefor we need an easy way to make equations.
I found this site that can solve my problem: sitmo.com/latex
and created this script:
Code:
<script src="http://www.gmodules.com/ig/ifr?url=http://www.sitmo.com/gg/latex/latex.xml&amp;up_eq=&amp;up_z=100&amp;synd=open&amp;w=320&amp;h=500&amp;title=Equation+Editor&amp;border=%23ffffff%7C0px%2C1px+solid+%23993333%7C0px%2C1px+solid+%23bb5555%7C0px%2C1px+solid+%23DD7777%7C0px%2C2px+solid+%23EE8888&amp;output=js"></script>

I have tried to make a post and put the code inside like this [html]the code[/html] but no luck Crying or Very sad

I have enabled HTML from the administation panel.

How do I solve my problem? Rolling Eyes

blackeye or even better: Is it possible to create a button in the post editing panel that pops up the equation editor?

Norfeldt
Forumotion Member

Posts: 20
Language: Danish
Country:
Join date: 2009-11-05

http://farmas.forumotion.net

Back to top Go down

Solved Re: I need to embed a script but it doesn't work.

Post by RoNo on November 7th 2009, 10:48 pm

Hello Norfeldt,

To have a popup equation editor...

Create an Html page with this
Code:
<html>
<head><title>Equation Editor</title></head>
<body bgcolor="#ffffff">
<div style="position: relative; width:80%; margin: 0px auto; height: 70%">
<script src="http://www.gmodules.com/ig/ifr?url=http://www.sitmo.com/gg/latex/latex.xml&amp;up_eq=&amp;up_z=100&amp;synd=open&amp;w=320&amp;h=500&amp;title=Equation+Editor&amp;border=%23ffffff%7C0px%2C1px+solid+%23993333%7C0px%2C1px+solid+%23bb5555%7C0px%2C1px+solid+%23DD7777%7C0px%2C2px+solid+%23EE8888&amp;output=js"></script></div>
</body>
</html>


Replace the test "http://zone3 etc" Url's in this code with your new page...
use this popup link wherever Html is enabled
Code:
<table><tr><td>
<img src="http://i85.photobucket.com/albums/k57/RoNo1/math2.jpg" style="float: left;"></td><td width="140"><a href="http://zone3.forumotion.com/Equation-Editor-h55.htm" onclick="window.open('http://zone3.forumotion.com/Equation-Editor-h55.htm', 'popup01', 'width=440,height=580,height=300,left=150,top=200,scrollbars=yes'); return false"><font face="times new roman" size="2">Popup Equation Editor</font></a>
</td></tr></table>
Also...
Download *this pic, upload to your image host, replace the link in the code

RoNo
Support Moderator
Support Moderator

Male
Posts: 611
Language: English
Location: Laguna Beach, California
Country:
Join date: 2009-01-29

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: I need to embed a script but it doesn't work.

Post by Norfeldt on November 8th 2009, 11:41 am

Thank you for your answer, but Im am not quite sure what to do?

I done this so far:

Administration panel / Modules / HTML pages management / Create new HTML page

Title* : Equation Editor

Do you wish to use your forum page header and page footer ? NO

Use this page as homepage ? NO

pressed the +Html button

Pasted this your code
Code:
<html>
<head><title>Equation Editor</title></head>
<body bgcolor="#ffffff">
<div style="position: relative; width:80%; margin: 0px auto; height: 70%">
<script src="http://www.gmodules.com/ig/ifr?url=http://www.sitmo.com/gg/latex/latex.xml&amp;up_eq=&amp;up_z=100&amp;synd=open&amp;w=320&amp;h=500&amp;title=Equation+Editor&amp;border=%23ffffff%7C0px%2C1px+solid+%23993333%7C0px%2C1px+solid+%23bb5555%7C0px%2C1px+solid+%23DD7777%7C0px%2C2px+solid+%23EE8888&amp;output=js"></script></div>
</body>
</html>


And then what?

Norfeldt
Forumotion Member

Posts: 20
Language: Danish
Country:
Join date: 2009-11-05

http://farmas.forumotion.net

Back to top Go down

Solved Re: I need to embed a script but it doesn't work.

Post by RoNo on November 8th 2009, 2:22 pm

Once you've saved the page, go back to HTML pages management,
copy the address of your new page and add it to the popup code.
You can place the popup link on your homepage/index.
Got to: Admin Panel >
Display > Homepage > Generalities > Message content (save)

RoNo
Support Moderator
Support Moderator

Male
Posts: 611
Language: English
Location: Laguna Beach, California
Country:
Join date: 2009-01-29

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: I need to embed a script but it doesn't work.

Post by Norfeldt on November 8th 2009, 3:03 pm

Sorry.. I still can't make it to work. But I found a solution anyway. I just made a widget with the script. So problem solved.
Thanks for your help

Norfeldt
Forumotion Member

Posts: 20
Language: Danish
Country:
Join date: 2009-11-05

http://farmas.forumotion.net

Back to top Go down

Solved Re: I need to embed a script but it doesn't work.

Post by RoNo on November 8th 2009, 4:03 pm

The popup is working good...
The link will look like this:


Paste the code below in this editor and click/test it
Code:
<table><tr><td>
<img src="http://i85.photobucket.com/albums/k57/RoNo1/math2.jpg" style="float: left;"></td><td width="140"><a href="http://zone3.forumotion.com/Equation-Editor-h55.htm" onclick="window.open('http://zone3.forumotion.com/Equation-Editor-h55.htm', 'popup01', 'width=440,height=580,height=300,left=150,top=200,scrollbars=yes'); return false"><font face="times new roman" size="2">Popup Equation Editor</font></a>
</td></tr></table>
Just replace the Url's for the Html page:
http://zone3.forumotion.com/Equation-Editor-h55.htm with yours


Since the issue appears to be resolved, this topic is closed.

RoNo

RoNo
Support Moderator
Support Moderator

Male
Posts: 611
Language: English
Location: Laguna Beach, California
Country:
Join date: 2009-01-29

http://bf2mercenaries.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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