phpBB2 Last 5 Topics
PHP Code
+ 3 likes
Please Register to submit score.
| Average Score | 8.0 (of 1 scores) |
| Date Added | Dec 05, 2008 |
| Last Updated | Dec 05, 2008 |
| Tags | bb board codes discussion discussion board furby php phpbb xstatic xstatic codes |
Introduction
Hopefully everyone can use this.
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 6, 2008 9:28 pm
Posted on Dec 6, 2008 9:28 pm
no comments?
no scores?
no likes?
no nothing? :(
no scores?
no likes?
no nothing? :(
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 8, 2008 1:53 pm
Posted on Dec 8, 2008 1:53 pm
For Invision Power Board you have?
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 10, 2008 12:34 am
Posted on Dec 10, 2008 12:34 am
^_^ Nothing... I don't use it so I don't create scripts for it...
Any real comments/scores/likes for this script is welcomed....
Any real comments/scores/likes for this script is welcomed....
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 10, 2008 1:21 am
Posted on Dec 10, 2008 1:21 am
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 11, 2008 12:22 am
Posted on Dec 11, 2008 12:22 am
no score and no likes :(
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Dec 11, 2008 12:59 am
Posted on Dec 11, 2008 12:59 am
Heh, if I used php, I would rate/like, but its of no use to me
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Jan 26, 2009 11:06 am
Posted on Jan 26, 2009 11:06 am
Hi,
Id like to use this on my website but Im a total novice on this. If anyone has the patience to walk me through Id appreaciate it :)
My forum is here: www.fonal.com/forum
and Im trying to add the 5 newest posts on this page (a testpage): http://www.fonal.com/newstest.php
scroll down to see the problem, thanks!
Id like to use this on my website but Im a total novice on this. If anyone has the patience to walk me through Id appreaciate it :)
My forum is here: www.fonal.com/forum
and Im trying to add the 5 newest posts on this page (a testpage): http://www.fonal.com/newstest.php
scroll down to see the problem, thanks!
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Jan 26, 2009 9:58 pm
Posted on Jan 26, 2009 9:58 pm
try having ./forum
instead of /forum *shrugs*
no idea, just a suggestion
instead of /forum *shrugs*
no idea, just a suggestion
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Jan 27, 2009 7:19 am
Posted on Jan 27, 2009 7:19 am
yes! that seems to have done the trick, now it says
5 Latest Posts on the Discussion Forums.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/fonal/fonal.com/newstest.php on line 133
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/fonal/fonal.com/newstest.php on line 154
5 Latest Posts on the Discussion Forums.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/fonal/fonal.com/newstest.php on line 133
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/fonal/fonal.com/newstest.php on line 154
PHP Snippet:
phpBB2 Last 5 Topics
Posted on Feb 22, 2009 5:04 pm
Posted on Feb 22, 2009 5:04 pm
Very nicely done Furby.
PHP Snippet:
phpBB2 Last 5 Topics
Posted on May 6, 2009 10:48 am
Posted on May 6, 2009 10:48 am
Furby do we need to give db name userid or pass in line
$link = mysql_connect($dbhost, $dbuser, $dbpasswd)
because im getting error i only use a path /phpBB2
$link = mysql_connect($dbhost, $dbuser, $dbpasswd)
because im getting error i only use a path /phpBB2
PHP Snippet:
phpBB2 Last 5 Topics
Posted on May 7, 2009 8:31 am
Posted on May 7, 2009 8:31 am
Hawkeeuser, it uses the config.php already in phpbb. If your config file is properly set then it will work fine.
PHP Snippet:
phpBB2 Last 5 Topics
Posted on May 7, 2009 10:40 am
Posted on May 7, 2009 10:40 am
Looks like this needs the include statements required to use the phpBB2 libraries. These can be found at the top of any of the phpBB2 front end php scripts such as viewforum.php
PHP Snippet:
phpBB2 Last 5 Topics
Posted on May 7, 2009 12:06 pm
Posted on May 7, 2009 12:06 pm
LordHawk its not like this the script need lil change but i fix it for me
no need for these lines
$urlPath = "/phpbb";
// Database Configuration (Where your phpBB config.php file is located)
include $urlPath.'/config.php';
if the below line is something like this
$link = mysql_connect($dbhost = '', $dbuser = 'yourdb user', $dbpasswd = 'your dbpass') or die("Could not connect");
mysql_select_db($dbname = 'your dbname') or die("Could not select database");
and you don't need this as well
mysql_free_result($row);
mysql_close($link);
no need for these lines
$urlPath = "/phpbb";
// Database Configuration (Where your phpBB config.php file is located)
include $urlPath.'/config.php';
if the below line is something like this
$link = mysql_connect($dbhost = '', $dbuser = 'yourdb user', $dbpasswd = 'your dbpass') or die("Could not connect");
mysql_select_db($dbname = 'your dbname') or die("Could not select database");
and you don't need this as well
mysql_free_result($row);
mysql_close($link);








