1

Topic: PunPortal 1.0

Latest Modification Released: PunPortal 1.0 - an enhanced miniportal

##
##
##            Mod title:  PunPortal     
##
##      Mod version:  1.0     
##   Works on PunBB: 1.2.x    
##     Release date:     
##           Author:  Justin Roy (omgtubbyomg@aim.com)     
##
##      Description:  This modification will add a feature filled punbb                       
##                          miniportal to your punbb forum.
##                              
##
##  Difference with
## previous version:  First Release
##
##   Affected files:  header.php
##                    viewtopic.php
##                    viewforum.php
##                    post.php     
##                    edit.php
##                    moderate.php
##                    delete.php
##                      
##
##       Affects DB:  No     
##
##            Notes:  Make sure to view the language file and set all of the                     
##                       appropriate content in there.    
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by  
##                             PunBB. Installation of this modification is done at  
##                             your own risk. Backup your forum database and any and all 
##                             applicable files before proceeding.
##
##
##

Download Here: http://www.punres.org/files.php?pid=319

Demo Here: http://www.fatalgamers.org/forums

2

Re: PunPortal 1.0

Nice one thanks !

Re: PunPortal 1.0

great portal only one little question Tubby.... i use 1.2.14 Punbb...

I want a block from a specific forum. In your Q&A.txt you talk about :

Q 1: How would i set up the recent topics block to display the recent topics from a specific forum id?

A 1: Well its rather simple. Simply open up recenttopics.php under      include/user and

replace this:

$result = $db->query('SELECT subject, id, forum_id, last_post FROM'.$db_prefix.'topics ORDER BY last_post DESC LIMIT '. $topicdisplay) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());


with this:

$result = $db->query('SELECT f.id, t.subject, t.id, t.forum_id, t.last_post FROM '.$db_prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.forum_id='.$forumid1.' ORDER BY t.last_post DESC LIMIT '. $topicdisplay) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

But that don't work...so maybe you know a solution.

THanks

PunnyBunny..

4

Re: PunPortal 1.0

it does work but i forgot to mention that you must declare the $forumid1 at the beginning of the file so at the beginning of recenttopics.php place this line of code:

$forumid1 = 'Put your forum id here';

dont forget to replace the text with the correct forum id you wish to retrieve the information from.

Re: PunPortal 1.0

works now, thanks!!

PunnyBunny..