• [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 618943 times)

0 Members and 2 Guests are viewing this topic.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #450 on: June 09, 2009, 11:16:13 PM »
ch-alex,

thank you for your addon! even i didn't tested it!

4ella,
what should i say? thank you for that. :)
btw. your site is looking great! keep the good work. thx again.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #451 on: June 09, 2009, 11:36:38 PM »
@ ch-alex,
very NICE!

@ Nicky,
wäre toll wenn das Addon mit im ersten Post aufgenommen werden würde!

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #452 on: June 09, 2009, 11:40:23 PM »
@Nicky
Thanks , I'm very glad that you like it
and You re welcome , this is the smallest thing I can do to say and show that I appreciate all programmers here effort, I will never be able to create nothing , to help with some advice neither, so I decided to put the little logos on the footer of everybody I use the Mods , it helps you (and them) and me too , and we don't lose another Kurt. Hope that the other newbies will follow.

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #453 on: June 09, 2009, 11:52:56 PM »
Benny,
gerade gemacht.. du musst es noch testen ob es auch funktioniert.. erwarte ein feedback  :mrgreen:

4ella,
your idea is very good.. hope that another users will follow your meanings how this linksback are imported for some coders.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #454 on: June 10, 2009, 12:00:50 AM »
Werde ich machen  8)!

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #455 on: June 19, 2009, 03:56:33 PM »
Quote from: Xwall
Now someone must do this;
Select user like this (#.A. B. C. D. E. F. G. H. I. J. K. L. M. N. O. P. Q. R. S. T. U. V. W. X. Y. Z) because with many users if you want to find someone it´s very hard...  :?
Here u go ;)

1.
in memberlist.php find:
Code: [Select]
//----------------------------
//---- Sort ------------------
//----------------------------
Add before (above):
Code: [Select]
//--------------------------------
//------ Letter Select ----------
//--------------------------------
$condition = "";
$ltr = "";
$letter = "num";
$user_search = "";
$letterbits = "<TABLE width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" class=\"bordercolor\">\n<tr>\n<TD>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n<TR align=\"center\"><td class=\"row1\">";
if (isset($HTTP_GET_VARS['ltr']) || isset($HTTP_POST_VARS['ltr'])) {
$ltr = (isset($HTTP_POST_VARS['ltr'])) ? $HTTP_POST_VARS['ltr'] : $HTTP_GET_VARS['ltr'];
}
if ($ltr) {
$letterbits .= "<normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php")."\">".$lang['lang_all']."</a></normalfont>";
  if ($ltr == "num") {
$condition = " AND ".get_user_table_field("", "user_name")." NOT REGEXP(\"^[a-zA-Z]\")";
}else{
$ltr = chr(intval(ord($ltr)));
$condition = ($ltr) ? " AND ".get_user_table_field("", "user_name")." LIKE '".addslashes($ltr)."%'" : "";
}
$user_search = "ltr=".$ltr;
}else{
$letterbits .= "<normalfont>[<b>".$lang['lang_all']."</b>]</normalfont>";
}
if ($ltr == $letter) {
$letterbits .= "&nbsp;.&nbsp;<normalfont>[<b>#</b>]</normalfont>";
} else {
$letterbits .= "&nbsp;.&nbsp;<normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php?ltr=$letter")."\">#</a></normalfont>";
}
for ($i = 65; $i < 91; $i++) {
$letter = chr($i); $linkletter = $letter;
if ($ltr == $letter) {
$letterbits .= "&nbsp;.&nbsp;<normalfont>[<b>$letter</b>]</normalfont>";
} else {
$letterbits .= "&nbsp;.&nbsp;<normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php?ltr=$letter")."\">$letter</a></normalfont>";
}
}
$letterbits .= "</td></TR>\n</TABLE>\n</TD>\n</TR>\n</TABLE>";
//---- End Letter Select ----

1.2.
Find:
Code: [Select]
'mode_action' => $site_sess->url(ROOT_PATH."memberlist.php"))Replace with:
Code: [Select]
'letterbits' => $letterbits,
'mode_action' => $site_sess->url(ROOT_PATH."memberlist.php".(($user_search) ? "?$user_search" : "")))

1.3.
Find:
Code: [Select]
$link_arg = $site_sess->url(ROOT_PATH."memberlist.php?mode=$mode&order=$sort_order");Replace with:
Code: [Select]
$link_arg = $site_sess->url(ROOT_PATH."memberlist.php?mode=$mode&order=$sort_order".(($user_search) ? "&$user_search" : ""));

1.4.
Find:
Code: [Select]
      WHERE user_id <> ".GUEST;Replace with:
Code: [Select]
      WHERE user_id <> ".GUEST.$condition;
1.5.
Find:
Code: [Select]
       WHERE user_id <> ".GUEST."Replace with:
Code: [Select]
       WHERE user_id <> ".GUEST.$condition."

2.
Open /templates/<yourtemplate>/memberlist.html
Insert this tag, in place u want it be displayed:
Code: [Select]
{letterbits}for example, in my template it looks like this:
Code: [Select]
{if userlist}
{userlist_dropdown}
<BR />
{letterbits}
<BR />
{endif userlist}

See it in action here


[EDITED]
Almost forgot one more step  8O

3.
Open /lang/<yourlanguage>/main.php
Find:
Code: [Select]
$lang['lang_select_sort_order'] = "Order";Add after:
Code: [Select]
$lang['lang_all'] = "All";

Can you Made this for this Mod: http://www.4homepages.de/forum/index.php?topic=19586.msg137187#msg137187

