hmm... oki.. thx!
51 2004-06-26 14:57
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
52 2004-06-26 13:20
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Just a brief question; do you prefer "... inlägg i timmen" or as it is now "... inlägg per timme"?
53 2004-06-26 12:21
Re: PunOnline (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Wouldn't it be better if update_online.php was put in its own folder punonline under include? (like the case with punpoll and pms)
I think it would be more well structured that way wouldn't it?
I guess it is only a matter of updating point 6 in the install instructions though...
54 2004-06-25 20:13
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Fixed it... install instructions will come shortly.
Edit: look at post on top.
55 2004-06-25 19:56
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
The following should be put in the file index.php at line 189.
I'm currently working on making it language-dependent .
// Activity barometer mod (B. Rasmus Anthin)
$result = $db->query("SELECT COUNT(*) FROM ".$db->prefix."posts WHERE posted > ".(time()-7*24*3600)) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
$posts_week = $db->result($result);
$result = $db->query("SELECT COUNT(*) FROM ".$db->prefix."posts WHERE posted > ".(time()-30*24*3600)) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
$posts_day = $db->result($result);
$posts_h = $posts_day/24;
if ($posts_h<1)
if ($posts_day<1)
echo "<BR>Totalt $posts_week antal inlägg under senaste veckan.";
else
echo "<BR>Totalt $posts_day antal inlägg under senaste dygnet.";
else
echo "<BR>I snitt ".number_format($posts_h,1)." inlägg per timme.";
56 2004-06-24 20:26
Re: search for string... (4 replies, posted in PunBB 1.2 troubleshooting)
Hmmm.... it sure indeed sounds complicated. Hmmm... to bad. Maybe it is possible to go around this with some tricks or so, who knows... )
I've got a feeling I will have to dig in deep into the forum's heart to be able to solve this if possible
57 2004-06-24 15:43
Topic: search for string... (4 replies, posted in PunBB 1.2 troubleshooting)
I didn't know really where to post this. But I guess this is where I should put this question (if not in feature requests forum).
Pehaps I've just forgotten to read about it somewhere...
I'm a little annoyed about the fact that I can't seem to search for a specific string in the Search page on the forum. It seems that I can only search for words. Using a lot of boolean operators in between doesn't help much since the words are searched for independently in the document. Anyone has had a thought about this before? Or is it just me lacking of knowledge?
58 2004-06-23 12:21
Re: PunPoll v1.2.3 (188 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hmmm... maybe it would be possible to make a conversion script that takes a new_<style>.png and creates a corresponding <style>.png poll-image. I think it would be possible with only the available routines supported by php, wouldn't it?
After all, the poll-image is just a one-pixel width slice of the bars, right?
Just a thought...
59 2004-06-21 14:13
Re: Math Code Interpreter (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Mmmm... nah... mathml seems to complicated to use compared to LaTeX (which I've decided to use, mainly due to its versatility) and the results from asciimath doesn't look good enough IMHO.
60 2004-06-21 01:33
Re: Word Association Thread (1,382 replies, posted in General discussion)
seeds
(street-> sesame street -> sesame seeds)
61 2004-06-20 21:59
Re: Word Association Thread (1,382 replies, posted in General discussion)
backside
(wow, that's ambitious )
62 2004-06-20 21:51
Re: Math Code Interpreter (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ok... I have it almost figured it out by now. That is, the formula to image conversion part. However there is just a tiny problem left . I use the convert command from ImageMagick in order both to trim the excess white canvas around the formula, and to convert the ps file to a png-file. However nohting appears to be generated. I've looked virtually everywhere for answers (Google, usenet, php.net, etc...) but didn't find much. However I found a norwegian thread on usenet with the same(?) problem. It seems that convert is dependent on the library-file libdpstk.so.5, but I've failed to add the path in the environmental variable LD_LIBRARY_PATH.
The code I've made looks like this:
<?php
$oldld = getenv('LD_LIBRARY_PATH');
$newld = "/lib:/usr/lib:/usr/openwin/lib";
if ($oldld) $newld .= ":$oldld";
putenv("LD_LIBRARY_PATH=$newld");
echo getenv("LD_LIBRARY_PATH")."<BR>";
$FNAME = 'formula';
$cmd[0]="/usr/ed-pkg/sup.phc/b/binh/latex ".$FNAME.".tex";
$cmd[1]="/usr/ed-pkg/sup.phc/b/binh/dvips -f ".$FNAME.".dvi > ".$FNAME.".ps";
$cmd[2]="/usr/ed-pkg/sup.phc/b/binh/convert -trim ".$FNAME.".ps ".$FNAME.".png";
$cmd[3]="rm *.dvi";
$cmd[4]="rm *.log";
$cmd[5]="rm *.aux";
exec($cmd[0]);
exec($cmd[1]);
//exec($cmd[2]);
passthru($cmd[2]." 2> /dev/stdout");
exec($cmd[3]);
exec($cmd[4]);
exec($cmd[5]);
?>
and the error I get is:
ld.so.1: convert: fatal: libdpstk.so.5: open failed: No such file or directory
This is quite frustrating >:(
any hints would be appreciated!
Edit: I've updated the code above a little. I found that the libdpstk.so.5 library exists under the /usr/openwin/lib/ directory. However it didn't solve anything. It still doesn't understand where the library/ies are. *sigh*
63 2004-06-20 21:37
Re: Private Message System (332 replies, posted in PunBB 1.2 modifications, plugins and integrations)
you mean with the "RE:"-thingy I just altered?!
64 2004-06-20 09:20
Re: Word Association Thread (1,382 replies, posted in General discussion)
Descartes
65 2004-06-19 22:43
Re: smilies - feedback please (98 replies, posted in PunBB 1.2 discussion)
Sooo... any thoughts on why I get this "bug"? Is it just my foolishness once more?
66 2004-06-19 22:39
Re: 1 More Smilie? (3 replies, posted in Feature requests)
Yep, agree.. I did so myself...
67 2004-06-19 22:37
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Yes yes... now I remember...
I recollect I did a matlab function for that a long time ago
Ok... then I think I have some stuff to work with... Thx a bunch Rickard!!!
68 2004-06-19 22:35
Re: redirect to last post in thread (4 replies, posted in Feature requests)
*blushing* )
...say no more
69 2004-06-19 22:10
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You might consider me stupid. But what is the timeformat for "SOMETIME". I took a peak at the db tables and it seems the time format is some sort of serial date number (like matlab's now). This is just a guess. To tell the truth, I know virtually nothing about mysql besides some few commands/queries for creating and deleting tables and such...
Sorry for my ignorance
70 2004-06-19 22:04
Re: redirect to last post in thread (4 replies, posted in Feature requests)
for instance, when you enter a thread with a lot of posts then you probably don't want to read all of them from the top, but you just want to view the last few posts in the thread. I think that this scenario is more common than the one in which you've entered a thread you've never read before.
What I mean is to set the viewtopic argument to something like this:
http://blablabla.com/forum/viewtopic.php?id=17&action=last
I guess I should alter something in viewforum.php but I'm not sure about where..
Edit: ok.. perhaps "redirect" was a bad choice of word in this instance.
71 2004-06-19 19:26
Re: Math Code Interpreter (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I have tried to experiment with LaTeX2HTML but it seems it (or I) doesn't work properly. So I have been thinking about converting from .tex to .gif the following way:
tex -> dvi -> ps -> gif
however since I get the image of the whole page, I want to (auto)crop the image. Does anyone know a way to do this, by using GhostScript (or something else available on most unix/linux-systems)?
72 2004-06-19 19:21
Re: Activity Barometer 1.0.0 (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Btw, is there a way of getting the number of posts during an interval of time?
73 2004-06-19 19:19
Re: Word Association Thread (1,382 replies, posted in General discussion)
non-existence
74 2004-06-19 17:12
Topic: redirect to last post in thread (4 replies, posted in Feature requests)
I think Chacmool already implemented this in his etek-forum but wouldn't it be nice to have it like an intrinsic feature in punBB? Btw, how did you do it Chacmool?
(P.S. I didn't find any thread dealing with this, though it seems logical that this topic has been discussed earlier, in that case, feel free to close this thread and link to that thread instead.)
75 2004-06-19 15:25
Topic: Math Code Interpreter (16 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hi, again...
This is quite an old idea I fealt should be resurrected. Sometimes it could be useful to display formulas and such and to do it with ascii-graphics is not always such a good idea. So I thought it might be a good idea to incorporate such a mod for punBB, especially for Universities and the like. The initial idea was to use LaTeX2HTML as an engine for creating gifs that are displayed on the forum (in simple words). This could be done I guess, since php works in a fire-forget manner (right?), so that the first time someone enters a formula, a message will be displayed to the user; "please wait while processing your formula(s)" or something and then the resulting gif will be sent to a image-cache (eg; /img/formulas/) which then can be pruned at the same time as the posts are pruned. The html-files produced, among with other gifs (like "next", "prev" and "home" -buttons) are then immediately removed of course.
Any thoughts on this idea?