Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Feb 2013, 00:03
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
Order results by VIP Members first

Hello.

I want to add an option to the order results combo box so the user can order the search results by VIP members (which the group ID for them = 10) and that's mean the VIP members appear first in the search results page before the other members in the other groups.

Thanks.

--------------- Added 02 Feb 2013 at 13:13 ---------------

Does anyone know how to do this?
Reply With Quote
  #2  
Old 05 Feb 2013, 03:45
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Only put vip posts at the top if it is the thread starter post? (post 1)
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #3  
Old 06 Feb 2013, 13:00
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
I would like the featured members to show up first on the the member search results, maybe highlighted in a different color in the result indicated as a featured member.
http://www.agentlinkus.com/memberlist.php?do=search
and the members list page:
http://www.agentlinkus.com/members/list/

Thanks
Reply With Quote
  #4  
Old 07 Feb 2013, 02:35
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Open template memberlist

Find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Enter your usergroup ID in the is_member_of function. It is currently set for usergroup 6. you can add additional groups separated by commas. Also change the
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to what suites you.
Attached Images
File Type: png Untitled.png (39.1 KB, 24 views)
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #5  
Old 07 Feb 2013, 10:09
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
Thank you so much LifesGreatestGift but how can I get the featured members to show up first on the the member list page?
Reply With Quote
  #6  
Old 07 Feb 2013, 12:21
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
you would probably need to look into the queries that memberlist.php makes
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #7  
Old 07 Feb 2013, 12:58
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
I don't know anything about the queries in the memberlist.php. Can you help me?
Reply With Quote
  #8  
Old 07 Feb 2013, 14:50
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Create a new plugin

Product: vBulletin
Hook Location: memberlist_fetch
Title: Sort admin first
Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where 6 is the group id you want to show first.
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #9  
Old 11 Feb 2013, 08:30
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
A million billion thanks to you LifesGreatestGift for your help.

Thank you sooooo much
Reply With Quote
  #10  
Old 16 Feb 2013, 18:00
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
Sorry for disturbing you again. Can I create a featured members widget to include the same VIP group (group id = 10)?

Thanks
Reply With Quote
  #11  
Old 16 Feb 2013, 18:24
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
what all do you want displayed? Username, register date? etc...
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #12  
Old 16 Feb 2013, 19:12
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
No, just the username and the avatar for each member.
Reply With Quote
  #13  
Old 01 Mar 2013, 22:58
KimK KimK is offline
 
Join Date: Feb 2012
Real name: Kim
I found the solution for how to show random members with picture from specific group.
The following code will allow you to:

1- Show random members which have profile picture from specific group.
2- Clickable picture and username to go to member's profile page.

Installation:

1- Go to Admin CP > vBulletin CMS > Widgets > create new widget.
2- Widget type > PHP Direct Execution . Title > Random Members . Description > Show random members.
3- Click save.
4- Then click configure and put the code below.

Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Note: You can edit the amount of members you want to show by changing the $member_count from 3 to whatever value you want. Also you can change the usergroup_limit number to match the usergroup you want to display. 6 for example is Administrators.

Reference: http://www.vbulletin.org/forum/showthread.php?t=235460

Finally: Share what you know, learn what you don't.

Thanks
Reply With Quote
  #14  
Old 10 Apr 2013, 08:34
daniel_pet daniel_pet is offline
 
Join Date: Mar 2008
Originally Posted by KimK View Post
I found the solution for how to show random members with picture from specific group.
The following code will allow you to:

1- Show random members which have profile picture from specific group.
2- Clickable picture and username to go to member's profile page.

Installation:

1- Go to Admin CP > vBulletin CMS > Widgets > create new widget.
2- Widget type > PHP Direct Execution . Title > Random Members . Description > Show random members.
3- Click save.
4- Then click configure and put the code below.

Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Note: You can edit the amount of members you want to show by changing the $member_count from 3 to whatever value you want. Also you can change the usergroup_limit number to match the usergroup you want to display. 6 for example is Administrators.

Reference: http://www.vbulletin.org/forum/showthread.php?t=235460

Finally: Share what you know, learn what you don't.

Thanks
Please help me to get with this script and user custom fields, like location, Biography, etc..
Thanks in advance.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Show poll results in descending order ForumsMods vBulletin 4.x Add-ons 19 30 Mar 2013 14:01
Mini Mods Show poll results in descending order 1.0 ForumsMods vBulletin 3.7 Add-ons 9 01 May 2012 20:20
Show poll results in descending order Andreas vBulletin 3.0 Full Releases 24 29 Oct 2007 22:17



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 09:10.

Layout Options | Width: Wide Color: