Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2009, 06:55 AM
Celcia Celcia is offline
Member
 
Join Date: Feb 2009
Posts: 5
Credits: 1,153
Celcia
Default Memberlist?

I've used search-options, but just found an old entry, which didn't help me.

I just installed the new Adoptables Version 1.0.0 a few days ago and it works great. But what my user really need is a memberlist.
I'm a beginner in all this and don't know how to show a memberlist with PHP and SQL.

So I ask you: Is there anyone able to give me a code for showing all my members?
Reply With Quote
  #2  
Old 05-19-2009, 07:18 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 31,534
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Memberlist?

Quote:
Originally Posted by Celcia
I've used search-options, but just found an old entry, which didn't help me.

I just installed the new Adoptables Version 1.0.0 a few days ago and it works great. But what my user really need is a memberlist.
I'm a beginner in all this and don't know how to show a memberlist with PHP and SQL.

So I ask you: Is there anyone able to give me a code for showing all my members?
sure can. What you need to do is, go to your profile.php, and find where it says:

PHP Code:
else{



// We did not specify a user, so show the memberlist



$article_title "Memberlist";

$article_content "Here are all of the members of this site, sorted by registration date.<br><br>"
Now, you want to take this part:

PHP Code:
$article_title "Memberlist";

$article_content "Here are all of the members of this site, sorted by registration date.<br><br>"
and turn it into this:

PHP Code:
$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br><table width='302' border='1'>
  <tr>
    <td width='100'><strong>Username:</strong></td>
    <td width='60'><strong>User ID:</strong></td>
  </tr>"

Then scroll down, until you find this:

PHP Code:
if($status == "yes"){

$star "<img src='templates/icons/star.gif' border=0'> ";

}



$article_content $article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";



$i++;

}







$article_content $article_content."<br>"
And you want to turn this part:

PHP Code:


$article_content 
$article_content."<b><a href='profile.php?user=".$username."'>".$star."".$username."</a></b><br>";



$i++;

}







$article_content $article_content."<br>"
Into this:

PHP Code:
$article_content $article_content."
<tr>
    <td><b><a href='profile2.php?user="
.$username."'>".$star."".$username."</a></b></td>
    <td><center>"
.$id."</center></td>
    <td><center><a href='http://4u.1free.ws/profile.php?do=add&more="
.$username."'><img src='templates/icons/cog.gif' border=0></a></center></td>
    <td><center><a href='http://4u.1free.ws/profile.php?do=delete&more="
.$username."'><img src='templates/icons/delete.gif' border=0></a></center></td>
  </tr>


"
;

$i++;
}



$article_content $article_content."<br></table> 
Hope I helped.
Reply With Quote
  #3  
Old 05-19-2009, 01:09 PM
Celcia Celcia is offline
Member
 
Join Date: Feb 2009
Posts: 5
Credits: 1,153
Celcia
Default RE: Memberlist?

I've found all parts and put them into the codes, you had given me, but now I've got this error and don't know, what it means:

Parse error: syntax error, unexpected T_LNUMBER in /is/htdocs/wp1135501_XMRNJ7ACPP/www/creatures/adoptables/profile.php on line 234

In my profile.php on line 234, there is:

<td><center><a href='http://4u.1free.ws/profile.php?do=add&more=".$username."'><img src='templates/icons/cog.gif' border="0"></a></center></td>

I also recognized, that I haven't got a file called "profile2.php", which is part of this code-part:

<td><b><a href='profile2.php?user=".$username."'>".$star."".$username."</a></b></td>
Reply With Quote
  #4  
Old 05-19-2009, 03:51 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 11,922
BMR777 is on a distinguished road
Default RE: Memberlist?

If you're using the default script if you visit yoursite.com/profile.php that shows all of the members on your site. :)
Reply With Quote
  #5  
Old 05-19-2009, 03:58 PM
Celcia Celcia is offline
Member
 
Join Date: Feb 2009
Posts: 5
Credits: 1,153
Celcia
Default RE: Memberlist?

Wow, thanks. That's it :)
Reply With Quote
  #6  
Old 05-19-2009, 09:17 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 31,534
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: Memberlist?

Quote:
Originally Posted by Celcia
I've found all parts and put them into the codes, you had given me, but now I've got this error and don't know, what it means:

Parse error: syntax error, unexpected T_LNUMBER in /is/htdocs/wp1135501_XMRNJ7ACPP/www/creatures/adoptables/profile.php on line 234

In my profile.php on line 234, there is:

<td><center><a href='profile.php?do=add&more=".$username."'><img src='templates/icons/cog.gif' border="0"></a></center></td>

I also recognized, that I haven't got a file called "profile2.php", which is part of this code-part:

<td><b><a href='profile.php?user=".$username."'>".$star."".$ username."</a></b></td>
Oh oops, I always forget to edit out certain things, well for one, you have to remove the part of the link that says:
http://4u.1free.ws/

Then lastely (and i dont know what gave you the idea) to put [b] tags in the link, but those have to be removed (which I ust removed for those for you) and then just delete the '2' in the link.

(btw, this just puts your memberlist in a table.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memberlist (user avatar) Alaric Questions and Supports 6 06-01-2012 02:28 AM
Avatars in Memberlist Inf3rnal Tutorials and Tips 13 05-01-2012 02:54 PM


All times are GMT -5. The time now is 08:12 AM.

Currently Active Users: 820 (0 members and 820 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636