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:

<ul>
<{foreach item=clip from=$block.clips}>
<li><{$clip.itemlink}></li>
<{/foreach}>
</ul>

<div style="text-align:right; padding: 5px;">
<a href="<{$xoops_url}>/modules/smartmedia/"><{$block.lang_visititem}></a>
</div>


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'] = '<a href="' . SMARTMEDIA_URL . 'clip.php?categoryid=' . $clipArray['categoryid'] . '&folderid=' . $clipArray['folderid'] . '&clipid=' . $clipArray['clipid'] . '">' . $clipArray['title']. '</a>';
$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:

<a href="index.php"><{$lang_search}></a>&nbsp;<span style="font-weight:bold;">»»</span>&nbsp;<{$lang_results}><br /><br />

<{if $total_found != 0}>
<div align="center">
<table cellspacing="1" background-image="http://elchileloco.free.fr/fonds/fundosemi.png" style="border-collapse: collapse; border-left-width:0px; border-right-width:0px; border-bottom-width:0px" border="1" bordercolorlight="#EBF4F8">
<tr valign="middle" style="background-image: url('http://elchileloco.free.fr/fonds/fundosemi.png')">
<{section name=i loop=$users}>
<td align="center" style="border-style: none; border-width: medium"><a href="<{$xoops_url}>/userinfo.php?uid=<{$users[i].id}>">
<p style="margin-top: 2px; margin-bottom: 2px" align="center"><{$users[i].avatar}></a>&nbsp; </p>
<p style="margin-top: 2px; margin-bottom: 2px" align="center"><{$users[i].name}>&nbsp;<{$users[i].online}> </p>
<p style="margin-top: 2px; margin-bottom: 2px">
</td><{if $smarty.section.i.iteration is div by 4}>
</tr>
<tr valign="middle" style="background-image: url('http://elchileloco.free.fr/fonds/fundosemi.png')">
<{/if}>
<{/section}>
</tr>
</table>
</div>
<div style="text-align:center; background-image:url('http://elchileloco.free.fr/fonds/fundo600azul.png')">
<{$pagenav}>
<{$lang_numfound}>
</div>
<{else}>
<{$lang_nonefound}>
<{/if}><p>&nbsp;</p>

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}>
<tr valign="middle">
<td align="center" width="112"><a href="<{$xoops_url}>/userinfo.php?uid=<{$users[i].id}>">
<p style="margin-top: 2px; margin-bottom: 2px" align="center"><{$users[i].avatar}></a>&nbsp; </p>
<p style="margin-top: 2px; margin-bottom: 2px" align="center"><{$users[i].name}>&nbsp; </p>
<p style="margin-top: 2px; margin-bottom: 2px">
</td><td align="center">
<table border="0" width="100%" id="table1">
<tr>
<td align="left" width="20%"><b><font color="#FF0000"><{$users[i].icq}></font></b></td>
<td align="left" width="20%"><font color="#0000FF"><{$users[i].genre}></font></td>
<td align="left" width="30%"><font color="#008000"><{$users[i].planete}></font></td>
<td align="left" width="18%"><a href="<{$xoops_url}>/userinfo.php?uid=<{$users[i].id}>"><{$users[i].pmlink}></a></td>
</tr>
<tr>
<td align="left" colspan="4">
<p align="center"><font color="#0000FF"><{$users[i].online}></font>
</td>
</tr>
</table>
</td>
<{if $smarty.section.i.iteration is div by 3}>
</tr>
<tr>
<{/if}>
</tr>
<{/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

152 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

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

Latest GitHub Commits