you are right thank you for your help now everything works perfect for me
migoe
www.weltladen-rothenburg.de | German Site about Fair trade Project
you wrote:
I added the audio tab in my development version of yogurt 3.3.
Does anyone know how to change the default view in blocks administration to only show those that are online? (ie. 'yes' instead of 'all').
function list_blocks()
{
global $xoopsUser, $xoopsConfig;
include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
//OpenTable();
$selmod = isset($_GET['selmod']) ? intval($_GET['selmod']) : 0;
[u][b]$selvis = isset($_GET['selvis']) ? intval($_GET['selvis']) : 2;[/b][/u]
$selgrp = isset($_GET['selgrp']) ? intval($_GET['selgrp']) : XOOPS_GROUP_USERS;
echo "
global $xoopsDB, $xoopsUser;
$block = array();
$article_counts = AmsStory::countPublishedByTopic();
$topics = AmsTopic::getAllTopics($options[0]);
$count = 1;
foreach ($topics as $topic) {
$block['topics'][] = array('id' => $topic->topic_id, 'title' => $topic->topic_title(), 'count' => $count, 'articlecounter' => $article_counts[$topicid]);
$count++;
}
return $block;
}
Wishing you good luck and I will keep watching to see what I can gain from your experience.