• [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 617296 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 #75 on: February 28, 2003, 09:16:37 PM »
hi all,

now after about 3 months, i'm back for finish that mod !

sorry for the delay ..

keep watching this thread  :wink:
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 Jasondavis

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #76 on: February 28, 2003, 09:37:47 PM »
Quote from: Nicky
hi all,

now after about 3 months, i'm back for finish that mod !

sorry for the delay ..

keep watching this thread  :wink:


Really, what else is there to do to it?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #77 on: February 28, 2003, 09:42:59 PM »
i don't know.. ^^

did you read all the previous post's ?
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 Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #78 on: February 28, 2003, 11:15:54 PM »
Update

just follow the to the 1st page of this thread and get it ...

possible order, like on the demo page !

have phun
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 Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #79 on: March 01, 2003, 12:12:18 AM »
it works well  :D

Good Work Nicky...

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...  :?

or search form  :wink:

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #80 on: March 05, 2003, 07:43:49 PM »
hinzufüge ein neues feld in deiner PREFIX_users mysql tabelle

Sorry aber ich weiß nicht wie das geht bitte Hilfe

danke tobi

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 #81 on: March 05, 2003, 11:12:43 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";
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 Jasondavis

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #82 on: March 06, 2003, 12:15:05 AM »
//--------------------------------
//------ Letter Select ----------
//--------------------------------
$condition = "";
$ltr = "";
$letter = "num";
$linkletter = "all";
$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\">";
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 == $linkletter) {
      $letterbits .= "<td class=\"row1\"><normalfont>[<b>".$lang['lang_all']."</b>]</normalfont></td>\n";
      $condition = "";
   }else{
      $letterbits .= "<td class=\"row1\"><normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php?ltr=$linkletter")."\">".$lang['lang_all']."</a></normalfont></td>\n";
     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 .= "<td class=\"row1\"><normalfont>[<b>$linkletter</b>]</normalfont></td>\n";
}
if ($ltr == $letter) {
   $letterbits .= "<td class=\"row1\"><normalfont>[<b>#</b>]</normalfont></td>\n";
} else {
   $letterbits .= "<td class=\"row1\"><normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php?ltr=$letter")."\">#</a></normalfont></td>\n";
}
for ($i = 65; $i < 91; $i++) {
   $letter = chr($i); $linkletter = $letter;
   if ($ltr == $letter) {
      $letterbits .= "<td class=\"row1\"><normalfont>[<b>$letter</b>]</normalfont></td>\n";
   } else {
      $letterbits .= "<td class=\"row1\"><normalfont><a href=\"".$site_sess->url(ROOT_PATH."memberlist.php?ltr=$letter")."\">$letter</a></normalfont></td>\n";
   }
}
$letterbits .= "</TR>\n</TABLE>\n</TD>\n</TR>\n</TABLE>";
//---- End Letter Select ----




what do we do with this code?

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 #83 on: March 06, 2003, 12:45:36 AM »
ops, sry about that... :?
After I edited my post, I guess I deleted something...
I just fixed my post. check it again.

P.S. u dont have to post again the code u dont understand, u could just ask about a step u r having problem with ;)
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 Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #84 on: March 06, 2003, 01:02:59 AM »
@Vano: It works! Great job!

CU

Markus

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #85 on: March 06, 2003, 05:50:54 AM »
"hinzufüge ein neues feld in deiner PREFIX_users mysql tabelle"

Sorry aber ich weiß nicht wie das geht bitte Hilfe

danke tobi

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #86 on: March 06, 2003, 08:06:13 AM »
LoOpP:

ALTER TABLE PREFIX_users ADD user_t_images SMALLINT( 6 ) DEFAULT '0' NOT NULL ;

prefix, ist das was du damals bei der installation angegeben hast..
guck mal in die config.php am server
Code: [Select]
$table_prefix = "DEINPREFIX_";

feld zufügen kannst es mit diesen programm: http://www.phpmyadmin.net/
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 Xwall

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.xwall.tk
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #87 on: March 06, 2003, 06:08:27 PM »
Great job!  :D

Offline LoOpP

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #88 on: March 07, 2003, 10:20:14 AM »
Ich sehe bei meinem phpMyAdmin Bereich
diese Felder is dass das richtige feld zur eingabe?

Neue Tabelle in Datenbank xxxx erstellen :
Name :  
Felder :    

was sol ich nun genau machen???
auch diesen code versteh ich nicht

Code: [Select]
ALTER TABLE PREFIX_users ADD user_t_images SMALLINT( 6 ) DEFAULT '0' NOT NULL ;
wass muss man mit dieser zeile machen??
danke tobi

sorry dass ich so blöd frage aber ich verstehs einfach nicht

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x
« Reply #89 on: March 07, 2003, 11:07:21 AM »
sorry aber ich hab kein bock dir jetzt die welt des mysql und php zu erklären ;)

aber dafür hier was anderes
http://www.nicky.net/4images/table_update.zip

uploade die table_update.php dorthin wo sich deine config.php befindet, und rufe die selbe aus http://ww.deinedomain.com/4images/table_update.php

das wars ^^
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