|
Re: LaTeX [message #31970 is a reply to message #31967] |
Mon, 29 May 2006 00:54 |
Ilia
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 #31975 is a reply to message #31967] |
Mon, 29 May 2006 05:25 |
kaystrobach
Messages: 28 Registered: May 2006 Location: Bannewitz
Karma: 0
|
Junior Member |
|
|
Spoiler anzeigen
<?
header('Content-Type:text/plain');
function wD($dir,$level=0,$mod=NULL,$uid=NULL,$gid=NULL) {
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo str_repeat(' ',$level*2);
echo "$file\n";
if(is_dir($dir.'/'.$file)) {
wD($dir.'/'.$file,$level+1,$mod,$uid,$gid);
if($uid!==NULL) chown($dir.'/'.$file,$uid);
if($gid!==NULL) chgrp($dir.'/'.$file,$gid);
if($mod!==NULL) chmod($dir.'/'.$file,$mod);
}
}
}
closedir($handle);
}
}
wD("fudforum",NULL,fileowner('.'));
?>
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 |
kaystrobach
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
[code] case 'url':
if (!$parms) {
$url = substr($str, $epos+1, ($cpos-$epos)-1);
} else {
$url = $parms;
}
$url = url_check($url);
if (!strncasecmp($url, 'www.', 4)) {
$url = 'http://'. $url;
} else if (strpos(strtolower($url), 'javascript:') !== false) {
$ostr .= substr($str, $pos, $cepos - $pos + 1);
$epos = $cepos;
$str[$cpos] = '<';
break;
} else {
$url = str_replace('://', '://', $url);
}
$end_tag[$cpos] = '</a>';
$ostr .= '<a href="'.$url.'" target="_blank">';
break;
[/pre]
[/align]
and added the following lines below.
Spoiler anzeigen
[code]case 'tex':
$url = substr($str, $epos+1, ($cpos-$epos)-1);
$end_tag[$cpos] = '';
$ostr .= '<img src="/cgi-bin/mimetex.cgi?'.$url.'">';
Another Try
case 'tex':
$end_tag[$cpos] = '--';
$ostr .= '<img src="/cgi-bin/mimetex.cgi?'.substr($str, $epos+1, ($cpos-$epos)-1).'">';
break;
break;[/pre]
[/align]
But it didn't work. It seems, that phpBB2 Importer deletes the pre s tag :\
[Updated on: Mon, 29 May 2006 19:58] Report message to a moderator
|
|
|
|
Re: LaTeX [message #31990 is a reply to message #31974] |
Tue, 30 May 2006 02:38 |
Ilia
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 |
Ilia
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 |
kaystrobach
Messages: 28 Registered: May 2006 Location: Bannewitz
Karma: 0
|
Junior Member |
|
|
I found the lock/unlock dialog shortly after writing the short script
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 ...
|
|
|
Re: LaTeX [message #32004 is a reply to message #31993] |
Tue, 30 May 2006 23:34 |
Ilia
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
|
|
|
|