vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Horizontal Member List (https://vborg.vbsupport.ru/showthread.php?t=104230)

.Tim 01-02-2006 06:00 AM

Horizontal Member List
 
Maybe I'm doing this wrong, but I'm trying to get the list to show up horizontally, like 5 users per row for example. I can get it to look somewhat how I want but it lines them all up vertically and I can't figure out how to fix it. Any suggestion? Am I going about it all wrong? This is my memberlist resultbit template:

Code:

<table class="tcat" cellpadding="1" cellspacing="0" border="0"><tr align="center"><td class="alt2" width="175" border="0"><div><if condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" /></a><else />&nbsp;</if><br/>
$userinfo[musername]</div>

<div>Last Online At: $userinfo[lastvisit]</div>
<div>Post: $userinfo[posts]</div>

<div><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a>
</div></td></tr></table>

Okay I was able to get it horizontal this way:

Code:

<div class="tcat" cellpadding="1" cellspacing="0" border="0"><td class="alt2"><div><if condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$avatarurl" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" /></a><else />&nbsp;</if><br/>
$userinfo[musername]</div>

<div>Last Online At: $userinfo[lastvisit]</div>
<div>Post: $userinfo[posts]</div>

<div><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a>
</div></td></div>

Now I just need to know how to split it up in rows of say 5 for example.

2shae 01-02-2006 02:04 PM

i agree i really want this

PennylessZ28 01-03-2006 12:40 AM

you figure out how to do that and I'll give you my advanced search

.Tim 01-09-2006 02:21 AM

Well, I can say I'm officially stumped on this. I doubt it's that difficult, anybody have any ideas?

PennylessZ28 01-16-2006 04:15 AM

Quote:

Originally Posted by .Tim
Well, I can say I'm officially stumped on this. I doubt it's that difficult, anybody have any ideas?

I've seen it done, but heck if I can get the guy to share his templates with me.

I want this too.

.Tim 01-16-2006 04:24 PM

Yeah, hopefully someone who has done it before will decide to share. Or I have some revelation that gets it to work. :D

rootnik 01-17-2006 10:38 PM

I'm looking for something similar. I really like the vbuddies layout and think it would make a good format for a members list.

http://www.friendcodes.com/forums/buddies.php?u=28&pp=9

Anyway, I am soon to be in desperate need of a new memberlist layout. Going out of town early Thursday morning, but can start working on something Monday. One of you said that you have seen working example. Can you post a link, just so I can have a better idea what you are talking about?

Steve Moore 01-19-2006 05:25 AM

Try this:
Code:

<div class="tcat" cellpadding="1" cellspacing="0" border="0">
<div>
<table class="tborder" cellpadding="$stylevar[cellpadding]"
 cellspacing="$stylevar[cellspacing]" border="0" width="100%"
 align="center">
  <tbody>
    <tr>
      <td style="vertical-align: top;"><if condition="$show['avatar']"><a
 href="member.php?$session%5Bsessionurl%5Du=$userinfo%5Buserid%5D"><img
 src="$avatarurl" border="0" $avwidth="" $avheight="" alt="&lt;phrase 1="
 $userinfo[username="">$vbphrase[xs_avatar]</a></if><a
 href="member.php?$session%5Bsessionurl%5Du=$userinfo%5Buserid%5D">"
/&gt;</a><else> <br>
      </else></td>
    </tr>
    <tr>
      <td style="vertical-align: top;">$userinfo[musername]</td>
    </tr>
    <tr>
      <td style="vertical-align: top;">
      <div>Last Online At: $userinfo[lastvisit]</div>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">Post: $userinfo[posts]</td>
    </tr>
    <tr>
      <td style="vertical-align: top;"><a
 href="private.php?$session%5Bsessionurl%5Ddo=newpm&amp;u=$userinfo%5Buserid%5D"
 target="_blank" rel="nofollow"><img
 src="$stylevar%5Bimgdir_button%5D/sendpm.gif" alt="sendpm.gif"
 title="&lt;phrase 1=" $userinfo[username="">$vbphrase[send_private_message_to_x]"
border="0" /&gt;</a></td>
    </tr>
  </tbody>
</table>
<if condition="$show['avatar']"></if><else></else><br>
<br>
</div>
<div><br>
</div>
<div><a
 href="private.php?$session%5Bsessionurl%5Ddo=newpm&amp;u=$userinfo%5Buserid%5D"
 target="_blank" rel="nofollow"><br>
</a></div>
</div>


JaeTea 01-23-2006 01:22 AM

The above code doesn't even validate.

notsonormal 01-23-2006 06:50 AM

i would like this too...


All times are GMT. The time now is 08:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete