Firefox PHP

Display Last 5 Phorum Posts -script

Posted by dagon 
Re: Display Last 5 Phorum Posts -script
December 06, 2004 05:41PM
jetpeach Wrote:
-------------------------------------------------------
> the posts. Any ideas what this might be? perhaps
> this is a bug with Firefox...

Well then you have found an really odd bug. Firefox contacting webserver and telling your db to cut the connection to db...

So in other words, it's not Firefox. Maybe there's a problem in your HTML and Firefox is trying to render the page, which takes too long and your db connectio times out or something? Shouldn't be the case, but I can't think of anything else.



---
-=[ Panu ]=-
Re: Display Last 5 Phorum Posts -script
December 06, 2004 05:47PM
I have the php code within a table on the page, which I suppose could be the problem? Internet explorer doesn't have any problem though...
I definitely think it's a timing out issue though, because the error never occurs when I keep the HTML code short before the PHP code to display the last threads. Very frustrating though, maybe their is a setting in mySql for the timing before a timeout message?
jet
Re: Display Last 5 Phorum Posts -script
December 07, 2004 04:42AM
run your page through a validator. Is it ok?

---
-=[ Panu ]=-
Re: Display Last 5 Phorum Posts -script
December 07, 2004 05:37AM
The module work fine, but how (and where) do I put in formatcodes for fonts and backgroundcolour? The values, I have entered in settings for the template does not reflect in the module lastposts_snippets.php
Sep
Re: Display Last 5 Phorum Posts -script
March 06, 2005 06:13AM
Works well, I'm using thva's version. One question, or actually two :)

1) Would it be an easy mod to change it so, that you could ignore one forum or tell it from which forums to pull the new messages using forum id's?
2) Can you tell it to show say, 5 words from the subject or x number of characters, then truncate it and put ... in the end?

Cheers!

-S
Re: Display Last 5 Phorum Posts -script
March 17, 2005 07:42AM
I cant get hold of the file

and

I really would like to have a code for posting the new threads in the forum on all my pages, is there a module for that?

Ole
Last 5 Topics instead of Last 5 post??
April 04, 2005 02:39PM
Is it possible to configure this to last 5 topics instead of last 5 posts?

Sergej
Re: Last 5 Topics instead of Last 5 post??
April 04, 2005 03:24PM
sure,
just off my head (read, not tested) you just need to change the query from:
select * from $table order by datestamp desc limit $number
to
select * from $table where parent_id=0 order by datestamp desc limit $number


Thomas Seifert
Re: Display Last 5 Phorum Posts -script
April 12, 2005 07:14AM
Hi I have installed the code in my website. it works fine. But....

If you look here [www.pcrrules.nl] you'll see the result in the right corner.

It shows the messages which are posted. But If there is a respons posted 3 times in the same thread, it will show that thread 3 time. I only want to show it one time. And without the "re:" infront of it.

So my question. How can I show only the thread name (the thread name which is posted in the first post without the "re")?

I hope you understand me..
Re: Display Last 5 Phorum Posts -script
April 12, 2005 08:27AM
well I think you want löastest topics instead of latest posts so: [phorum.org]

it's not perfect either

---
-=[ Panu ]=-
Sorry, only registered users may post in this forum.

Click here to login