![]() |
:) Yup, I'm quick. 2 days after the program is released and people (well, me) are already releasing hacks.
This is a port of the memberlist hack from UBB. But it also has a decent search feature too. Copy all the code into memberlist.php and put it in your main vBulletin directory. Here is my demo: http://www.magic-singles.com/cpa/forums/memberlist.php (NOTE: THIS IS THE TEMPLATE-IZED VERSION) Now, here's the code: Code:
<? //TOP POSTERS AMOUNT $topposternum = 10; and // NUMBER OF RECORDS PER PAGE $numperpage = 30; ----- Now, I know some of this code isn't real efficient -- I did somethings, forgot I did them, then compensated in other places. :( Anyway, hopefully I'll be able to release some updates. Enjoy! Give me feedback please! ;) [Edited by Ed Sullivan on 04-20-2000 at 03:38 PM] [Edited by Ed Sullivan on 04-20-2000 at 05:28 PM] [Edited by Ed Sullivan on 04-21-2000 at 09:37 PM] |
:( I just realized the AIM javascript doesn't work. I looked at it and didn't really see anything wrong. Now, I'm not real good at javascript, so if someone could take a look at it, that'd be great! :)
[edit: I fixed this too!! :)] [Edited by Ed Sullivan on 04-20-2000 at 05:29 PM] |
Dammit! I just accidently killed another feature -- the paging doesn't work on any page other than the first. *sigh*
[edit: I fixed this feature and changed the line of code up there --^] [Edited by Ed Sullivan on 04-20-2000 at 03:39 PM] |
Well done - I have not tried it yet, but I'm sure it will be good. As hacks come in, I will try to include a template-ised version of it in the next major release - accredited to the author of course. BTW, how much of that code did you borrow from the control panel :)
Keep 'em coming, John |
Control panel? What control panel? ;)
I borrowed entirely too much -- but hey, if its there for ya, why not use it :) |
LOL :D
I like the hack very much :) a great job sofar. It looks alot cleaner then the ubb one, I must say |
Quote:
|
Quote:
Create template memberlist - Code:
{htmldoctype} Code:
<tr> Code:
{htmldoctype} |
but...
the javascript is a killer. People on WebTV have no support for Javascript, nor do Mac people using iCab. Looking at the code, it doesn't seem that it would be too hard to change.:) (I prefer the javascript version, personally) |
About the javascript: hmm... could I do an OS/Browser check in PHP and change the links like that? Might work.
But how should I make the links them? To the profile? Not links, just display the AIM Name? Hmm.. that brings up another thing, I might want to add a template for AIM, ICQ, and Yahoo! :) |
There are already three templates: aim, yahoo and icq.
John |
templates: launching a new era of codehacking ;)
This is cool, though, linking hacks to templates. It makes 'm flexible :D |
Quote:
I don't know if such a thing exists for ICQ and/or Yahoo, though... |
Found a tiny bug:
In the memberlist template remove: 'Page:', or it will show up twice in memberlist.php :) |
This is a very nice hack. Can you please tell me how I would go about adding another three columns -- with an e-mail icon, a homepage icon and a search icom -- the same ones that appear under the post of a user. If I'm to offer the users a full "yellow pages" of my BB's members, I might as well give them the full thing :) :)
Thanks |
well? :)
|
I'll look at it when I get a chance.
Email is already there, somewhat. Try changing your template to use $user[email] in it. The other 2 involve some simple script changes. |
All times are GMT. The time now is 10:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|