miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
How To miniBB Support Forums / How To /  
 

Listing latest discussions above topics

 
Author daddyjoel
Partaker
#1 | Posted: 19 Aug 2004 17:57 
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
Partaker
#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
Partaker
#5 | Posted: 16 Sep 2004 07:53 
Thank you so very much!

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

Author daddyjoel
Partaker
#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
Partaker
#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
Partaker
#11 | Posted: 11 Mar 2005 14:14 
thank you! I guess I should move the {userlogging} to mian_last_disscus_cell.html as well.

Author daddyjoel
Partaker
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