FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » LaTeX
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
LaTeX [message #31967] Sun, 28 May 2006 18:53 Go to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

Hi,

I have a simple Question, I tried to use the replacement tool to do the following:

I wanted to replace
[tex]*[/tex]


with
<img src="somewhere/cgi-bin/mimetex.cgi?*">


where the asterik stand for valid latex code

http://www.forkosh.dreamhost.com/source_mimetex.html

And the greatest thing would be a button in the post editor to sorround a selected text with the "tex" block

I want to do this, because i want to migrate away from phpBB ...

http://nuke.kay-strobach.de/php
http://nuke.kay-strobach.de/fudforum

thanks for your help

[Updated on: Sun, 28 May 2006 19:00]

Report message to a moderator

Re: LaTeX [message #31970 is a reply to message #31967] Mon, 29 May 2006 00:54 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Take a look at post_proc.inc.t file that implements other BB code tags, adding what you want should be quite simple.

FUDforum Core Developer
Re: LaTeX [message #31974 is a reply to message #31967] Mon, 29 May 2006 04:26 Go to previous messageGo to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

I would happily do, but there is a problem with the files Wink

I'm hosted on a shared Hosting service and the installer has stored the files so, that I'm not able to see any except the index.php. And I can't modify any except the index.php.

Is' there any simple script which would restore the filesystem properties so that I may have the right to alter the files?
or a a simple zip archive for extracting the files locally and transfering them to the remote webspace?

PS: On my local windows it's not possible to install fudforum it crashes in step to.
WinXpProSp2 + Apache2 + MySQL? + PHP5.1.1
zend.ze_compatiblity=0 Wink

[Updated on: Mon, 29 May 2006 04:34]

Report message to a moderator

Re: LaTeX [message #31975 is a reply to message #31967] Mon, 29 May 2006 05:25 Go to previous messageGo to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

Spoiler anzeigen


solves the problem ... with the file

[Updated on: Mon, 29 May 2006 19:54]

Report message to a moderator

Re: LaTeX [message #31977 is a reply to message #31975] Mon, 29 May 2006 05:58 Go to previous messageGo to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

I looked in the file you said:
I've found the following block
Spoiler anzeigen
[/align]
and added the following lines below.
Spoiler anzeigen
[/align]

But it didn't work. It seems, that phpBB2 Importer deletes the pre s
[tex]
tag :\

[Updated on: Mon, 29 May 2006 19:58]

Report message to a moderator

Re: LaTeX [message #31984 is a reply to message #31977] Mon, 29 May 2006 16:16 Go to previous messageGo to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

I thougt that the importer remove the starting tex tag, but if I post in normal mode the starting tag is missed to

http://nuke.kay-strobach.de/fudforum/index.php?t=msg&goto=1478&S=2f d9b9bc02798ee423f960f036bc35f0#msg_1478

Do you have any other ideas?

[Updated on: Mon, 29 May 2006 19:56]

Report message to a moderator

Re: LaTeX [message #31990 is a reply to message #31974] Tue, 30 May 2006 02:38 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
FUDforum has an admin control panel to lock/unlock forum's files.

FUDforum Core Developer
Re: LaTeX [message #31991 is a reply to message #31977] Tue, 30 May 2006 02:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Did you rebuild the theme after making your post_proc.inc.t mod?

FUDforum Core Developer
Re: LaTeX [message #31993 is a reply to message #31991] Tue, 30 May 2006 04:43 Go to previous messageGo to next message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

I found the lock/unlock dialog shortly after writing the short script Wink
thanks alltheway it works now ...
added in line 167
			case 'tex':
					$end_tag[$cpos] = '">';
					$ostr .= '<img src="/cgi-bin/mimetex.cgi?';
					$epos=$cepos;
    			break;


and changed line 552

	$fudml = str_replace(
	array(
		'<b>', '</b>', '<i>', '</i>', '<u>', '</u>', '<s>', '</s>', '<sub>', '</sub>', '<sup>', '</sup>', '<del>', '</del>',
		'<div class="pre"><pre>', '</pre></div>', '<div align="center">', '<div align="left">', '<div align="right">', '</div>',
		'<ul>', '</ul>', '<span name="notag">', '</span>', '<li>', '@', '://', '<br />', '<pre>', '</pre>','<hr>',
		'<img src="/cgi-bin/mimetex.cgi?','">'
	),
	array(
		'[b]', '[/b]', '[i]', '[/i]', '[u]', '[/u]', '[s]', '[/s]', '[sub]', '[/sub]', '[sup]', '[/sup]', '[del]', '[/del]',
		'[code]', '[/code]', '[align=center]', '[align=left]', '[align=right]', '[/align]', '[list]', '[/list]',
		'[notag]', '[/notag]', '[*]', '@', '://', '', '[pre]', '[/pre]','[hr]','[tex]','[/tex]'
	),
	$fudml);


like above and installed mimetex like for phpBB

thanks for all the help Ilia

PS: Is there any Core Description / Documentation of FudForum, this would be helpfull to understand some behaviour.

Thanks Kay
PS:FudForum is really faster and smaller than phpBB ... Wink
Re: LaTeX [message #32004 is a reply to message #31993] Tue, 30 May 2006 23:34 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is some documentation available in the online docs that primarily describe the function of the various admin control panels. This forum also contains a plethora of information in regard to the various functional elements of the forum.

FUDforum Core Developer
Re: LaTeX [message #32400 is a reply to message #32004] Sun, 25 June 2006 09:51 Go to previous message
kaystrobach is currently offline  kaystrobach   Germany
Messages: 28
Registered: May 2006
Location: Bannewitz
Karma: 0
Junior Member

it works better in this way, as modification of the code tag ...

			    case 'tex':
					$param = substr($str, $epos+1, ($cpos-$epos)-1);

					$ostr .= '<img src="/cgi-bin/mimetex.cgi?'.urlencode($param).'">';
					$epos = $cepos;
					$str[$cpos] = '<';    			break;
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Joomla! Integration
Next Topic: Messed up my cookie settings, how to adjust global settings from /forumData?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Apr 25 17:20:51 GMT 2024

Total time taken to generate the page: 0.05247 seconds