to
Change the 5 to whatever number you like. You may also adjust it per side:
You can use all four, or just one, or two, or three... you get the idea.
Hope this helps
to
Change the 5 to whatever number you like. You may also adjust it per side:
You can use all four, or just one, or two, or three... you get the idea.
Hope this helps
12// $Id: menu.php, v.0.8 2004/02/18 3:35 csloh $
3// $Id: notification.inc.php,v 1.2 2003/03/30 01:51:59 mvandam Exp $
4// ------------------------------------------------------------------------ //
5// XOOPS - PHP Content Management System //
6// Copyright (c) 2000 XOOPS.org //
7// //
8// ------------------------------------------------------------------------ //
9// This program is free software; you can redistribute it and/or modify //
10// it under the terms of the GNU General Public License as published by //
11// the Free Software Foundation; either version 2 of the License, or //
12// (at your option) any later version. //
13// //
14// You may not change or alter any portion of this comment or credits //
15// of supporting developers from this source code or any supporting //
16// source code which is considered copyrighted (c) material of the //
17// original comment or credit authors. //
18// //
19// This program is distributed in the hope that it will be useful, //
20// but WITHOUT ANY WARRANTY; without even the implied warranty of //
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
22// GNU General Public License for more details. //
23// //
24// You should have received a copy of the GNU General Public License //
25// along with this program; if not, write to the Free Software //
26// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
27// ------------------------------------------------------------------------ //
28
29function mybooks_notify_iteminfo($category, $item_id)
30{
31 global $xoopsModule, $xoopsModuleConfig, $xoopsConfig;
32
33 if (empty($xoopsModule) || $xoopsModule->getVar('dirname') != 'mybooks') {
34 $module_handler =& xoops_gethandler('module');
35 $module =& $module_handler->getByDirname('mybooks');
36 $config_handler =& xoops_gethandler('config');
37 $config =& $config_handler->getConfigsByCat(0,$module->getVar('mid'));
38 } else {
39 $module =& $xoopsModule;
40 $config =& $xoopsModuleConfig;
}
//include_once XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/main.php';
if ($category=='global') {
$item['name'] = '';
$item['url'] = '';
return $item;
}
global $xoopsDB;
if ($category=='category') {
// Assume we have a valid category id
$sql = 'SELECT title FROM ' . $xoopsDB->prefix('mybooks_cat') . ' WHERE cid = '.$item_id;
$result = $xoopsDB->query($sql); // TODO: error check
$result_array = $xoopsDB->fetchArray($result);
$item['name'] = $result_array['title'];
$item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/viewcat.php?cid=' . $item_id;
return $item;
}
if ($category=='link') {
// Assume we have a valid link id
$sql = 'SELECT cid,title FROM '.$xoopsDB->prefix('mybooks_links') . ' WHERE lid = ' . $item_id;
$result = $xoopsDB->query($sql); // TODO: error check
$result_array = $xoopsDB->fetchArray($result);
$item['name'] = $result_array['title'];
$item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/singlelink.php?cid=' . $result_array['cid'] . '&lid=' . $item_id;
return $item;
}
}
?>
Fatal error: Call to a member function on a non-object in
/home/club/public_html/modules/booklists/include/notification.inc.php
on line 37
function mybooks_notify_iteminfo($category, $item_id)
{
global $xoopsModule, $xoopsModuleConfig, $xoopsConfig;
if (empty($xoopsModule) || $xoopsModule->getVar('dirname') != 'mybooks') {
$module_handler =& xoops_gethandler('module');
$module =& $module_handler->getByDirname('mybooks');
$config_handler =& xoops_gethandler('config');
$config =& $config_handler->getConfigsByCat(0,$module->getVar('mid'));
} else {
$module =& $xoopsModule;
$config =& $xoopsModuleConfig;
}
//include_once XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/main.php';
if ($category=='global') {
$item['name'] = '';
$item['url'] = '';
return $item;
}
global $xoopsDB;
if ($category=='category') {
// Assume we have a valid category id
$sql = 'SELECT title FROM ' . $xoopsDB->prefix('mybooks_cat') . ' WHERE cid = '.$item_id;
$result = $xoopsDB->query($sql); // TODO: error check
$result_array = $xoopsDB->fetchArray($result);
$item['name'] = $result_array['title'];
$item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/viewcat.php?cid=' . $item_id;
return $item;
}
if ($category=='link') {
// Assume we have a valid link id
$sql = 'SELECT cid,title FROM '.$xoopsDB->prefix('mybooks_links') . ' WHERE lid = ' . $item_id;
$result = $xoopsDB->query($sql); // TODO: error check
$result_array = $xoopsDB->fetchArray($result);
$item['name'] = $result_array['title'];
$item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/singlelink.php?cid=' . $result_array['cid'] . '&lid=' . $item_id;
return $item;
}
}