PDA

View Full Version : members>adv search>user has homepage


Hiroshimator
12-15-2001, 10:00 PM
one of my members asked for this and I couldn't find it here so I thought I'd add it to the board. If it already exist: my bad :)

I searched for homepage and nothing came up.

in the memberlistsearch template add


<!-- addition_start: member has homepage -->
<tr>
<td bgcolor="#1C5780"><normalfont><b>and member has a homepage: </b></normalfont></td>
<td bgcolor="#1C5780"><normalfont><input type="checkbox" value="0" class="bginput" name="hashomepage" ></normalfont></td>
</tr>
<!-- addition_end: member has homepage -->


right before
<tr>
<td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>Options</b></normalfont></td>
</tr>
<tr>

(you may have to change the color to keep them alternating :) )


and in the file memberlist.php add

if ($hashomepage!="")
{
$condition.=" AND LENGTH(user.homepage) > 7";
}


right under
if ($usememberlistadvsearch) {

it's little and a bit stupid, I know but just in case anybody needs this... :zzz:

thx

-H-

Hiroshimator
12-16-2001, 07:15 AM
i forgot the attachment :o

Gutspiller
01-05-2002, 08:53 PM
OK, now can you give a description on what it does so I can decide if I want to install it? Thanks. :)

Hiroshimator
01-08-2002, 01:29 PM
it just adds a little checkbox to the search, so that members can search on members that have a homepage. (my members are all programmers, they use it to watch each other pages :) )

sorry for the late reply

-H-

nuno
01-08-2002, 02:11 PM
huh?
isnt this a standard feature? :confused:

Mystics
01-08-2002, 08:05 PM
[QUOTE]Originally posted by nuno
huh?
isnt this a standard feature? :confused:

Scrooge
01-18-2002, 04:14 PM
I wasn't sure this hack was what I was looking for until I installed it, but it is :) This hack adds a box in your member search to only include members with webpages. I was looking for something like this so I could just put up a link to it and call it Member Sites or something like that.

The post works with one problem. If the search covers more than one page it stops working. The first page returns only members with webpages, but when you go to the next page it stops working.

Scrooge
01-18-2002, 04:23 PM
As I said above I wanted to make a link on my site to the results of this page. I thought it would be as easy as linking to a regular search result, but it isn't. How do I link to a result for a memberlist.php search? I want to link to the results of a search of "member has homepage" = yes and "number of records per page" = 500.

Shenlong
01-18-2002, 09:11 PM
anyway

you left the code tags in, so I removed them and the attachment is below

Shenlong
01-18-2002, 09:18 PM
Anyway, your settings to add to memberlist_search I edited, because they were your settings, I added the variables the user chooses, it is attached below, The only things I edited was taking the code tags out and also adding the variables as I mentioned above, so below is the version I reccomend:

have fun and goodluck installing

Shenlong
01-18-2002, 09:21 PM
1 more thing

GREAT JOB! Helps my members out alot

Shenlong
01-18-2002, 10:00 PM
[QUOTE]Originally posted by Shenlong
Anyway, your settings to add to memberlist_search I edited, because they were your settings, I added the variables the user chooses, it is attached below, The only things I edited was taking the code tags out and also adding the variables as I mentioned above, so below is the version I reccomend:

have fun and goodluck installing