miniBB ®®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
How To miniBB Community Forum / How To /

Listing latest discussions above topics

 
daddyjoel
Forums Member
#1 | Posted: 19 Aug 2004 17:57 | Edited by: daddyjoel
Reply 
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.
Team
8-)
#2 | Posted: 19 Aug 2004 18:05
Reply 
You wanted to say - above the list of FORUMS?
daddyjoel
Forums Member
#3 | Posted: 19 Aug 2004 18:22
Reply 
Yes, I guess I did.
Team
8-)
#4 | Posted: 15 Sep 2004 16:30
Reply 
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');
daddyjoel
Forums Member
#5 | Posted: 16 Sep 2004 07:53
Reply 
Thank you so very much!
daddyjoel
Forums Member
#6 | Posted: 10 Mar 2005 05:15
Reply 
How do I do this in 2.0RCa?
daddyjoel
Forums Member
#7 | Posted: 10 Mar 2005 05:29
Reply 
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');
}
Team
8-)
#8 | Posted: 10 Mar 2005 10:28
Reply 
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');
}
daddyjoel
Forums Member
#9 | Posted: 11 Mar 2005 01:32
Reply 
That puts the last disscussion above the header. Oh well, thanks anyway.
Team
8-)
#10 | Posted: 11 Mar 2005 10:18
Reply 
To remove the header, you need to move echo load_header(); from bb_func_vforums.php to bb_func_ldisc.php
daddyjoel
Forums Member
#11 | Posted: 11 Mar 2005 14:14 | Edited by: daddyjoel
Reply 
thank you! I guess I should move the {userlogging} to mian_last_disscus_cell.html as well.
daddyjoel
Forums Member
#12 | Posted: 11 Mar 2005 19:57
Reply 
Nope! {userlogging} goes at the top of Main_last_discussions.html.
 
Your Reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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.

 
Online now: Guests - 39
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®