4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 22, 2018, 07:42:07 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 ... 6 7 8 9 [10] 11 12 13 14 ... 34 » »» Print
Current Topic Rating: *****
Author Topic: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x  (Read 469426 times)
Michinator
Jr. Member
**
Offline Offline

Posts: 87

Thank You
-Given: 0
-Receive: 0


View Profile
« 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.
Logged

Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« 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:
1
$userlist .= "<td valign=\"top\" align=\"center\">".$user_name."".$user_sex."</td>\n";
1
$user_sex = "&nbsp;&nbsp;<img src=\"".TEMPLATE_PATH."/images/".htmlspecialchars($user_row['user_gender']).".gif\">".$var_name." ";
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #137 on: May 07, 2005, 12:19:09 AM »

ORDER BY user_gender
Logged

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)
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« Reply #138 on: May 07, 2005, 12:27:11 AM »


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

1
2
3
4

case 'user_t_images':
$order_by = "user_t_images $sort_order";
break;
1
2
3
4

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
Logged
graficalicus
Full Member
***
Offline Offline

Posts: 235

Thank You
-Given: 0
-Receive: 3


View Profile
« Reply #139 on: May 07, 2005, 01:40:43 AM »

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

Oh - OK, do this:

in memberlist.php, find

1
2
3
$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

1
2
3
4
$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:

1
$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...

Logged
Michinator
Jr. Member
**
Offline Offline

Posts: 87

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #140 on: May 07, 2005, 07:20:04 PM »

great! thank you for your help! you guys are really excellent! Wink

greetings,
michinator.
Logged

Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« 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
Logged

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)
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« 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 Smile i don't know php but you are teaching me in some way Razz thanks, i got it and it is so cool Wink

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:

1
2
$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:

1
2
$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:

1
2
3
case 'user_t_images':
$order_by = "user_t_images $sort_order";
break;

Add after:

1
2
3
case 'user_gender':
$order_by = "user_gender $sort_order";
break;

Save and close.

In lang/<your language>/main.php

Find:

1
$lang['lang_sort_homepage'] = "Homepage";

Add:

1
$lang['lang_sort_gender'] = "Gender";

Save and close.
Logged
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« 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
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« 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?
Logged

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)
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« 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.  Embarassed Embarassed

MY site memberlist:



V@no Memberlist with borders looking so nice

Logged
martrix
Hero Member
*****
Offline Offline

Posts: 755

Thank You
-Given: 0
-Receive: 6


View Profile WWW
« Reply #146 on: May 09, 2005, 05:34:54 PM »

well, even if Nicky writes "Don't change anything from here Wink I guess, you might be successful by changing the forbidden part of memberlist.php  Very Happy

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

change to

1
$userlist .="<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"1\">\n";

2) changing alignment
find
1
$userlist .="<tr>\n<td class=\"head2\" align=\"center\">".$lang['user_name']."</td>\n<td class=\"head2\"

change to
1
$userlist .="<tr>\n<td class=\"head2\" align=\"left\">".$lang['user_name']."</td>\n<td class=\"head2\"

or something like that...
Logged

MAяTRIX

ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« Reply #147 on: May 09, 2005, 06:05:01 PM »

Thank man!
Logged
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 3


View Profile WWW
« Reply #148 on: May 09, 2005, 06:34:29 PM »

and also he used row1 and row2 how can include that too?
Logged
martrix
Hero Member
*****
Offline Offline

Posts: 755

Thank You
-Given: 0
-Receive: 6


View Profile WWW
« Reply #149 on: May 09, 2005, 08:21:43 PM »

well, the alignment "thing" seems to need more changes...

try to find all

1
align=\"center\"

and change these to

1
align=\"left\"
Logged

MAяTRIX

Pages: «« « 1 ... 6 7 8 9 [10] 11 12 13 14 ... 34 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.177 seconds with 20 queries.