4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 16, 2018, 11:43:32 AM

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 2 3 4 5 [6] 7 8 9 10 ... 34 » »» Print
Current Topic Rating: *****
Author Topic: [Mod] Memberlist / Mitgliederliste > for/für v 1.7.x  (Read 484422 times)
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


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

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

Posts: 157

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #76 on: February 28, 2003, 09:37:47 PM »

Quote from: Nicky   [Expand]
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?
Logged
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


View Profile
« Reply #77 on: February 28, 2003, 09:42:59 PM »

i don't know.. ^^

did you read all the previous post's ?
Logged

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
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


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

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

Posts: 100

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #79 on: March 01, 2003, 12:12:18 AM »

it works well  Very Happy

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...  Confused

or search form  Wink
Logged
LoOpP
Jr. Member
**
Offline Offline

Posts: 54

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
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: 577

mmm PHP...


View Profile WWW
« Reply #81 on: March 05, 2003, 11:12:43 PM »

Quote from: Xwall   [Expand]
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...  Confused

Here u go Wink

1.
in memberlist.php find:
1
2
3
4

//----------------------------
//---- Sort ------------------
//----------------------------

Add before (above):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//--------------------------------
//------ 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:
1
'mode_action' => $site_sess->url(ROOT_PATH."memberlist.php"))

Replace with:
1
2
'letterbits' => $letterbits,
'mode_action' => $site_sess->url(ROOT_PATH."memberlist.php".(($user_search) ? "?$user_search" : "")))


1.3.
Find:
1
$link_arg = $site_sess->url(ROOT_PATH."memberlist.php?mode=$mode&order=$sort_order");

Replace with:
1
$link_arg = $site_sess->url(ROOT_PATH."memberlist.php?mode=$mode&order=$sort_order".(($user_search) ? "&$user_search" : ""));



1.4.
Find:
1
      WHERE user_id <> ".GUEST;

Replace with:
1
      WHERE user_id <> ".GUEST.$condition;


1.5.
Find:
1
       WHERE user_id <> ".GUEST."

Replace with:
1
       WHERE user_id <> ".GUEST.$condition."



2.
Open /templates/<yourtemplate>/memberlist.html
Insert this tag, in place u want it be displayed:
1
{letterbits}

for example, in my template it looks like this:
1
2
3
4
5
6
{if userlist}
{userlist_dropdown}
<BR />
{letterbits}
<BR />
{endif userlist}


See it in action here


[EDITED]
Almost forgot one more step  Shocked

3.
Open /lang/<yourlanguage>/main.php
Find:
1
$lang['lang_select_sort_order'] = "Order";

Add after:
1
$lang['lang_all'] = "All";
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)
Jasondavis
Full Member
***
Offline Offline

Posts: 157

Thank You
-Given: 0
-Receive: 0


View Profile
« 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?
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: 577

mmm PHP...


View Profile WWW
« Reply #83 on: March 06, 2003, 12:45:36 AM »

ops, sry about that... Confused
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 Wink
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)
Maweryk
Sr. Member
****
Offline Offline

Posts: 253

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #84 on: March 06, 2003, 01:02:59 AM »

@Vano: It works! Great job!

CU

Markus
Logged
LoOpP
Jr. Member
**
Offline Offline

Posts: 54

Thank You
-Given: 0
-Receive: 0


View Profile
« 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
Logged
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


View Profile
« 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
1
$table_prefix = "DEINPREFIX_";


feld zufügen kannst es mit diesen programm: http://www.phpmyadmin.net/
Logged

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

Posts: 100

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #87 on: March 06, 2003, 06:08:27 PM »

Great job!  Very Happy
Logged
LoOpP
Jr. Member
**
Offline Offline

Posts: 54

Thank You
-Given: 0
-Receive: 0


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

1
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
Logged
Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


View Profile
« 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 Wink

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 ^^
Logged

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
Pages: «« « 1 2 3 4 5 [6] 7 8 9 10 ... 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.051 seconds with 20 queries.
Post your comments here