1
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

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

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Just use Smarty's iteration feature...

So something like:

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

3
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

4
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

5
Quest
Re: Xoopmembers result page in 2 o 3 rows
  • 2006/11/20 14:46

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Excellent idea! So how did you actually do it?

Thanks
Quest

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

Login

Who's Online

369 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 369


more...

Donat-O-Meter

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

Latest GitHub Commits