Jump to content
MakeWebGames

[mccode v2] User Search


BlueDevil23

Recommended Posts

Hey all, I've been slowly putting this together, working on it the last few days. :)

It basically voids the need for any search feature (search.php) or a Userlist (userlist.php), as it is both, combined in one.

Getting late, so I'll get right to it.

3 Files you'll need....

One PHP file, One CSS file, and One JS file.

First, the CSS.... save as filtergrid.css

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Second the PHP file.... save as usersearch.php -- technically can be whatever you choose, but thats what I used.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Sine the JS file has so many characters I'll put it in two posts of its own, instead of splitting it up into three, to avoid confusion.

Link to comment
Share on other sites

Re: [mccode v2] User Search

Add this last bit on to the last file we were making tablefilter.js

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Thats it... lol

Many thanks to parelem, for uploading to her game, and allowing me to take screenshots from there, since my game is on WAMP, and with only me and a Bot, it wouldnt of shown much lol...

Screenshots:

http://i33.tinypic.com/2ztim2w.jpg

http://i37.tinypic.com/16hvls3.jpg

http://i35.tinypic.com/mn1de9.jpg

http://i36.tinypic.com/nva5qq.jpg

http://i38.tinypic.com/50mtsj.jpg

http://i37.tinypic.com/kb8dl.jpg

http://i38.tinypic.com/2yuhhnd.jpg

Enjoy :)

Link to comment
Share on other sites

Re: [mccode v2] User Search

Thank you all, glad you like it :)

Very very small update to the script, to allow the money column to be searched with mathematical operators ( >, <, >= ... etc.)

(Only removed the /$ in the money column rows, if you wanna just update your scripts, instead of uploading the new one)

updated usersearch.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [mccode v2] User Search

 

im not trying to be a ass or anything but this could be done with php alone instead of all the js and so forth right?

same effect

To be honest, I'm not sure.

Its possible, but I googled it for a bit, and found nothing relative.

Possibly not though, as it may require a page refresh, with PHP.

Link to comment
Share on other sites

  • 4 weeks later...

Re: [mccode v2] User Search

 

umm I did everything as told, but the box for searching is not showing up. Basically it just giving me all of the users with no search feature (like the pictures).

It does not work with Internet Explorer, Try Firefox.

 

Thanks. Nice mod, but my game is not designed around FF. Hey, its only 20% market share.

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...