• [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x 5 0 5 1
Currently:  

Author Topic: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x  (Read 617297 times)

0 Members and 1 Guest are viewing this topic.

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #135 on: May 06, 2005, 09:02:04 PM »
should be under ".bordercolor" in the CSS file -



no, i mean, i want a completely new line with << class="head1 >> above the table.

thanx in advance,
michinator.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #136 on: May 07, 2005, 12:09:31 AM »
Hi is there any way to sort the memberlist by gender? I have done this to show the gender:
Code: [Select]
$userlist .= "<td valign=\"top\" align=\"center\">".$user_name."".$user_sex."</td>\n";
Code: [Select]
$user_sex = "&nbsp;&nbsp;<img src=\"".TEMPLATE_PATH."/images/".htmlspecialchars($user_row['user_gender']).".gif\">".$var_name." ";

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #137 on: May 07, 2005, 12:19:09 AM »
ORDER BY user_gender
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #138 on: May 07, 2005, 12:27:11 AM »
ORDER BY user_gender

I have done this but i don't know if its correct:

Code: [Select]

case 'user_t_images':
$order_by = "user_t_images $sort_order";
break;
Code: [Select]

case 'user_gender':
$order_by = "user_gender $sort_order";
break;

I don't see any change V@no if I have to put this ORDER BY user_gender where i should put it

Offline graficalicus

  • Full Member
  • ***
  • Posts: 235
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #139 on: May 07, 2005, 01:40:43 AM »
Quote
no, i mean, i want a completely new line with << class="head1 >> above the table.

Oh - OK, do this:

in memberlist.php, find

Code: [Select]
$userlist .="\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tr>\n<td class=\"bordercolor\">\n";
  $userlist .="<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n";
  $userlist .="<tr>\n<td class=\"head2\" align=\"center\">".$lang['user_name']."</td>\n<td class=\"head2\" align=\"center\">".$lang['join_date']."</td>\n<td class=\"head2\" align=\"center\">".$lang['email']."</td>\n<td class=\"head2\" align=\"center\">".$lang['homepage']."</td>\n<td class=\"head2\" align=\"center\">".$lang['lang_total_user_comments']."</td>\n<td class=\"head2\" align=\"center\">".$lang['lang_total_user_images']."</td>\n</tr>\n";

and replace it with

Code: [Select]
$userlist .="\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tr>\n<td class=\"bordercolor\">\n";
  $userlist .="<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n";
  $userlist .="<tr>\n<td colspan=\"6\" class=\"head1\" align=\"center\">".$lang['memberlist_text']."</td>\n</tr>\n";
  $userlist .="<tr>\n<td class=\"head2\" align=\"center\">".$lang['user_name']."</td>\n<td class=\"head2\" align=\"center\">".$lang['join_date']."</td>\n<td class=\"head2\" align=\"center\">".$lang['email']."</td>\n<td class=\"head2\" align=\"center\">".$lang['homepage']."</td>\n<td class=\"head2\" align=\"center\">".$lang['lang_total_user_comments']."</td>\n<td class=\"head2\" align=\"center\">".$lang['lang_total_user_images']."</td>\n</tr>\n";

Next, open lang/<your_lang>/main.php, and down with all the other memberlist stuff you added, put this additional line:

Code: [Select]
$lang['memberlist_text'] = "This is our memberlist";
(change the part inside the "  "  to whatever you want it to say in the new "head1" row just added.)

 :arrow:*NOTE:  in the first part of the code, the "colspan=\"6\"" part tells the new row to span over 6 columns - - if you've added or removed columns from the table below it, make this number the same as the number of columns in the table, or else it will look screwy...


Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #140 on: May 07, 2005, 07:20:04 PM »
great! thank you for your help! you guys are really excellent! ;-)

greetings,
michinator.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #141 on: May 07, 2005, 08:06:53 PM »
I don't see any change V@no if I have to put this ORDER BY user_gender where i should put it
u also need added in the sort dropdown form
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #142 on: May 07, 2005, 10:40:48 PM »
Thank you V@no, and thanks for no put at the first time the solution :) i don't know php but you are teaching me in some way :P thanks, i got it and it is so cool ;)

To sort the member list by gender this is what u have to do:

You need to have installed this mod ---> http://www.4homepages.de/forum/index.php?topic=7385.0

In memberlist.php:

Find:

Code: [Select]
$mode_types_text = array($lang['lang_sort_username'], $lang['lang_sort_joindate'], $lang['lang_sort_useremail'], $lang['lang_sort_homepage'], $lang['lang_sort_comments'], $lang['lang_sort_pictures']);
$mode_types = array('user_name', 'user_joindate', 'user_email', 'user_homepage', 'user_comments', 'user_t_images');

Replace:

Code: [Select]
$mode_types_text = array($lang['lang_sort_username'], $lang['lang_sort_gender'], $lang['lang_sort_joindate'], $lang['lang_sort_useremail'], $lang['lang_sort_homepage'], $lang['lang_sort_comments'], $lang['lang_sort_pictures']);
$mode_types = array('user_name', 'user_gender', 'user_joindate', 'user_email', 'user_homepage', 'user_comments', 'user_t_images');

Find:

Code: [Select]
case 'user_t_images':
$order_by = "user_t_images $sort_order";
break;

Add after:

Code: [Select]
case 'user_gender':
$order_by = "user_gender $sort_order";
break;

Save and close.

In lang/<your language>/main.php

Find:

Code: [Select]
$lang['lang_sort_homepage'] = "Homepage";
Add:

Code: [Select]
$lang['lang_sort_gender'] = "Gender";
Save and close.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #143 on: May 09, 2005, 06:02:11 AM »
hi how can I make a table on the memberlist like in the V@no  site

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #144 on: May 09, 2005, 07:04:36 AM »
hi how can I make a table on the memberlist like in the V@no site
I dont have neither tables, nor chairs on my site...
what are u talking about?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #145 on: May 09, 2005, 05:13:25 PM »
ok i will try to explain it better, in my memberlist the table of user is without borders and and the cells are align to the center, how can I make my memberlist with a table of border 1 and the cells align to the left. I thought that it was call a table.  :oops: :oops:

MY site memberlist:



V@no Memberlist with borders looking so nice


Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #146 on: May 09, 2005, 05:34:54 PM »
well, even if Nicky writes "Don't change anything from here ;) I guess, you might be successful by changing the forbidden part of memberlist.php  :D

1) adding border
find:
Code: [Select]
$userlist .="<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\n";
change to

Code: [Select]
$userlist .="<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"1\">\n";
2) changing alignment
find
Code: [Select]
$userlist .="<tr>\n<td class=\"head2\" align=\"center\">".$lang['user_name']."</td>\n<td class=\"head2\"
change to
Code: [Select]
$userlist .="<tr>\n<td class=\"head2\" align=\"left\">".$lang['user_name']."</td>\n<td class=\"head2\"
or something like that...
MAяTRIX


Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #147 on: May 09, 2005, 06:05:01 PM »
Thank man!

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #148 on: May 09, 2005, 06:34:29 PM »
and also he used row1 and row2 how can include that too?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #149 on: May 09, 2005, 08:21:43 PM »
well, the alignment "thing" seems to need more changes...

try to find all

Code: [Select]
align=\"center\"
and change these to

Code: [Select]
align=\"left\"
MAяTRIX