Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vBadvanced CMPS ~ Zoints Random Members Details »»
vBadvanced CMPS ~ Zoints Random Members
Version: 1.00, by Tigga Tigga is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.2 Rating:
Released: 11-06-2006 Last Update: Never Installs: 33
 
No support by the author.

For those running both vBadvanced CMPS and the new Zoints Local profile system, here is a CMPS module to show random Zoints profile's on your CMPS pages. Simply download the attached file, remove the ".php" extension from the end (that had to be added for vb.org to accept it as an attachment) and upload it using the "Download / Upload Module" link under the vBa CMPS section of your Admin CP.
Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-15-2006, 01:18 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neutral Singh View Post
Dear KW802,

Although your code does not return a blank page but still i can not view the block...
If you want, submit a Support Ticket over at vBadvanced and I'll take a look tonight when I'm back at the house. Must be something with your install that I'm not taking into account yet.
Reply With Quote
  #13  
Old 11-16-2006, 09:38 PM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Suzie View Post
Okay I give up. (After about 45 minutes of looking for XP info) How do you "remove the .php" from the file?
upload it, then rename it with your ftp client. easier than fiddling around with your xp settings
Reply With Quote
  #14  
Old 11-18-2006, 04:56 PM
Suzie Suzie is offline
 
Join Date: May 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I have it installed now. (thanks)

But no block is showing. I have given the path where it asks for it and it's turned on but nuttin.
Reply With Quote
  #15  
Old 12-23-2006, 04:43 AM
TRR TRR is offline
 
Join Date: Jan 2005
Location: San Antonio, TX
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, but how do I get it to only display profiles that have personalized their avatars? It looks really boring when you get a bunch of noavatar gifs in a row.
Reply With Quote
  #16  
Old 12-27-2006, 10:49 AM
TRR TRR is offline
 
Join Date: Jan 2005
Location: San Antonio, TX
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm. Very quiet in here. How about a forumhome add on as well?
Reply With Quote
  #17  
Old 01-20-2007, 01:17 AM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TRR View Post
Works great, but how do I get it to only display profiles that have personalized their avatars? It looks really boring when you get a bunch of noavatar gifs in a row.
bump.......
Reply With Quote
  #18  
Old 03-25-2007, 03:32 PM
amnesia623 amnesia623 is offline
 
Join Date: Jul 2006
Location: Glendale, AZ
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think a module like this would be a great benefit to those running zoints and vbadvanced.

any way to get further support and development on this?
Reply With Quote
  #19  
Old 04-02-2007, 01:44 PM
kartik786 kartik786 is offline
 
Join Date: Aug 2005
Location: India
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
The file you have uploaded is not a valid module file.
I am getting this error after i remove the .php extension
Reply With Quote
  #20  
Old 04-15-2007, 01:25 AM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Hi guys thank you for your time make this mod

lets make it perfect now : Only viewing user with avatar, not viewing user with no avatar




2. This is the file modules/zoints_randmemb.php

code in red i think that influence about this, what is need to edit so only viewing user with avatar



Quote:
<?php
// ++================================================ =========================++


if (@include_once($mod_options['portal_zoints_path'] . '/includes/localsettings.php'))
{
// Determine the type of user profile links
if ($config['mod rewrite'])
{
$zlinkstyle = 'rewrite';
}
else
{
$zlinkstyle = 'normal';
}

// Determine the URL of the Zoints Local installation
if ($vbulletin->options['zointsprofile_zurl'])
{
$zurl = $vbulletin->options['zointsprofile_zurl'] . '/';
}
else
{
$zurl = '/z/';
}

// Connect to the Zoints Local database
$zlink = mysql_connect($config['master_server']['host'], $config['master_server']['user'], $config['master_server']['pass']);
mysql_select_db($config['server_database']);

// Select the users from the Zoints Local user table
$getusers = mysql_query("
SELECT *
FROM " . $config['table prefix'] . "user
ORDER BY RAND()
LIMIT $mod_options[portal_zoints_randmemb_limit]
", $zlink);

// Loop through the users selected and build the output
while ($user = mysql_fetch_array($getusers))
{
// Alternate the background color
exec_switch_bg();

// Build the link to the user's profile
$user['zurl'] = $config['site url'] . sprintf($config['profile'][$zlinkstyle]['url'], $user['usertoken']);

// Get an avatar for the user
if ($user['avatar'])
{
// If the user uploaded a Zoints Local avatar then use it
$user['avatar_path'] = $zurl . 'user/' . implode('/', array_reverse(preg_split("##", $user['userid'], -1, PREG_SPLIT_NO_EMPTY))) . '/avatar.' . $user['avatar'];
}
else
{
// If the user does not have a Zoints Local avatar then use their vBulletin avatar
require_once('./includes/functions_user.php');
$user['avatar'] = true;
$avatarurl = fetch_avatar_url($user['userid']);
if (!$avatarurl)
{
// If the user does not have a Zoints local avatar and they do
// not have a vBulletin avatar then use a generic image.
$user['avatar_path'] = $stylevar['imgdir_misc'] . '/noavatar.gif';
}
else
{
// If The user does not have a Zoints Local avatar and they do
// have a vBulletin avatar so use it.
$user['avatar_path'] = $vbulletin->options['bburl'] . '/' . $avatarurl[0];
}
}

// Finally go ahead and build the actual template output
eval('$home[$mods[modid]][content] .= "' . fetch_template('adv_portal_zoints_randmemb') . '";');
}

// Free the query results
mysql_free_result($getusers);
}

?>
Reply With Quote
  #21  
Old 06-01-2007, 05:24 AM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 04:14 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.04826 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete