vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget - Show random members with picture (https://vborg.vbsupport.ru/showthread.php?t=235460)

archet1337 03-08-2010 01:51 PM

Is it possible to make this work with Forum Blocks as well?

GONUMBER6 03-10-2010 03:24 AM

Great widget, really excellent for my forum!

ahmedipa 03-10-2010 03:55 AM

so nice thank you so much

FASEOFMARS 03-17-2010 03:56 AM

i would also like to know how to pull random members from a group..

well three groups.. admin, supermods and v.i.p's..

thanks and loving this widget,,

sensimilla 03-17-2010 02:31 PM

How come the first one is not clickable ? :) TIA

9mmPreacher 03-17-2010 04:34 PM

Maybe I'm retarded but I went into my Admin CP and cannot find vBulletin CMS, where the heck is it?

FASEOFMARS 03-18-2010 12:32 AM

its the third section on the left..

first is settings..

second is vbulletin blog..

thrid is vbulletin CMS..

can we please get the code to pull members from certain groups?

thanks..

9mmPreacher 03-18-2010 02:10 PM

heres what my options look like, still can't find vbulletin CMS

http://i141.photobucket.com/albums/r...-HardcoreC.jpg

FASEOFMARS 03-18-2010 03:03 PM

do you even have a publishing suite?

by the looks of it your running a forum classic..

http://forums.christian-gaming.com/ is this your forum?

yea you dont have a publishing suite.. i.e. cms and blogs..

alashram 03-19-2010 06:22 PM

How can you make them appear horizontally?

karlm 03-31-2010 01:34 PM

This works nicely on vb4.0.2 thank you kindly...

karlm 03-31-2010 07:01 PM

One small issue I just noticed... It doesn't exclude members from the banned group. Could this be considered for future updates please?

Steve_GB 03-31-2010 07:18 PM

Karlm,

I notice you also have the same problem mentioned earlier in this thread, that your first image of the three doesn't actually link to anything.. the other 2 do.

Re the banned folks, until you get a way to do that one idea for a work around would be to delete their profile pictures and then they won't be displayed.

Steve

karlm 04-01-2010 12:54 AM

Hmm, how odd - I've just checked using Chrome, Firefox and even MSIE - and could not replicate the unlinked profile issue you've addressed.

Eitherway, I appreciate your tip for the banned members problem. Thanking you kindly!

Professional2 04-01-2010 04:13 AM

sorry i dont have this option:
Go to Admin CP > vBulletin CMS > Widgets > create new widget

Steve_GB 04-01-2010 08:20 AM

Quote:

Originally Posted by karlm (Post 2013786)
Hmm, how odd - I've just checked using Chrome, Firefox and even MSIE - and could not replicate the unlinked profile issue you've addressed.

Eitherway, I appreciate your tip for the banned members problem. Thanking you kindly!

Karim,

For me using IE8, the first profile image on your site has no link at all. The other two do. Others have reported that problem on their site in this thread. I also saw it on my site when I installed this. I suspect there is a tiny change needed to the code.

IE8 does do things its own way and does not support a lot of css 3 etc. Those using it see commas at the end of most lists in vBulletin, and extra spaces in some widgets, and so on. This all gets mentioned in places on vBulletin.com - they seem to say it is because IE8 doesn't support commands like last-child that they are using. A number of browsers are said not to.

Steve

desi-boy 04-04-2010 01:50 PM

1 Attachment(s)
nice man but i need some thing like ( Attachment) can u creat some thing likhe this 1

Verionia 04-05-2010 01:19 AM

Id like something similar to the post above of top users, newest members, etc. I can place even in forum sidebars or below navbar with or without style.

baerwurz 04-16-2010 10:14 AM

Very nice.

I can see the link to userprofile and the avatar of the user, but guests only see the link to the userprofile?

Any Tip how to change this?

Antiblank 04-17-2010 10:52 AM

I can tell the function is working for my Avatars but I'm also not getting images, I'm assuming this is because I'm storing the avatars via filesystem instead of using the database.

If you came up with an option for this as I see a few other people had the issue I'd appreciate the choice for avatars NOT being stored in the database.

alfanexus 04-17-2010 11:44 AM

Quote:

Originally Posted by Antiblank (Post 2022624)
I can tell the function is working for my Avatars but I'm also not getting images, I'm assuming this is because I'm storing the avatars via filesystem instead of using the database.

If you came up with an option for this as I see a few other people had the issue I'd appreciate the choice for avatars NOT being stored in the database.

I have tried it on a system with avatars in database and this worked. I have also tried on a system with avatars stored on filesystem ad this did not work, so I think you are right.

So I would also appreciate a choice for avatars NOT being stored in the database :)

It would also be great to limit the ramdom users to the last 500 og 1000 users logged in :) Or someother option that dident show Inactive users.

Anyway this is still a great widget for the once who can use it :) Thanks :)

Antiblank 04-17-2010 10:04 PM

I modified it a little to work with custom avatars stored in the file system. Might not be the best way but it works, hopefully this helps out.

Code:

$member_count = 3;

  ob_start();
  require_once('./includes/functions_user.php');
  require_once('./includes/functions_bigthree.php');
  // Get Random Members
  $newusers_get = vB::$db->query_read("
    SELECT ".TABLE_PREFIX."user.userid AS userid, ".TABLE_PREFIX."user.username AS username, ".TABLE_PREFIX."user.avatarrevision AS avatarrevision, ".TABLE_PREFIX."customavatar.dateline AS dateline FROM ".TABLE_PREFIX."customavatar
        LEFT JOIN ".TABLE_PREFIX."user
                        ON ".TABLE_PREFIX."customavatar.userid=".TABLE_PREFIX."user.userid
    WHERE ".TABLE_PREFIX."customavatar.visible = 1
  ORDER BY RAND()
  LIMIT $member_count");
  $output_bits = '<p align="center"';
  while($newuser = vB::$db->fetch_array($newusers_get))
  {
        $output_bits .= '<a href="member.php?u='.$newuser[userid].'"><img src="/customavatars/avatar'.$newuser[userid].'_'.$newuser[avatarrevision].'.gif" alt="'.$newuser[username].'"/><br />'.$newuser[username].'</a><br />';
  }
  $output_bits .= '</p>';
  $output = $output_bits;
  ob_end_clean();


Antiblank 04-17-2010 10:20 PM

Regardless which setup you are using, if you want to limit it just to a single usergroup find line:

After
Code:

$member_count = 3;
Add
Code:

$usergroup_limit = 6;
Find
Code:

    WHERE ".TABLE_PREFIX."customavatar.visible = 1
Replace with
Code:

    WHERE ".TABLE_PREFIX."customavatar.visible = 1 AND ".TABLE_PREFIX."user.usergroupid = $usergroup_limit
Now just change the usergroup_limit number to match the usergroup you want to display. 6 for example is Administrators.

TripleChin 05-07-2010 02:03 AM

This is a nice add-on. I am completely new to Vb and php. If someone could advise me of how to limit this to logged in members, that would be great. Again, nice add-on.

BadgerDog 05-12-2010 01:37 PM

Installed and works great in CMS with v4.03 .. thanks .. :up:

Any chance of getting similar piece of code to create a "block" for the side block function in v4?

Regards,
Badger:up:

goxy63 05-12-2010 10:36 PM

Installed nominated and rated, thank you very much for this widget code

Is there a way to show this horizontaly not verticaly?
That is can we display avatars/profile pic left to right instead up and down?

Taurus MFF 05-16-2010 12:29 PM

Quote:

Originally Posted by goxy63 (Post 2036019)
Installed nominated and rated, thank you very much for this widget code

Is there a way to show this horizontaly not verticaly?
That is can we display avatars/profile pic left to right instead up and down?

I second the request to display images horizontally!

nice mod, installed & working great on CMS v4.0.3

JayCat 06-05-2010 08:49 AM

Quote:

Originally Posted by archet1337 (Post 1999834)
Is it possible to make this work with Forum Blocks as well?

I'd really like that too :)

vivamexico55 07-25-2010 12:00 AM

In 4.04 for some reason only the 2nd or 3rd avatar can be clicked, not the first. I can't find why...

mse2k 08-17-2010 07:48 PM

Hallo ... i use VB 4.0.6 ... the widget shows the name of the user but not a picture ... what`s wrong? THX

tattooz 09-14-2010 12:44 AM

Quote:

Originally Posted by mse2k (Post 2085464)
Hallo ... i use VB 4.0.6 ... the widget shows the name of the user but not a picture ... what`s wrong? THX

Same here, sometimes it shows all photos, sometimes it shows some of them and sometimes none....?

dang3rzon3 09-16-2010 09:43 PM

Quote:

Originally Posted by mse2k (Post 2085464)
Hallo ... i use VB 4.0.6 ... the widget shows the name of the user but not a picture ... what`s wrong? THX

i have the same problems :mad:

tattooz 09-17-2010 06:19 PM

Ok, this is for a block in the forum or the CMS widget, assuming that you have avatars set to filesystem, NOT database

Be sure to change the member count to however many you want to show. Also, look down at the bottom of the code where the <img src= tag is and make sure the path to the forums directory is right for your board.

I hope this works for you.

PHP Code:

$member_count 1;

  
ob_start();
  require_once(
'./includes/functions_user.php');
  require_once(
'./includes/functions_bigthree.php');
  
// Get Random Members
  
$newusers_get vB::$db->query_read("
    SELECT "
.TABLE_PREFIX."user.userid AS userid, ".TABLE_PREFIX."user.username AS username, ".TABLE_PREFIX."user.avatarrevision AS avatarrevision, ".TABLE_PREFIX."customavatar.dateline AS dateline FROM ".TABLE_PREFIX."customavatar
    LEFT JOIN "
.TABLE_PREFIX."user
            ON "
.TABLE_PREFIX."customavatar.userid=".TABLE_PREFIX."user.userid
    WHERE "
.TABLE_PREFIX."customavatar.visible = 1 AND ".TABLE_PREFIX."user.usergroupid = $usergroup_limit
   ORDER BY RAND()
   LIMIT 
$member_count");
  
$output_bits '<p align="center"';
  while(
$newuser vB::$db->fetch_array($newusers_get))
  {
        
$output_bits .= '<a href="member.php?u='.$newuser[userid].'"><img src="/forums/customavatars/avatar'.$newuser[userid].'_'.$newuser[avatarrevision].'.gif" alt="'.$newuser[username].'"/ width="125" height="125"><br />'.$newuser[username].'</a><br />';
  }
  
$output_bits .= '</p>';
  
$output $output_bits;
  
ob_end_clean(); 


tattooz 01-08-2011 07:21 PM

I tweaked this widget to work HORIZONTALLY. Let me know if it's good. You can change the member count and the avatar size. Also, if you do not want to limit it to a certain usergroup, remove this line "$usergroup_limit = 2;"

Code:

$member_count = 8;
$usergroup_limit = 2;

  ob_start();
  require_once('./includes/functions_user.php');
  require_once('./includes/functions_bigthree.php');
  // Get Random Members
  $newusers_get = vB::$db->query_read("
    SELECT ".TABLE_PREFIX."user.userid AS userid, ".TABLE_PREFIX."user.username AS username, ".TABLE_PREFIX."user.avatarrevision AS avatarrevision, ".TABLE_PREFIX."customavatar.dateline AS dateline FROM ".TABLE_PREFIX."customavatar
        LEFT JOIN ".TABLE_PREFIX."user
                        ON ".TABLE_PREFIX."customavatar.userid=".TABLE_PREFIX."user.userid
    WHERE ".TABLE_PREFIX."customavatar.visible = 1
  ORDER BY RAND()
  LIMIT $member_count");
  $output_bits = '<table cellpadding="5"><tr>';
  while($newuser = vB::$db->fetch_array($newusers_get))
  {
        $output_bits .= '<td><a href="member.php?u='.$newuser[userid].'"><img src="/customavatars/avatar'.$newuser[userid].'_'.$newuser[avatarrevision].'.gif" alt="'.$newuser[username].'"/ width="100" height="100"><br />'.$newuser[username].'</a></td>';
  }
  $output_bits .= '</tr></table>';
  $output = $output_bits;
  ob_end_clean();


erikcx 01-27-2011 05:21 PM

Is there a way to show recent new member avatar not random member ?
displayed horizontaly or verticaly automaticly ?

or random member avataro showed horizontaly and vertically automatic adjust ?

Installed nominated and rated, thank you very much for the widget code

MrBig 01-28-2011 07:19 AM

will this work with forums? if not will you make one that works?

ProFifaLeagues 01-28-2011 07:28 AM

Quote:

Originally Posted by MrBig (Post 2155593)
will this work with forums? if not will you make one that works?


Check out post 73 :up:

MrBig 01-29-2011 09:40 AM

Quote:

Originally Posted by rammieone (Post 2155596)
Check out post 73 :up:

thanks! , im using vbseo on my forum donno if that's what is making the avatars not show up?

MrBig 02-11-2011 06:00 AM

how can i move it to other parts of the forum?

dooch 04-22-2011 03:37 PM

the first random member has no link to their profile?


All times are GMT. The time now is 04:34 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01458 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete