miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
How To miniBB Support Forums / How To /   

Listing latest discussions above topics

Author daddyjoel
Registered
#1 | Posted: 19 Aug 2004 17:57 | Edited by: daddyjoel 
How do I go about listing the last discussions above the list of topics? I think it is in index.php but I don't want to jack with it because I am not sure and don't want to f it up.

Author Team
8-)
#2 | Posted: 19 Aug 2004 18:05 
You wanted to say - above the list of FORUMS?

Author daddyjoel
Registered
#3 | Posted: 19 Aug 2004 18:22 
Yes, I guess I did.

Author Team
8-)
#4 | Posted: 15 Sep 2004 16:30 
Yes, it's in index.php and probably you need to swap this:

require('./bb_func_vforum.php');
if (DB_query(38,0) and $viewlastdiscussions!=0) {
require('./bb_func_ldisc.php');
$listTopics=$list_topics;
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
}

to that:

if (DB_query(38,0) and $viewlastdiscussions!=0) {
require('./bb_func_ldisc.php');
$listTopics=$list_topics;
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
}
require('./bb_func_vforum.php');

Author daddyjoel
Registered
#5 | Posted: 16 Sep 2004 07:53 
Thank you so very much!

Author daddyjoel
Registered
#6 | Posted: 10 Mar 2005 05:15 
How do I do this in 2.0RCa?

Author daddyjoel
Registered
#7 | Posted: 10 Mar 2005 05:29 
is it in here?

elseif($action==''){
if(db_simpleSelect(0,$Tf,'forum_id') and $countRes>0){
if ($viewTopicsIfOnlyOneForum!=1) {
require($pathToFiles.'bb_func_vforum.php');
if ($viewlastdiscussions!=0) {
require($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
}
}
else require($pathToFiles.'bb_func_vtopic.php');
}

Author Team
8-)
#8 | Posted: 10 Mar 2005 10:28 
Yes. You have:

if ($viewTopicsIfOnlyOneForum!=1) {
require($pathToFiles.'bb_func_vforum.php');
if ($viewlastdiscussions!=0) {
require($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
}
}

should have:

if ($viewTopicsIfOnlyOneForum!=1) {
if ($viewlastdiscussions!=0) {
require($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
}
require($pathToFiles.'bb_func_vforum.php');
}

Author daddyjoel
Registered
#9 | Posted: 11 Mar 2005 01:32 
That puts the last disscussion above the header. Oh well, thanks anyway.

Author Team
8-)
#10 | Posted: 11 Mar 2005 10:18 
To remove the header, you need to move echo load_header(); from bb_func_vforums.php to bb_func_ldisc.php

Author daddyjoel
Registered
#11 | Posted: 11 Mar 2005 14:14 | Edited by: daddyjoel 
thank you! I guess I should move the {userlogging} to mian_last_disscus_cell.html as well.

Author daddyjoel
Registered
#12 | Posted: 11 Mar 2005 19:57 
Nope! {userlogging} goes at the top of Main_last_discussions.html.

How To miniBB Support Forums / How To / Listing latest discussions above topics Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB