Help with mod_last_phpBB_topics - Joomla! Forum - community, help and support
hello,
i have installed mod_last_phpbb_topics on joomla 1.0.1.3... can see last topics of phpbb forum on joomla frontpage.
well... have "hide zones" on phpbb forum moderators , admins chat.. appear when lasts topics 1 of topics of "hiden zone".. module of joomla show "hiden message" too..
please me
here code of module.
p.d. sorry me, need take anothers english classes
what should write on code dont show "hidden zones" of forum on joomla mod?
thanks you
i have installed mod_last_phpbb_topics on joomla 1.0.1.3... can see last topics of phpbb forum on joomla frontpage.
well... have "hide zones" on phpbb forum moderators , admins chat.. appear when lasts topics 1 of topics of "hiden zone".. module of joomla show "hiden message" too..
please me

here code of module.
p.d. sorry me, need take anothers english classes

code: select all
<?php
/**
* phpbblast - mambo 4.5.1. last phpbb threads module
* @version 1.4.
* @package phpbb
* @no copyright 2004-2005 harry bos - no rights reserved!
* @license http://www.gnu.org/copyleft/gpl.html gnu/gpl
*
* thnx rob collins, seve7 mamboforge, parameter correction: count -> number
* thnx pikoro tip selecting primary database
* thnx pikoro tip error in xml file
**/
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
function strippen($c,$letters){
if(strlen($c) > $letters){
$kort = substr($c, 0, $letters);
$laatste_spatie = strrpos($kort, ' ');
$kort = substr($kort, 0, $laatste_spatie);
$c = $kort.'...';
return $c;
}
else{
return $c;
}
}
$hostname = trim( $params->get( 'hostname', localhost ) );
$user = trim( $params->get( 'user' ) );
$password = trim( $params->get( 'password' ) );
$databees = trim( $params->get( 'databees' ) );
$topics_table = trim( $params->get( 'topics' ) );
$number = intval( $params->get( 'number', 5 ) );
$letters = intval( $params->get( 'letters', 25 ) );
$forumpath = trim( $params->get( 'forumpath' ) );
$maindb = trim( $params->get( 'maindb' ) );
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
mysql_connect($hostname, $user, $password) or die ("cannot make connection host!");
mysql_select_db($databees) or die ("cannot open database!");
$query = "select topic_id,topic_title ". $topics_table ." topic_status != 1 order topic_last_post_id desc limit 0,".$number;
$res = mysql_query($query) or die(mysql_error());
echo ("<ul>");
while($data = mysql_fetch_assoc($res)){
$topic_titel = strippen(stripslashes($data["topic_title"]), $letters);
echo "<li><a href=\"".$forumpath."viewtopic.php?t=".$data["topic_id"]."\" title=\"forum topic :: ".$data["topic_title"]."\" onmouseover=\"window.status='forum topic :: ".addslashes($data["topic_title"])."';return true\" target=\"_blank\">".$topic_titel."</a></li>";
}
echo ("/<ul>");
mysql_select_db($maindb) or die ("cannot open mambo database!");
?>
what should write on code dont show "hidden zones" of forum on joomla mod?
thanks you

Comments
Post a Comment