vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - vBadvanced CMPS ~ Zoints Random Members (https://vborg.vbsupport.ru/showthread.php?t=130947)

KW802 11-15-2006 01:18 PM

Quote:

Originally Posted by Neutral Singh (Post 1117879)
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.

gavinzac 11-16-2006 09:38 PM

Quote:

Originally Posted by Suzie (Post 1117653)
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

Suzie 11-18-2006 04:56 PM

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.

TRR 12-23-2006 04:43 AM

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. :)

TRR 12-27-2006 10:49 AM

Hmm. Very quiet in here. How about a forumhome add on as well? :D

djjeffa 01-20-2007 01:17 AM

Quote:

Originally Posted by TRR (Post 1143828)
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.......

amnesia623 03-25-2007 03:32 PM

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?

kartik786 04-02-2007 01:44 PM

Quote:

The file you have uploaded is not a valid module file.
I am getting this error after i remove the .php extension

basketmen 04-15-2007 01:25 AM

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);
}

?>

basketmen 06-01-2007 05:24 AM

bump


All times are GMT. The time now is 02:08 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.01008 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)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
  • (10)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