Offline daymos

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #456 on: June 28, 2009, 01:19:41 AM »
Thx
How to display user_firstname user_lastname without user_name
http://www.4homepages.de/forum/index.php?topic=18257.0

Offline Damebi

  • Pre-Newbie
  • Posts: 3
  • WooOOooT
    • View Profile
    • D A M E B I . A T
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #457 on: July 13, 2009, 11:44:48 PM »
Puh !

Vielen Dank @nicky. Habs ein bisschen an das default 960px Template angepasst.

Und dann wollt ich noch wissen ob das so mit dem Copyright gemacht hab ?
Kleines Bild mit alt="Memberlist MOD powered by Nicky" und title="Memberlist MOD powered by Nicky"

Schaus dir doch einfach selber an und dann einfach PM an mich obs ok ist. Merse!!
Ist für alle einsichtbar !

www.damebi.at/4images
Breit wie ein LKW und zuverlässig wie die Rolex an deinem Handgelenkt !

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #458 on: July 14, 2009, 11:56:05 PM »
hi Damebi und willkommen im 4images forum..

was soll ich sagen als .. VIELEN DANK !

Grüsse aus Wien  8)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #459 on: July 19, 2009, 05:34:47 PM »
[ENG]
How to add the user's age [via the birthday mod]?

[DEU]
Wie kann man das jeweilige Alter [mittels der birthday mod] einfügen?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #460 on: July 20, 2009, 01:12:20 AM »
hi,


hast du folgendes schon ausprobiert wennst den [MOD] Birthday Mod v1.0 im einsatz hast
Code: [Select]
$age = calc_age($user_row['birthday']);
ich hab das jetzt nicht getestet, deshalb weiss ich es auch nicht obs funktioniert
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #461 on: July 20, 2009, 01:18:17 AM »
hast du folgendes schon ausprobiert wennst den [MOD] Birthday Mod v1.0 im einsatz hast
Code: [Select]
$age = calc_age($user_row['birthday']);

Super, das ist es. Danke!  :)

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #462 on: July 20, 2009, 01:25:39 AM »
das freut mich :)
hab mich geregt, weil ich es unbedingt sehen wollte...
kannst "Nicky" wieder löschen..
LG
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Sebas Bonito

  • Sr. Member
  • ****
  • Posts: 271
  • Sebas Bonito
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #463 on: July 20, 2009, 01:28:03 AM »
Allet klar... danke nochmal!  8)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #464 on: October 15, 2009, 01:41:04 AM »
Quote
Die Erweiterung funktioniert auch 
Wichtig, das dort wie der Tabellenkopf geschrieben wird müssen die td's durch th's und /th's ersetzt werden.

Hier am Beispiel der Originaldatei:

Code: [Select]
$sql = "SELECT *
        FROM ".USERS_TABLE."
        WHERE user_id <> ".GUEST."
        ORDER BY $order_by
        LIMIT $offset, $user_per_page";
$result = $site_db->query($sql);
  $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\"class=\"draggable\">\n";
  $userlist .="<tr>\n<th class=\"head2\" align=\"center\">".$lang['user_name']."</th>\n<th class=\"head2\" align=\"center\">".$lang['join_date']."</th>\n<th class=\"head2\" align=\"center\">".$lang['email']."</th>\n<th class=\"head2\" align=\"center\">".$lang['homepage']."</th>\n<th class=\"head2\" align=\"center\">".$lang['lang_total_user_comments']."</th>\n<th class=\"head2\" align=\"center\">".$lang['lang_total_user_images']."</th>\n</tr>\n";

dann nur noch im header.html
<script type="text/javascript" src="dragtable.js"></script>

und das Javascript im 4images Hauptverzeichnis speichern.

Nur leider klappt es nicht, wenn ich die Spalten sortieren will. Das hin und herschieben der Spalten funktioniert wie auf der Webseite beschrieben.


Hi rinaldos and all others,

all you need to do to make the dragable and sortable classes work is to do the following in addition to rinaldos post:

1.) Download sortable.js from http://www.kryogenix.org/code/browser/sorttable/.

2.) Save sortable.js to your js directory, e.g. "/templates/js".

3.) In your header.html add the following reference:
Code: [Select]
<script language="javascript" type="text/javascript" src="./templates/js/sortable.js"></script>.

4.) In /templates/yourtemplate/memberlist.html the original code must be replaced by this one (" sortable" added behind "draggable"):

Code: [Select]
$sql = "SELECT *
        FROM ".USERS_TABLE."
        WHERE user_id <> ".GUEST."
        ORDER BY $order_by
        LIMIT $offset, $user_per_page";
$result = $site_db->query($sql);
  $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\"class=\"draggable sortable\">\n";
  $userlist .="<tr>\n<th class=\"head2\" align=\"center\">".$lang['user_name']."</th>\n<th class=\"head2\" align=\"center\">".$lang['join_date']."</th>\n<th class=\"head2\" align=\"center\">".$lang['email']."</th>\n<th class=\"head2\" align=\"center\">".$lang['homepage']."</th>\n<th class=\"head2\" align=\"center\">".$lang['lang_total_user_comments']."</th>\n<th class=\"head2\" align=\"center\">".$lang['lang_total_user_images']."</th>\n</tr>\n";

And it works perfectly well for small lists. I have not tested it with huge member lists where paging may be applied. I guess, you'll still need the original /templates/memberlist_sort.html because you might want to apply sorting for all existing members and not for the ones only that are currently shown in the table...

Cheers,
ch-alex





Funktioniert!!!