1821
trabis
Re: User name and display name
  • 2008/1/14 13:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


In my site I use smartprofile and allow users to change their username. I also changed somethings on the registration to allow users to enter spaces in their name.



1822
trabis
Re: I can not to access to administration of all modules
  • 2008/1/11 19:11

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It can be a module causing the problem due to missing files. Maybe you should delete the modules folder and upload it again.



1823
trabis
Re: Change recent comments block to show each article only once
  • 2008/1/11 14:07

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I see, try to replace the entire function with this one:

function b_system_comments_show($options)
{
    
$block = array();
    include_once 
XOOPS_ROOT_PATH.'/include/comment_constants.php';
    
$comment_handler =& xoops_gethandler('comment');
    
$criteria = new CriteriaCompo(new Criteria('com_status'XOOPS_COMMENT_ACTIVE));
    
$criteria->setLimit(intval($options[0] * 10));
    
$criteria->setSort('com_created');
    
$criteria->setOrder('DESC');
    
$comments $comment_handler->getObjects($criteriatrue);
    
$member_handler =& xoops_gethandler('member');
    
$module_handler =& xoops_gethandler('module');
    
$modules $module_handler->getObjects(new Criteria('hascomments'1), true);
    
$comment_config = array();

    
$trackedItems = array();
    
$count 0;
    foreach (
array_keys($comments) as $i) {
        if ( 
$count == $options[0])  continue;
        
$mid $comments[$i]->getVar('com_modid');
        
$com['module'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/">'.$modules[$mid]->getVar('name').'</a>';
        if (!isset(
$comment_config[$mid])) {
            
$comment_config[$mid] = $modules[$mid]->getInfo('comments');
        }
        
$com['id'] = $i;
        
$com['title'] = '<a href="'.XOOPS_URL.'/modules/'.$modules[$mid]->getVar('dirname').'/'.$comment_config[$mid]['pageName'].'?'.$comment_config[$mid]['itemName'].'='.$comments[$i]->getVar('com_itemid').'&com_id='.$i.'&com_rootid='.$comments[$i]->getVar('com_rootid').'&'.htmlspecialchars($comments[$i]->getVar('com_exparams')).'#comment'.$i.'">'.$comments[$i]->getVar('com_title').'</a>';
        
$com['icon'] = htmlspecialchars$comments[$i]->getVar('com_icon'), ENT_QUOTES );
        
$com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif';
        
$com['time'] = formatTimestamp($comments[$i]->getVar('com_created'),'m');
        if (
$comments[$i]->getVar('com_uid') > 0) {
            
$poster =& $member_handler->getUser($comments[$i]->getVar('com_uid'));
            if (
is_object($poster)) {
                
$com['poster'] = '<a href="'.XOOPS_URL.'/userinfo.php?uid='.$comments[$i]->getVar('com_uid').'">'.$poster->getVar('uname').'</a>';
            } else {
                
$com['poster'] = $GLOBALS['xoopsConfig']['anonymous'];
            }
        } else {
            
$com['poster'] = $GLOBALS['xoopsConfig']['anonymous'];
        }
        if (
count($trackedItems) > 0) {
            
$itemMatch false;
            foreach (
array_keys($trackedItems) as $j) {
                if (
$comments[$i]->getVar('com_modid') == $trackedItems[$j]['modid'] && $comments[$i]->getVar('com_itemid') == $trackedItems[$j]['itemid']) {
                    
$itemMatch true;
                }
            }
            if (!
$itemMatch) {
                
$block['comments'][] =& $com;
                
$trackedItems[] = array('modid' => $comments[$i]->getVar('com_modid'), 'itemid' => $comments[$i]->getVar('com_itemid') );
                
$count++;
            }
        } else {
            
$block['comments'][] =& $com;
            
$trackedItems[] = array('modid' => $comments[$i]->getVar('com_modid'), 'itemid' => $comments[$i]->getVar('com_itemid') );
            
$count++;
        }
        unset(
$com);
    }
    return 
$block;
}



1824
trabis
Re: How to create dynamic entries of menus and submenus in the main menu?
  • 2008/1/10 19:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


No, not period.
Module has Categories and they have subcategories. Thats 3 level and 2 of them are dynamic. The block as it is only fetch the categories. Let´s make it fetch the subcategories!! It can´t be that hard :)



1825
trabis
Re: How to create dynamic entries of menus and submenus in the main menu?
  • 2008/1/10 14:06

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Multimenu?

Multimenu is static. I don´t see how would it help here!



1826
trabis
Re: Change recent comments block to show each article only once
  • 2008/1/10 14:03

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Try:
if (!$itemMatch) {



1827
trabis
Re: How to create dynamic entries of menus and submenus in the main menu?
  • 2008/1/10 13:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


As I said you would have to do some code changes to make that ideia work.

If you could share more information about the module and what you want to do maybe I could help you better.

:)



1828
trabis
Re: "This page cannot be displayed due to an internal error."
  • 2008/1/10 13:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You overwrited the autologin hack. You must hack your XOOPS again.



1829
trabis
Re: Xoops Modules (All Xoops Users Please Read)
  • 2008/1/9 13:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I can help awakening the dead.
I´ll wait for that list of not working and wanted modules.

Xuups.com(xoops user utilities) is needing activity. Using it for modules development and troubleshooting would(and will) be just great.



1830
trabis
Re: The XOOPS Project in 2008 - module repository reform
  • 2008/1/8 2:01

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


But I have helped backuping the modules :)!
Can´t do no more, sorry, developing, time consuming, bed, bye...




TopTop
« 1 ... 180 181 182 (183) 184 185 186 ... 190 »



Login

Who's Online

157 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits