171
blackrx
Re: display user avatar in custom block
  • 2008/7/26 7:49

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


yipee now it is working

thank you very much trabis..

i should recommend you to be xoopser of the month



172
blackrx
Re: display user avatar in custom block
  • 2008/7/26 7:39

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


thank you trabis..not working...i try this

<{if $uavatar != ""}>
      <
img src="<{$uavatar}>" alt="" width="32" /><br />
      <{/if}>



173
blackrx
Re: Yogurt Social Network 2.9 BETA
  • 2008/7/26 7:12

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


have you installed frameworks ? you need framework to install yogurt..
http://downloads.sourceforge.net/xoopschina/xoops-Frameworks-1.22.zip
install it in your root



174
blackrx
Re: display user avatar in custom block
  • 2008/7/26 7:10

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


this is for PM ...what about user avatar ??
<{php}>
GLOBAL 
$xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg'0));
$criteria->add(new Criteria('to_userid'$uid));
$msgcount $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount'$msgcount);
<{/
php}>

i found this but not working for me

https://xoops.org/modules/newbb/viewtopic.php?topic_id=38494&forum=20&post_id=169280



175
blackrx
Re: Xoops 2.3 Wishlist
  • 2008/7/26 7:02

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


what about for disable people : blind etc..

audio captcha should also be considered



176
blackrx
display user avatar in template
  • 2008/7/26 6:45

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


edit: actually i want this in the user menu template not in a custom block

i want when people login they see
their avatar and username

anyone know how ?



177
blackrx
Re: Change recent comments block to show each article only once
  • 2008/7/26 3:15

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


perfect...this is what i want

Quote:

trabis wrote:
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;
}



178
blackrx
Re: Competition for XOOPS 2.3 Marketing Materials
  • 2008/7/1 2:56

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


what about a simple graphic like this

Resized Image

it is ok ? i will make one if i have time..



179
blackrx
do you allow your members to delete their own post/topic ?
  • 2008/7/1 2:53

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


do you.. ? members of my site is keep requesting me for this ?

what is your opinion ? should i go with it ?



180
blackrx
Re: Xoops Comment system Improvement
  • 2008/7/1 2:48

  • blackrx

  • Quite a regular

  • Posts: 227

  • Since: 2008/2/5 1


when we can have comment paginations ?

one of my site have been successful and many people send their comment
in the news section and download section of my site almost daily

in one of my most popular news article there is more than 200+ comments

i would like to have the comment maybe to be limited to 25 comment per page..for better reading and fast loading

i also would like to allow the user to vote a comment as spam..like in the youtube system...and if it receives many vote as spam..it will be hide automatically..or it is more better if like in the wordpress if the comment have a certain spam keyword of contain more than x links it will not be shown..

thank you ..hope his to be consider..and implement asap..

keep up the good work




TopTop
« 1 ... 15 16 17 (18) 19 20 »



Login

Who's Online

304 user(s) are online (203 user(s) are browsing Support Forums)


Members: 0


Guests: 304


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