1
yomhatiqva
Re: Include MLSFriend in user's profile
  • 2006/11/23 15:10

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Really no one ?



2
yomhatiqva
Create a Top User page
  • 2006/11/22 14:32

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


A lot of questions today

I try to find how to create a top user page instead of the top user block. I already created a vote for members and hits variable in user profile, and i want to show in a page the top user list with informations such as avatar, age, gender etc. I already hace those variables in the xoops_user DB but i'm blocking for their integration in a page...

Here is the php source code of the topuser block:

Quote:

function b_system_topposters_show($options)
{
$block = array();
$criteria = new CriteriaCompo(new Criteria('level', 0, '>'));
$limit = (!empty($options[0])) ? $options[0] : 10;
$size = count($options);
for ( $i = 2; $i < $size; $i++) {
$criteria->add(new Criteria('rank', $options[$i], '<>'));
}
$criteria->setOrder('DESC');
$criteria->setSort('hits');
$criteria->setLimit($limit);
$member_handler =& xoops_gethandler('member');
$topposters =& $member_handler->getUsers($criteria);
$count = count($topposters);
for ($i = 0; $i < $count; $i++) {
$block['users'][$i]['rank'] = $i+1;
if ( $options[1] == 1 ) {
$block['users'][$i]['avatar'] = $topposters[$i]->getVar('user_avatar') != 'blank.png' ? XOOPS_UPLOAD_URL.'/'.$topposters[$i]->getVar('user_avatar') : '';
} else {
$block['users'][$i]['avatar'] = '';
}
$block['users'][$i]['id'] = $topposters[$i]->getVar('uid');
$block['users'][$i]['name'] = $topposters[$i]->getVar('uname');
$block['users'][$i]['hits'] = $topposters[$i]->getVar('hits');
}
return $block;
}


How can i transpose this to a XOOPS page ?

Thank you



3
yomhatiqva
Customized userprofile
  • 2006/11/22 14:27

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Hello

I'm wondering if it would be posible to integrate in the user's profile page (system_userinfo) the articles or photos or MSLfriends ?

I mean there's already a module to sort by item but only shows links, and i would like to show the entire article, sort photos with 4 rows ie, show the friend's list of the user.

Another question I guess hardfull... Is there a way for the user to customize his userinfo page (i would like to keep integrated general informations something like a header) adding pictures, templates (something like hi5 customization) ?

Hard stuff but interesting i guess in order to fully customize a XOOPS based site.

Thanks



4
yomhatiqva
Smartmedia ad counter hits
  • 2006/11/22 14:17

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Hi

I would like to put a hit counter classification in smartmedia block instead of last upload... Anyone know how can i do this ?

Here is the smartmedia_clips_recent.html block code:

Quote:


    <{foreach item=clip from=$block.clips}>
  • <{$clip.itemlink}>

  • <{/foreach}>





So the thing might be simple: to show the number of hits near the item link and sort by most rated (i already modify the clips_recent.php file to sort by most rated hits) but i don't see how to integrate in the php code:

Quote:

function b_smartmedia_clips_recent_show($options)
{
// This must contain the name of the folder in which reside SmartClient
if( !defined("SMARTMEDIA_DIRNAME") ){
define("SMARTMEDIA_DIRNAME", 'smartmedia');
}
include_once(XOOPS_ROOT_PATH."/modules/" . SMARTMEDIA_DIRNAME . "/include/common.php");

//$max_clips = $options[0];
$title_length = $options[0];
$max_clips = $options[1];

$clipsArray =& $smartmedia_clip_handler->getClipsFromAdmin(0, $max_clips, 'clips.counter', 'DESC', 'all');

If ($clipsArray) {
foreach ($clipsArray as $clipArray) {
$clip = array();
$clip['itemlink'] = '' . $clipArray['title']. '';
$block['clips'][] = $clip;
unset ($clip);
}
}

$block['smartmedia_url'] = SMARTMEDIA_URL;

return $block;
}


Thanks a lot

...FIxED



5
yomhatiqva
Re: Include MLSFriend in user's profile
  • 2006/11/21 2:03

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


No idea ?



6
yomhatiqva
Re: Xoopmembers result page in 2 o 3 rows
  • 2006/11/20 15:11

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Here is the final code:

<{$lang_search}> »» <{$lang_results}>



<{if $total_found != 0}>



<{section name=i loop=$users}>
<{if $smarty.section.i.iteration is div by 4}>


<{/if}>
<{/section}>


<{$users[i].avatar}> 


<{$users[i].name}> <{$users[i].online}>






<{$pagenav}>
<{$lang_numfound}>

<{else}>
<{$lang_nonefound}>
<{/if}>

 



Greetings



7
yomhatiqva
Re: Xoopmembers result page in 2 o 3 rows
  • 2006/11/20 13:24

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Thanks a lot i fixed it



8
yomhatiqva
Re: Xoopmembers result page in 2 o 3 rows
  • 2006/11/20 13:13

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Thanks, but how do you include this ? I mean i tryed to include this in xoopsmembers_searchresults like this:


<{section name=i loop=$users}>


<{$users[i].avatar}> 


<{$users[i].name}> 














<{$users[i].icq}> <{$users[i].genre}> <{$users[i].planete}> <{$users[i].pmlink}>

<{$users[i].online}>



<{if $smarty.section.i.iteration is div by 3}>


<{/if}>

<{/section}>


But it doesn't seem to run



9
yomhatiqva
Include MLSFriend in user's profile
  • 2006/11/20 12:28

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Hi

I'm trying to find out how to integrate (include) and show the friend memeber list of a user in his personal account page (his profile). Anyone know how to fix it ?

Thanks



10
yomhatiqva
Xoopmembers result page in 2 o 3 rows
  • 2006/11/20 12:15

  • yomhatiqva

  • Just popping in

  • Posts: 10

  • Since: 2006/11/20


Hi

I desesperatly try to find an issue to this topic... I would like to get the Xoopmembers result page with 2 o 3 users per row instead of one user per row. How can i get this ? I think i could alterate the xoopsmembers_searchresult.html with an <{if $clip.id is div by 3}> like in smartmedia, but i don't see wich variable to input instead of clip.id (it might be something like <{$users[i].???}> or something else ?

Thanks a lot




TopTop



Login

Who's Online

95 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 95


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits