Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 18

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 13.02.2005, 03:07   #21 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Location: France
Posts: 8
thierrybo is on a distinguished road
Default Re: phpBB 5 latest posts

Quote:
Originally Posted by Athlon_2o0o

I cant try it though as the "Module Class Suffix" shown at your place it's even present at mine. It just doesn't exist..
ah sorry, as I read this, just remember I had to make changes to the downloaded module to add the module class suffix parameter. Just add
Code:
<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix"
description="A suffix to be applied to the module css class" />
to the xml file to add this parameter and edit your css file exactly as you did it. In the php file, add
PHP Code:
$moduleclass_sfx = @$params->moduleclass_sfx
Thierry B.
thierrybo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 13.02.2005, 04:15   #22 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Location: France
Posts: 8
thierrybo is on a distinguished road
Default Re: phpBB 5 latest posts

Quote:
Originally Posted by chrisho
I've got this installed fine BUT it doesn't pick up the forum ID correctly - I've set the parameter to 1, but it pulls out info from both of my active forums. Any ideas?
Hi,

just realized I have the same problem. Looking at the code of phpbbtopics_08.zip, it simply appears that the forum parameter is not used in the code Here is the sql :
PHP Code:
$result=mysql_query("SELECT topic_title, topic_id 
FROM phpbb_topics ORDER BY $PHPBB2_ORDER DESC LIMIT 0, $PHPBB2_AMOUNT"
); 
but it should read
PHP Code:
$result=mysql_query("SELECT topic_title, topic_id 
FROM phpbb_topics WHERE forum_id=$PHPBB2_FORUM_ID ORDER BY $PHPBB2_ORDER DESC LIMIT 0, $PHPBB2_AMOUNT"
); 

Alternatelty, I modified the code to use '0' meaning ALL forums, the default. Then I added to php file :
PHP Code:
$forum_sql '';
if (
'0' != $PHPBB2_FORUM_ID)
{   
    
$forum_sql "WHERE forum_id=" $PHPBB2_FORUM_ID;

$result become:
PHP Code:
$result=mysql_query("SELECT topic_title, topic_id 
FROM phpbb_topics $forum_sql ORDER BY $PHPBB2_ORDER DESC LIMIT 0, $PHPBB2_AMOUNT"
); 
However, I have always the same problem you said. It comes from the use of the LIMIT clause in sql statement. This is not appropriate here because mysql return the X first rows it founds, but these rows does not contain necessarily the latest topics Then the code should be modified to get ALL rows (remove the LIMIT statement), then we have to find the last X posts using pure PHP, not SQL.

Thierry B.
thierrybo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.02.2005, 14:18   #23 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 10
chrisho is on a distinguished road
Default Re: phpBB 5 latest posts

Thanks Thierry! That's perfect.
chrisho is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21.04.2005, 18:17   #24 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 4
swole is on a distinguished road
Default Re: phpBB 5 latest posts

Pretty sweet hack - question though, where it says...

// ID of the Forum you want the topics from
$PHPBB2_FORUM_ID = @$params->forumID ? $params->forumID : '2';

can you change this to have more than one forumID? Like '1,2 and 3'?

Thanks!

Last edited by swole; 21.04.2005 at 20:59.
swole is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23.04.2005, 14:31   #25 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 1
thecaretaker is on a distinguished road
Default Re: phpBB 5 latest posts

Quote:
Originally Posted by swole

can you change this to have more than one forumID? Like '1,2 and 3'?

Thanks!
Yes please... I would like to include several forum IDs but not those that have moderator only rights. This would make this mod perfect for me

Last edited by thecaretaker; 23.04.2005 at 15:49.
thecaretaker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.04.2005, 21:07   #26 (permalink)
Baby Mamber
 
Join Date: Apr 2005
Posts: 4
swole is on a distinguished road
Default Re: phpBB 5 latest posts

***bump***
swole is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
phpbb latest error thehandler Mambo 4.5 General Talk 2 17.01.2005 06:06
Url Path in Phpbb Latest courtney Mambo 4.5 'How Do I' Questions 1 07.01.2005 14:53
SimpelBoard Latest 5 Posts prozac Component 'How Do I' Questions 0 04.11.2004 15:39
latest post form phpbb Kris Mambo 4.5.1 'How Do I' Questions 1 07.09.2004 05:30
phpBB Component - Install, Import, Admin Problems JackBreech Component 'How Do I' Questions 15 21.08.2004 01:57


All times are GMT +2. The time now is 08:10.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.