miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

Advanced Recent Topics (more to follow on another extra page)

Page  Page 1 of 3:  1  2  3  Next »  
Author ypsie
Registered
#1 | Posted: 30 Jun 2005 19:30 
Hello,

I really like the last discussions feature, but now my forum has so many posts, that it is not enough. And to show the last 20 active threads on the main page is a bit too much!

So I'd like to have a "more" link at the end of the l.d. table, which directly sends the user to another page, where the last 100 (for example) posts are shown.

bye and thanks!

julian

Author Team
8-)
#2 | Posted: 2 Jul 2005 22:56 
$viewlastdiscussions=30;

change 30 to the number you want in setup_options.php

Author ypsie
Registered
#3 | Posted: 3 Jul 2005 15:45 
Of course, but than too much are shown. I'd like an extra site, where for example the last 100 are listed...

Author Team
8-)
#4 | Posted: 4 Jul 2005 22:14 | Edited by: Team 
So, here will be a dirty code which you may add to the bb_plugins.php file:

/* Advanced latest discussions */

if ($viewlastdiscussions!=0 and $action=='advld') {
$viewlastdiscussions=100;

if($row=db_simpleSelect(0,$Tf,'forum_id, forum_icon')){
do{
$fIcon[$row[0]]=$row[1];
}
while($row=db_simpleSelect(1));
}

$action='';
require($pathToFiles.'bb_func_ldisc.php');
$listTopics=$list_topics;
echo load_header();
if($list_topics!='') echo ParseTpl(makeUp('main_last_discussions'));
$action='advld';
}

/* --Advanced latest discussions */


Author ypsie
Registered
#5 | Posted: 5 Jul 2005 15:31 
Thank you!

bye, julian

Author Vishal P. Rao
Guest
#6 | Posted: 6 Jul 2005 09:23 
Excellent! This can be a great way to weed out spam posts from large boards, without sacrificing the look of the home page by listing too many latest discussions.

minibb and you guys are too good!

Cheers!

Author ypsie
Registered
#7 | Posted: 18 Dec 2005 00:20 
Hi,

I've found a small bug!

If you directly click on a thread with more than 1 page (for example on page 2, 3 or 4 ...) the .html is missing.

plz fix!

bye, julian

Author Team
8-)
#8 | Posted: 19 Dec 2005 10:18 
Just insert the code showed above - it was updated since your last pasting probably. Everything should work fine with this code.

Author coco
Registered
#9 | Posted: 17 Aug 2007 11:58 | Edited by: coco 
Hello! The code is great but how can i get "Die letzten 100 aktiven Themen" on the bottom of the page?

thank you

Author Paul
Lead Developer
#10 | Posted: 18 Aug 2007 05:15 
coco
Sorry, the question is not quite clear... you already have the link and the code works... if you would like to extend the Latest Discussions amount, edit $viewlastdiscussions of setup_options.php

Author Anonymous
Guest
#11 | Posted: 18 Aug 2007 09:42 
Couldn't you just add a link to the footer? main_footer.html

<a href="http://www.briefo.com/index.php?action=advld">Die letzten 100 aktiven Themen</a>

Author coco
Registered
#12 | Posted: 18 Aug 2007 11:43 
my mistake...
thanks, that works fine

Author Vishal
Registered
#13 | Posted: 11 Sep 2007 07:08 
OK another question. I have created another template named main_last_100.html and have changed the above function to include this template. I have modified my .htaccess file to include the line:

RewriteRule ^last_100_discussions\.shtml$ ./index.php?action=advld&mdrw=on

However, when I access the page as myforum.com/last_100_discussions.shtml, I see that the META ROBOTS has "NOINDEX,NOFOLLOW" even though the "mdrw=on"

How come?

Author Paul
Lead Developer
#14 | Posted: 11 Sep 2007 09:19 | Edited by: Paul 
Try to put this in bb_plugins.php:

$metaRobots='INDEX,FOLLOW';

straight after

if ($viewlastdiscussions!=0 and $action=='advld') {

in the above code.

Author tom322
Registered
#15 | Posted: 11 Sep 2007 09:22 
However, when I access the page as myforum.com/last_100_discussions.shtml, I see that the META ROBOTS has "NOINDEX,NOFOLLOW" even though the "mdrw=on"

How come?


I would still advise you to leave it as it was originally done (NOINDEX, NOFOLLOW). There's no need to index duplicate pages, I think.

Page  Page 1 of 3:  1  2  3  Next » 
Re-cycled miniBB Support Forums / Re-cycled / Advanced Recent Topics (more to follow on another extra page) 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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB